Blame view

Makefile 91 KB
7ebf7443a   wdenk   Initial revision
1
  #
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2
  # (C) Copyright 2000-2008
7ebf7443a   wdenk   Initial revision
3
4
5
6
7
8
9
  # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  #
  # See file CREDITS for list of people who contributed to this
  # project.
  #
  # This program is free software; you can redistribute it and/or
  # modify it under the terms of the GNU General Public License as
45a212c4d   Wolfgang Denk   Add support for n...
10
  # published by the Free Software Foundatio; either version 2 of
7ebf7443a   wdenk   Initial revision
11
12
13
14
15
16
17
18
19
20
21
22
  # the License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  # MA 02111-1307 USA
  #
881a87ecb   Wolfgang Denk   Add GIT version i...
23
  VERSION = 1
754bac481   Wolfgang Denk   Update version to...
24
  PATCHLEVEL = 3
67a4389e3   Wolfgang Denk   Prepare v1.3.2-rc...
25
  SUBLEVEL = 2
661bad63a   Wolfgang Denk   Prepare v1.3.2-rc...
26
  EXTRAVERSION = -rc3
881a87ecb   Wolfgang Denk   Add GIT version i...
27
  U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
f93286397   Marian Balakowicz   Add support for a...
28
  VERSION_FILE = $(obj)include/version_autogenerated.h
881a87ecb   Wolfgang Denk   Add GIT version i...
29

7ebf7443a   wdenk   Initial revision
30
31
32
33
34
35
  HOSTARCH := $(shell uname -m | \
  	sed -e s/i.86/i386/ \
  	    -e s/sun4u/sparc64/ \
  	    -e s/arm.*/arm/ \
  	    -e s/sa110/arm/ \
  	    -e s/powerpc/ppc/ \
a22806469   Kumar Gala   Treat ppc64 host ...
36
  	    -e s/ppc64/ppc/ \
7ebf7443a   wdenk   Initial revision
37
  	    -e s/macppc/ppc/)
f9d77ed38   Wolfgang Denk   Make "tr" command...
38
  HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
7ebf7443a   wdenk   Initial revision
39
  	    sed -e 's/\(cygwin\).*/cygwin/')
f9d77ed38   Wolfgang Denk   Make "tr" command...
40
  export	HOSTARCH HOSTOS
7ebf7443a   wdenk   Initial revision
41
42
43
44
45
  
  # Deal with colliding definitions from tcsh etc.
  VENDOR=
  
  #########################################################################
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
46
47
48
49
50
51
52
53
  # Allow for silent builds
  ifeq (,$(findstring s,$(MAKEFLAGS)))
  XECHO = echo
  else
  XECHO = :
  endif
  
  #########################################################################
f93286397   Marian Balakowicz   Add support for a...
54
55
56
  #
  # U-boot build supports producing a object files to the separate external
  # directory. Two use cases are supported:
887e2ec9e   Stefan Roese   Add support for A...
57
  #
f93286397   Marian Balakowicz   Add support for a...
58
59
60
61
62
63
64
65
66
67
  # 1) Add O= to the make command line
  # 'make O=/tmp/build all'
  #
  # 2) Set environement variable BUILD_DIR to point to the desired location
  # 'export BUILD_DIR=/tmp/build'
  # 'make'
  #
  # The second approach can also be used with a MAKEALL script
  # 'export BUILD_DIR=/tmp/build'
  # './MAKEALL'
887e2ec9e   Stefan Roese   Add support for A...
68
  #
f93286397   Marian Balakowicz   Add support for a...
69
  # Command line 'O=' setting overrides BUILD_DIR environent variable.
887e2ec9e   Stefan Roese   Add support for A...
70
  #
f93286397   Marian Balakowicz   Add support for a...
71
72
  # When none of the above methods is used the local build is performed and
  # the object files are placed in the source directory.
887e2ec9e   Stefan Roese   Add support for A...
73
  #
f93286397   Marian Balakowicz   Add support for a...
74
75
76
77
78
79
80
81
82
  
  ifdef O
  ifeq ("$(origin O)", "command line")
  BUILD_DIR := $(O)
  endif
  endif
  
  ifneq ($(BUILD_DIR),)
  saved-output := $(BUILD_DIR)
4f0645eb7   Marian Balakowicz   Fix LOG_DIR direc...
83
84
85
  
  # Attempt to create a output directory.
  $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
a73c8dbb4   Stefan Roese   Update NAND boot ...
86
  # Verify if it was successful.
f93286397   Marian Balakowicz   Add support for a...
87
88
89
90
91
92
93
94
95
96
97
98
  BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
  $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
  endif # ifneq ($(BUILD_DIR),)
  
  OBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
  SRCTREE		:= $(CURDIR)
  TOPDIR		:= $(SRCTREE)
  LNDIR		:= $(OBJTREE)
  export	TOPDIR SRCTREE OBJTREE
  
  MKCONFIG	:= $(SRCTREE)/mkconfig
  export MKCONFIG
7ebf7443a   wdenk   Initial revision
99

f93286397   Marian Balakowicz   Add support for a...
100
  ifneq ($(OBJTREE),$(SRCTREE))
dd520bf31   Wolfgang Denk   Code cleanup.
101
  REMOTE_BUILD	:= 1
f93286397   Marian Balakowicz   Add support for a...
102
103
104
105
106
107
108
109
110
111
112
113
  export REMOTE_BUILD
  endif
  
  # $(obj) and (src) are defined in config.mk but here in main Makefile
  # we also need them before config.mk is included which is the case for
  # some targets like unconfig, clean, clobber, distclean, etc.
  ifneq ($(OBJTREE),$(SRCTREE))
  obj := $(OBJTREE)/
  src := $(SRCTREE)/
  else
  obj :=
  src :=
887e2ec9e   Stefan Roese   Add support for A...
114
  endif
f93286397   Marian Balakowicz   Add support for a...
115
  export obj src
5013c09f7   Wolfgang Denk   Makefile: cleanup...
116
117
  # Make sure CDPATH settings don't interfere
  unexport CDPATH
f93286397   Marian Balakowicz   Add support for a...
118
  #########################################################################
7ebf7443a   wdenk   Initial revision
119

ae6d1056d   Wolfgang Denk   Fix Makefile depe...
120
  ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
7ebf7443a   wdenk   Initial revision
121

7ebf7443a   wdenk   Initial revision
122
  # load ARCH, BOARD, and CPU configuration
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
123
  include $(obj)include/config.mk
1d9f41050   wdenk   Patch by Steven S...
124
  export	ARCH CPU BOARD VENDOR SOC
f93286397   Marian Balakowicz   Add support for a...
125

7ebf7443a   wdenk   Initial revision
126
  ifndef CROSS_COMPILE
a5284efd1   Wolfgang Denk   Fix HOSTARCH hand...
127
  ifeq ($(HOSTARCH),$(ARCH))
7ebf7443a   wdenk   Initial revision
128
129
  CROSS_COMPILE =
  else
7ebf7443a   wdenk   Initial revision
130
  ifeq ($(ARCH),ppc)
16c8d5e76   Wolfgang Denk   Various USB relat...
131
  CROSS_COMPILE = ppc_8xx-
7ebf7443a   wdenk   Initial revision
132
133
  endif
  ifeq ($(ARCH),arm)
dc7c9a1a5   wdenk   * Patch by Rick B...
134
  CROSS_COMPILE = arm-linux-
7ebf7443a   wdenk   Initial revision
135
  endif
2262cfeef   wdenk   * Patch by Daniel...
136
  ifeq ($(ARCH),i386)
7a8e9bed1   wdenk   * Patch by Marc S...
137
138
  CROSS_COMPILE = i386-linux-
  endif
43d9616cf   wdenk   * Patch by Robert...
139
140
141
  ifeq ($(ARCH),mips)
  CROSS_COMPILE = mips_4KC-
  endif
4a5517094   wdenk   * Patch by Scott ...
142
143
144
  ifeq ($(ARCH),nios)
  CROSS_COMPILE = nios-elf-
  endif
5c952cf02   wdenk   Patches by Scott ...
145
146
147
  ifeq ($(ARCH),nios2)
  CROSS_COMPILE = nios2-elf-
  endif
4e5ca3eb6   wdenk   * Patch by Bernha...
148
149
150
  ifeq ($(ARCH),m68k)
  CROSS_COMPILE = m68k-elf-
  endif
507bbe3e8   wdenk   * Patch by Yasush...
151
152
153
  ifeq ($(ARCH),microblaze)
  CROSS_COMPILE = mb-
  endif
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
154
  ifeq ($(ARCH),blackfin)
ef26a08fe   Aubrey.Li   [Blackfin][PATCH-...
155
  CROSS_COMPILE = bfin-uclinux-
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
156
  endif
7b64fef33   Wolfgang Denk   Add AVR32 archite...
157
  ifeq ($(ARCH),avr32)
5374b36de   Haavard Skinnemoen   AVR32: Use avr32-...
158
  CROSS_COMPILE = avr32-linux-
7b64fef33   Wolfgang Denk   Add AVR32 archite...
159
  endif
0b135cfc2   Nobuhiro Iwamatsu   sh: First support...
160
161
  ifeq ($(ARCH),sh)
  CROSS_COMPILE = sh4-linux-
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
162
163
164
  endif	# sh
  endif	# HOSTARCH,ARCH
  endif	# CROSS_COMPILE
7ebf7443a   wdenk   Initial revision
165
166
  
  export	CROSS_COMPILE
92b197f0d   Wolfgang Denk   Fix Makefile: inc...
167
168
  # load other configuration
  include $(TOPDIR)/config.mk
7ebf7443a   wdenk   Initial revision
169
170
  #########################################################################
  # U-Boot objects....order is important (i.e. start must be first)
9fd5e31fe   wdenk   * Patch by Pierre...
171
  OBJS  = cpu/$(CPU)/start.o
2262cfeef   wdenk   * Patch by Daniel...
172
  ifeq ($(CPU),i386)
9fd5e31fe   wdenk   * Patch by Pierre...
173
174
  OBJS += cpu/$(CPU)/start16.o
  OBJS += cpu/$(CPU)/reset.o
2262cfeef   wdenk   * Patch by Daniel...
175
  endif
7ebf7443a   wdenk   Initial revision
176
  ifeq ($(CPU),ppc4xx)
9fd5e31fe   wdenk   * Patch by Pierre...
177
  OBJS += cpu/$(CPU)/resetvec.o
7ebf7443a   wdenk   Initial revision
178
  endif
42d1f0394   wdenk   * Patches by Xian...
179
180
181
  ifeq ($(CPU),mpc85xx)
  OBJS += cpu/$(CPU)/resetvec.o
  endif
7ebf7443a   wdenk   Initial revision
182

f93286397   Marian Balakowicz   Add support for a...
183
  OBJS := $(addprefix $(obj),$(OBJS))
9fd5e31fe   wdenk   * Patch by Pierre...
184
  LIBS  = lib_generic/libgeneric.a
7608d75f9   Kim Phillips   support board ven...
185
186
  LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
  	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
9fd5e31fe   wdenk   * Patch by Pierre...
187
  LIBS += board/$(BOARDDIR)/lib$(BOARD).a
7ebf7443a   wdenk   Initial revision
188
  LIBS += cpu/$(CPU)/lib$(CPU).a
1d9f41050   wdenk   Patch by Steven S...
189
190
191
  ifdef SOC
  LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
  endif
323bfa8f4   Stefan Roese   Remove BOARDLIBS ...
192
193
194
  ifeq ($(CPU),ixp)
  LIBS += cpu/ixp/npe/libnpe.a
  endif
7ebf7443a   wdenk   Initial revision
195
  LIBS += lib_$(ARCH)/lib$(ARCH).a
518e2e1ae   wdenk   * Patch by Pavel ...
196
  LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
c419d1d6d   stroese   some new esd boar...
197
  	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
7ebf7443a   wdenk   Initial revision
198
199
  LIBS += net/libnet.a
  LIBS += disk/libdisk.a
0f460a1ee   Jason Jin   Configurations fo...
200
  LIBS += drivers/bios_emulator/libatibiosemu.a
33daf5b78   Jean-Christophe PLAGNIOL-VILLARD   drivers/block : m...
201
  LIBS += drivers/block/libblock.a
57a127201   TsiChungLiew   ColdFire: MCF547x...
202
  LIBS += drivers/dma/libdma.a
f868cc5a5   Jean-Christophe PLAGNIOL-VILLARD   drivers/hwmon : m...
203
  LIBS += drivers/hwmon/libhwmon.a
2439e4bfa   Jean-Christophe PLAGNIOL-VILLARD   drivers/net : mov...
204
  LIBS += drivers/i2c/libi2c.a
16b195c82   Jean-Christophe PLAGNIOL-VILLARD   drivers/input : m...
205
  LIBS += drivers/input/libinput.a
318c0b904   Jean-Christophe PLAGNIOL-VILLARD   drivers/misc : mo...
206
  LIBS += drivers/misc/libmisc.a
59829cc18   Jean-Christophe PLAGNIOL-VILLARD   drivers/mtd : mov...
207
208
209
210
  LIBS += drivers/mtd/libmtd.a
  LIBS += drivers/mtd/nand/libnand.a
  LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
  LIBS += drivers/mtd/onenand/libonenand.a
8e585f02f   TsiChung Liew   Added M5329AFEE a...
211
  LIBS += drivers/net/libnet.a
2439e4bfa   Jean-Christophe PLAGNIOL-VILLARD   drivers/net : mov...
212
  LIBS += drivers/net/sk98lin/libsk98lin.a
2439e4bfa   Jean-Christophe PLAGNIOL-VILLARD   drivers/net : mov...
213
214
  LIBS += drivers/pci/libpci.a
  LIBS += drivers/pcmcia/libpcmcia.a
04a9e1180   Ben Warren   Add support for a...
215
  LIBS += drivers/spi/libspi.a
7737d5c65   Dave Liu   mpc83xx: add QE e...
216
217
218
  ifeq ($(CPU),mpc83xx)
  LIBS += drivers/qe/qe.a
  endif
da9d4610d   Andy Fleming   Add support for U...
219
220
221
  ifeq ($(CPU),mpc85xx)
  LIBS += drivers/qe/qe.a
  endif
59829cc18   Jean-Christophe PLAGNIOL-VILLARD   drivers/mtd : mov...
222
  LIBS += drivers/rtc/librtc.a
8e585f02f   TsiChung Liew   Added M5329AFEE a...
223
  LIBS += drivers/serial/libserial.a
59829cc18   Jean-Christophe PLAGNIOL-VILLARD   drivers/mtd : mov...
224
225
  LIBS += drivers/usb/libusb.a
  LIBS += drivers/video/libvideo.a
ad5bb451a   Wolfgang Denk   Restructure POST ...
226
227
228
  LIBS += post/libpost.a post/drivers/libpostdrivers.a
  LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
  	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
b44896215   Sergei Poselenov   Merged POST frame...
229
230
  LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
  	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
ad5bb451a   Wolfgang Denk   Restructure POST ...
231
232
233
234
  LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
  	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
  LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
  	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
7ebf7443a   wdenk   Initial revision
235
  LIBS += common/libcommon.a
7651f8bdb   Gerald Van Baren   Fix serious point...
236
  LIBS += libfdt/libfdt.a
500856eb1   Rafal Jaworowski   API for external ...
237
  LIBS += api/libapi.a
f93286397   Marian Balakowicz   Add support for a...
238
239
  
  LIBS := $(addprefix $(obj),$(LIBS))
019895a8d   Stefano Babic   Fix bug in depend...
240
  .PHONY : $(LIBS) $(VERSION_FILE)
a8c7c708a   wdenk   * Patch by Gleb N...
241

4f7cb08ee   wdenk   * Patch by Martin...
242
  # Add GCC lib
1a344f298   wdenk   * Removed '--no-w...
243
  PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
3d3befa75   wdenk   * Patch by Philip...
244

a8c7c708a   wdenk   * Patch by Gleb N...
245
246
247
  # The "tools" are needed early, so put this first
  # Don't include stuff already done in $(LIBS)
  SUBDIRS	= tools \
0dc1fc22a   Rafal Jaworowski   API: Convert cond...
248
249
  	  examples \
  	  api_examples
500856eb1   Rafal Jaworowski   API for external ...
250

b028f7151   wdenk   * Patch by Yuli B...
251
  .PHONY : $(SUBDIRS)
a8c7c708a   wdenk   * Patch by Gleb N...
252

887e2ec9e   Stefan Roese   Add support for A...
253
254
255
256
  ifeq ($(CONFIG_NAND_U_BOOT),y)
  NAND_SPL = nand_spl
  U_BOOT_NAND = $(obj)u-boot-nand.bin
  endif
751b9b518   Kyungmin Park   OneNAND Initial P...
257
258
259
260
  ifeq ($(CONFIG_ONENAND_U_BOOT),y)
  ONENAND_IPL = onenand_ipl
  U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
  endif
f93286397   Marian Balakowicz   Add support for a...
261
262
  __OBJS := $(subst $(obj),,$(OBJS))
  __LIBS := $(subst $(obj),,$(LIBS))
7ebf7443a   wdenk   Initial revision
263
  #########################################################################
bdccc4fed   wdenk   * Map ISP1362 USB...
264
  #########################################################################
7ebf7443a   wdenk   Initial revision
265

751b9b518   Kyungmin Park   OneNAND Initial P...
266
  ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
94a91e248   Mike Frysinger   generate u-boot.l...
267
268
269
  ifeq ($(ARCH),blackfin)
  ALL += $(obj)u-boot.ldr
  endif
7ebf7443a   wdenk   Initial revision
270

bdccc4fed   wdenk   * Map ISP1362 USB...
271
  all:		$(ALL)
7ebf7443a   wdenk   Initial revision
272

f93286397   Marian Balakowicz   Add support for a...
273
  $(obj)u-boot.hex:	$(obj)u-boot
6310eb9da   wdenk   Patches by David ...
274
  		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
f93286397   Marian Balakowicz   Add support for a...
275
  $(obj)u-boot.srec:	$(obj)u-boot
7ebf7443a   wdenk   Initial revision
276
  		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
f93286397   Marian Balakowicz   Add support for a...
277
  $(obj)u-boot.bin:	$(obj)u-boot
7ebf7443a   wdenk   Initial revision
278
  		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
94a91e248   Mike Frysinger   generate u-boot.l...
279
280
281
282
283
284
285
286
  $(obj)u-boot.ldr:	$(obj)u-boot
  		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
  
  $(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
  		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
  
  $(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
  		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
f93286397   Marian Balakowicz   Add support for a...
287
  $(obj)u-boot.img:	$(obj)u-boot.bin
bdccc4fed   wdenk   * Map ISP1362 USB...
288
289
  		./tools/mkimage -A $(ARCH) -T firmware -C none \
  		-a $(TEXT_BASE) -e 0 \
881a87ecb   Wolfgang Denk   Add GIT version i...
290
  		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
bdccc4fed   wdenk   * Map ISP1362 USB...
291
292
  			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
  		-d $< $@
566a494f5   Heiko Schocher   [PCS440EP] u...
293
  $(obj)u-boot.sha1:	$(obj)u-boot.bin
011595307   Heiko Schocher   [PCS440EP] - fix...
294
  		$(obj)tools/ubsha1 $(obj)u-boot.bin
566a494f5   Heiko Schocher   [PCS440EP] u...
295

f93286397   Marian Balakowicz   Add support for a...
296
  $(obj)u-boot.dis:	$(obj)u-boot
7ebf7443a   wdenk   Initial revision
297
  		$(OBJDUMP) -d $< > $@
dd531aac3   Wolfgang Denk   Fix Makefile depe...
298
  $(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
0858b835e   Mike Frysinger   add support for B...
299
  		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
f93286397   Marian Balakowicz   Add support for a...
300
301
  		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
  			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
b2184c314   wdenk   * Patch by Daniel...
302
  			-Map u-boot.map -o u-boot
7ebf7443a   wdenk   Initial revision
303

88f72527f   Johannes Stezenbach   Add dependencies ...
304
  $(OBJS):	depend $(obj)include/autoconf.mk
f93286397   Marian Balakowicz   Add support for a...
305
  		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
88f72527f   Johannes Stezenbach   Add dependencies ...
306
  $(LIBS):	depend $(obj)include/autoconf.mk
f93286397   Marian Balakowicz   Add support for a...
307
  		$(MAKE) -C $(dir $(subst $(obj),,$@))
a8c7c708a   wdenk   * Patch by Gleb N...
308

88f72527f   Johannes Stezenbach   Add dependencies ...
309
  $(SUBDIRS):	depend $(obj)include/autoconf.mk
b028f7151   wdenk   * Patch by Yuli B...
310
  		$(MAKE) -C $@ all
7ebf7443a   wdenk   Initial revision
311

f65c98129   Mike Frysinger   Makefile: add tar...
312
313
  $(LDSCRIPT):	depend $(obj)include/autoconf.mk
  		$(MAKE) -C $(dir $@) $(notdir $@)
dd531aac3   Wolfgang Denk   Fix Makefile depe...
314
  $(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
8318fbf8c   Marian Balakowicz   Fix sequoia separ...
315
  		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
887e2ec9e   Stefan Roese   Add support for A...
316

dd531aac3   Wolfgang Denk   Fix Makefile depe...
317
  $(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
8318fbf8c   Marian Balakowicz   Fix sequoia separ...
318
  		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
887e2ec9e   Stefan Roese   Add support for A...
319

751b9b518   Kyungmin Park   OneNAND Initial P...
320
321
322
323
324
  $(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
  		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
  
  $(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
  		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
325
326
327
  $(VERSION_FILE):
  		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
  		echo -n "$(U_BOOT_VERSION)" ; \
881a87ecb   Wolfgang Denk   Add GIT version i...
328
  		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
329
  			 $(TOPDIR)) ; \
0ec7a061f   Mike Frysinger   only update versi...
330
331
  		echo "\"" ) > $@.tmp
  		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
881a87ecb   Wolfgang Denk   Add GIT version i...
332

8f713fdfe   dzu   Removed tools/gdb...
333
  gdbtools:
f93286397   Marian Balakowicz   Add support for a...
334
335
336
337
338
339
  		$(MAKE) -C tools/gdb all || exit 1
  
  updater:
  		$(MAKE) -C tools/updater all || exit 1
  
  env:
64b3727b9   Markus Klotzbücher   tools: fix fw_pri...
340
  		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
8f713fdfe   dzu   Removed tools/gdb...
341

ae6d1056d   Wolfgang Denk   Fix Makefile depe...
342
  depend dep:	$(VERSION_FILE)
f93286397   Marian Balakowicz   Add support for a...
343
  		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
7ebf7443a   wdenk   Initial revision
344

a340c325e   Jean-Christophe PLAGNIOL-VILLARD   Makefile : fix ta...
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
  TAG_SUBDIRS += include
  TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
  TAG_SUBDIRS += cpu/$(CPU)
  TAG_SUBDIRS += lib_$(ARCH)
  TAG_SUBDIRS += fs/cramfs
  TAG_SUBDIRS += fs/fat
  TAG_SUBDIRS += fs/fdos
  TAG_SUBDIRS += fs/jffs2
  TAG_SUBDIRS += net
  TAG_SUBDIRS += disk
  TAG_SUBDIRS += common
  TAG_SUBDIRS += drivers/bios_emulator
  TAG_SUBDIRS += drivers/block
  TAG_SUBDIRS += drivers/hwmon
  TAG_SUBDIRS += drivers/i2c
  TAG_SUBDIRS += drivers/input
  TAG_SUBDIRS += drivers/misc
  TAG_SUBDIRS += drivers/mtd
  TAG_SUBDIRS += drivers/mtd/nand
  TAG_SUBDIRS += drivers/mtd/nand_legacy
  TAG_SUBDIRS += drivers/mtd/onenand
  TAG_SUBDIRS += drivers/net
  TAG_SUBDIRS += drivers/net/sk98lin
  TAG_SUBDIRS += drivers/pci
  TAG_SUBDIRS += drivers/pcmcia
  TAG_SUBDIRS += drivers/qe
  TAG_SUBDIRS += drivers/rtc
  TAG_SUBDIRS += drivers/serial
04a9e1180   Ben Warren   Add support for a...
373
  TAG_SUBDIRS += drivers/spi
a340c325e   Jean-Christophe PLAGNIOL-VILLARD   Makefile : fix ta...
374
375
  TAG_SUBDIRS += drivers/usb
  TAG_SUBDIRS += drivers/video
f93286397   Marian Balakowicz   Add support for a...
376
  tags ctags:
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
377
  		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
88fed9a12   Wolfgang Denk   Merge commit '3de...
378
  						-name '*.[ch]' -print`
7ebf7443a   wdenk   Initial revision
379
380
  
  etags:
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
381
  		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
88fed9a12   Wolfgang Denk   Merge commit '3de...
382
  						-name '*.[ch]' -print`
ffda586fc   Li Yang   add cscope build ...
383
384
385
386
  cscope:
  		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
  						> cscope.files
  		cscope -b -q -k
7ebf7443a   wdenk   Initial revision
387

f93286397   Marian Balakowicz   Add support for a...
388
  $(obj)System.map:	$(obj)u-boot
7ebf7443a   wdenk   Initial revision
389
390
  		@$(NM) $< | \
  		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
f93286397   Marian Balakowicz   Add support for a...
391
  		sort > $(obj)System.map
7ebf7443a   wdenk   Initial revision
392

2f155f6c0   Grant Likely   [BUILD] Generate ...
393
394
395
396
397
398
  #
  # Auto-generate the autoconf.mk file (which is included by all makefiles)
  #
  # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
  # the dep file is only include in this top level makefile to determine when
  # to regenerate the autoconf.mk file.
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
399
400
  $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
  	@$(XECHO) Generating include/autoconf.mk ; \
16fe77752   Mike Frysinger   error check autoc...
401
  	set -e ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
402
403
404
405
  	: Generate the dependancies ; \
  	$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
  	: Extract the config macros ; \
  	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
2f155f6c0   Grant Likely   [BUILD] Generate ...
406

ae6d1056d   Wolfgang Denk   Fix Makefile depe...
407
  sinclude $(obj)include/autoconf.mk.dep
2f155f6c0   Grant Likely   [BUILD] Generate ...
408

7ebf7443a   wdenk   Initial revision
409
  #########################################################################
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
410
  else	# !config.mk
f93286397   Marian Balakowicz   Add support for a...
411
412
  all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
  $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
413
  $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
ffda586fc   Li Yang   add cscope build ...
414
  dep tags ctags etags cscope $(obj)System.map:
7ebf7443a   wdenk   Initial revision
415
416
  	@echo "System not configured - see README" >&2
  	@ exit 1
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
417
  endif	# config.mk
7ebf7443a   wdenk   Initial revision
418

4e53a2585   Wolfgang Denk   Fix Makefile for ...
419
420
  .PHONY : CHANGELOG
  CHANGELOG:
b985b5d6e   Ben Warren   Fix TSEC driver: ...
421
422
  	git log --no-merges U-Boot-1_1_5.. | \
  	unexpand -a | sed -e 's/\s\s*$$//' > $@
4e53a2585   Wolfgang Denk   Fix Makefile for ...
423

7ebf7443a   wdenk   Initial revision
424
425
426
  #########################################################################
  
  unconfig:
887e2ec9e   Stefan Roese   Add support for A...
427
  	@rm -f $(obj)include/config.h $(obj)include/config.mk \
2f155f6c0   Grant Likely   [BUILD] Generate ...
428
429
  		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
  		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
7ebf7443a   wdenk   Initial revision
430
431
432
433
  
  #========================================================================
  # PowerPC
  #========================================================================
0db5bca80   wdenk   * Patch by Martin...
434
435
436
437
  
  #########################################################################
  ## MPC5xx Systems
  #########################################################################
5e5f9ed25   wdenk   Add support for c...
438
  canmb_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
439
  	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5e5f9ed25   wdenk   Add support for c...
440

0db5bca80   wdenk   * Patch by Martin...
441
  cmi_mpc5xx_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
442
  	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
0db5bca80   wdenk   * Patch by Martin...
443

db01a2ea9   wdenk   * Patch by Stephe...
444
  PATI_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
445
  	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
b6e4c4033   wdenk   * Patch by Denis ...
446

7ebf7443a   wdenk   Initial revision
447
  #########################################################################
945af8d72   wdenk   * Add support for...
448
449
  ## MPC5xxx Systems
  #########################################################################
a87589da7   wdenk   * Add support for...
450

dafba16e6   Wolfgang Denk   Merge with /home/...
451
  aev_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
452
  	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
dafba16e6   Wolfgang Denk   Merge with /home/...
453

6ca24c64a   dzu@denx.de   Add support for B...
454
  BC3450_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
455
  	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
6ca24c64a   dzu@denx.de   Add support for B...
456

5e4b3361b   Stefan Roese   Add esd cpci5200 ...
457
  cpci5200_config:  unconfig
f93286397   Marian Balakowicz   Add support for a...
458
  	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5e4b3361b   Stefan Roese   Add esd cpci5200 ...
459

05bf4919c   Wolfgang Denk   Minor coding styl...
460
  hmi1001_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
461
  	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
a87589da7   wdenk   * Add support for...
462

e35745bb6   wdenk   * Temporarily dis...
463
464
465
466
467
468
  Lite5200_config				\
  Lite5200_LOWBOOT_config			\
  Lite5200_LOWBOOT08_config		\
  icecube_5200_config			\
  icecube_5200_LOWBOOT_config		\
  icecube_5200_LOWBOOT08_config		\
dd520bf31   Wolfgang Denk   Code cleanup.
469
470
  icecube_5200_DDR_config			\
  icecube_5200_DDR_LOWBOOT_config		\
e35745bb6   wdenk   * Temporarily dis...
471
472
  icecube_5200_DDR_LOWBOOT08_config	\
  icecube_5100_config:			unconfig
f93286397   Marian Balakowicz   Add support for a...
473
474
475
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/icecube
  	@ >$(obj)include/config.h
17d704eb9   wdenk   Cleanup for relea...
476
477
  	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
  		{ if [ "$(findstring DDR,$@)" ] ; \
f93286397   Marian Balakowicz   Add support for a...
478
479
  			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
  			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
17d704eb9   wdenk   Cleanup for relea...
480
  		  fi ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
481
  		  $(XECHO) "... with LOWBOOT configuration" ; \
5cf9da482   wdenk   * Patch by Bernha...
482
483
  		}
  	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
484
  		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5cf9da482   wdenk   * Patch by Bernha...
485
  		  echo "... with 8 MB flash only" ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
486
  		  $(XECHO) "... with LOWBOOT configuration" ; \
5cf9da482   wdenk   * Patch by Bernha...
487
  		}
b2001f273   wdenk   * Fix IceCube CLK...
488
  	@[ -z "$(findstring DDR,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
489
  		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
490
  		  $(XECHO) "... DDR memory revision" ; \
b2001f273   wdenk   * Fix IceCube CLK...
491
  		}
d4ca31c40   wdenk   * Cleanup lowboot...
492
  	@[ -z "$(findstring 5200,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
493
  		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
494
  		  $(XECHO) "... with MPC5200 processor" ; \
d4ca31c40   wdenk   * Cleanup lowboot...
495
  		}
a0f2fe524   wdenk   * Patch by Stepha...
496
  	@[ -z "$(findstring 5100,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
497
  		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
498
  		  $(XECHO) "... with MGT5100 processor" ; \
945af8d72   wdenk   * Add support for...
499
  		}
f93286397   Marian Balakowicz   Add support for a...
500
  	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
945af8d72   wdenk   * Add support for...
501

05bf4919c   Wolfgang Denk   Minor coding styl...
502
  jupiter_config:	unconfig
2605e90bf   Heiko Schocher   [PATCH] Added sup...
503
  	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
4707fb50c   Bartlomiej Sieka   Preliminary patch...
504
  v38b_config: unconfig
90b1b2d69   Grant Likely   Fix Makefile to u...
505
  	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
4707fb50c   Bartlomiej Sieka   Preliminary patch...
506

86ea5f93d   Wolfgang Denk   Initial port to M...
507
  inka4x0_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
508
  	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
138ff60c1   wdenk   Add support for I...
509

09e4b0c5d   Wolfgang Denk   Add support for L...
510
  lite5200b_config	\
d3832e8fe   Domen Puncer   [PATCH] icecube/l...
511
  lite5200b_PM_config	\
09e4b0c5d   Wolfgang Denk   Add support for L...
512
  lite5200b_LOWBOOT_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
513
514
515
516
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/icecube
  	@ >$(obj)include/config.h
  	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
517
  	@ $(XECHO) "... DDR memory revision"
f93286397   Marian Balakowicz   Add support for a...
518
519
  	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
  	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
d3832e8fe   Domen Puncer   [PATCH] icecube/l...
520
521
  	@[ -z "$(findstring _PM_,$@)" ] || \
  		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
522
  		  $(XECHO) "... with power management (low-power mode) support" ; \
d3832e8fe   Domen Puncer   [PATCH] icecube/l...
523
  		}
09e4b0c5d   Wolfgang Denk   Add support for L...
524
  	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
525
  		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
526
  		  $(XECHO) "... with LOWBOOT configuration" ; \
09e4b0c5d   Wolfgang Denk   Add support for L...
527
  		}
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
528
  	@ $(XECHO) "... with MPC5200B processor"
f93286397   Marian Balakowicz   Add support for a...
529
  	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
09e4b0c5d   Wolfgang Denk   Add support for L...
530

f1ee98250   Stefan Roese   Add lowboot targe...
531
  mcc200_config	\
ed1cf8456   Wolfgang Denk   Updates for MCC20...
532
533
534
535
  mcc200_SDRAM_config	\
  mcc200_highboot_config	\
  mcc200_COM12_config	\
  mcc200_COM12_SDRAM_config	\
113f64e09   Wolfgang Denk   Update for MCC200...
536
537
  mcc200_COM12_highboot_config	\
  mcc200_COM12_highboot_SDRAM_config	\
ed1cf8456   Wolfgang Denk   Updates for MCC20...
538
539
540
541
542
  mcc200_highboot_SDRAM_config	\
  prs200_config	\
  prs200_DDR_config	\
  prs200_highboot_config	\
  prs200_highboot_DDR_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
543
544
545
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/mcc200
  	@ >$(obj)include/config.h
4819fad90   Wolfgang Denk   MCC200: set defau...
546
  	@[ -n "$(findstring highboot,$@)" ] || \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
547
  		{ $(XECHO) "... with lowboot configuration" ; \
f1ee98250   Stefan Roese   Add lowboot targe...
548
  		}
4819fad90   Wolfgang Denk   MCC200: set defau...
549
  	@[ -z "$(findstring highboot,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
550
  		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
551
  		  $(XECHO) "... with highboot configuration" ; \
4819fad90   Wolfgang Denk   MCC200: set defau...
552
553
  		}
  	@[ -n "$(findstring _SDRAM,$@)" ] || \
ed1cf8456   Wolfgang Denk   Updates for MCC20...
554
555
  		{ if [ -n "$(findstring mcc200,$@)" ]; \
  		  then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
556
  			$(XECHO) "... with DDR" ; \
ed1cf8456   Wolfgang Denk   Updates for MCC20...
557
558
559
  		  else \
  			if [ -n "$(findstring _DDR,$@)" ];\
  			then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
560
  				$(XECHO) "... with DDR" ; \
ed1cf8456   Wolfgang Denk   Updates for MCC20...
561
  			else \
f93286397   Marian Balakowicz   Add support for a...
562
  				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
563
  				$(XECHO) "... with SDRAM" ; \
ed1cf8456   Wolfgang Denk   Updates for MCC20...
564
565
  			fi; \
  		  fi; \
4819fad90   Wolfgang Denk   MCC200: set defau...
566
567
  		}
  	@[ -z "$(findstring _SDRAM,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
568
  		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
569
  		  $(XECHO) "... with SDRAM" ; \
4819fad90   Wolfgang Denk   MCC200: set defau...
570
  		}
463764c89   Wolfgang Denk   Add debug console...
571
  	@[ -z "$(findstring COM12,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
572
  		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
573
  		  $(XECHO) "... with console on COM12" ; \
463764c89   Wolfgang Denk   Add debug console...
574
  		}
ed1cf8456   Wolfgang Denk   Updates for MCC20...
575
  	@[ -z "$(findstring prs200,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
576
  		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
ed1cf8456   Wolfgang Denk   Updates for MCC20...
577
  		}
f93286397   Marian Balakowicz   Add support for a...
578
  	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
86ea5f93d   Wolfgang Denk   Initial port to M...
579

8b7d1f0ab   Stefan Roese   [PATCH] Add suppo...
580
  mecp5200_config:  unconfig
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
581
  	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
8b7d1f0ab   Stefan Roese   [PATCH] Add suppo...
582

6341d9d72   Heiko Schocher   added basic suppo...
583
  munices_config:	unconfig
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
584
  	@$(MKCONFIG) munices ppc mpc5xxx munices
6341d9d72   Heiko Schocher   added basic suppo...
585

df04a3df3   Wolfgang Denk   Add CHANEGLOG ent...
586
  o2dnt_config:
f93286397   Marian Balakowicz   Add support for a...
587
  	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
df04a3df3   Wolfgang Denk   Add CHANEGLOG ent...
588

5e4b3361b   Stefan Roese   Add esd cpci5200 ...
589
  pf5200_config:  unconfig
f93286397   Marian Balakowicz   Add support for a...
590
  	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5e4b3361b   Stefan Roese   Add esd cpci5200 ...
591

89394047b   wdenk   * Patch by Martin...
592
593
594
595
  PM520_config \
  PM520_DDR_config \
  PM520_ROMBOOT_config \
  PM520_ROMBOOT_DDR_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
596
597
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
89394047b   wdenk   * Patch by Martin...
598
  	@[ -z "$(findstring DDR,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
599
  		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
600
  		  $(XECHO) "... DDR memory revision" ; \
89394047b   wdenk   * Patch by Martin...
601
602
  		}
  	@[ -z "$(findstring ROMBOOT,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
603
  		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
604
  		  $(XECHO) "... booting from 8-bit flash" ; \
89394047b   wdenk   * Patch by Martin...
605
  		}
f93286397   Marian Balakowicz   Add support for a...
606
  	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
89394047b   wdenk   * Patch by Martin...
607

6624b687b   Wolfgang Denk   Rename SMMACO4 bo...
608
  smmaco4_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
609
  	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
9cdc83861   Wolfgang Denk   Merge with /home/...
610

86b116b1b   Bartlomiej Sieka   cm1_qp1 -> cm5200...
611
612
  cm5200_config:	unconfig
  	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
fa1df3089   Bartlomiej Sieka   CM1.QP1: Support ...
613

9cdc83861   Wolfgang Denk   Merge with /home/...
614
  spieval_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
615
  	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
9cdc83861   Wolfgang Denk   Merge with /home/...
616

45a212c4d   Wolfgang Denk   Add support for n...
617
  TB5200_B_config \
b87dfd285   Wolfgang Denk   Add support for T...
618
  TB5200_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
619
  	@mkdir -p $(obj)include
45a212c4d   Wolfgang Denk   Add support for n...
620
  	@[ -z "$(findstring _B,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
621
  		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
622
  		  $(XECHO) "... with MPC5200B processor" ; \
45a212c4d   Wolfgang Denk   Add support for n...
623
  		}
f93286397   Marian Balakowicz   Add support for a...
624
  	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
b87dfd285   Wolfgang Denk   Add support for T...
625

d4ca31c40   wdenk   * Cleanup lowboot...
626
627
628
  MINI5200_config	\
  EVAL5200_config	\
  TOP5200_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
629
630
631
  	@mkdir -p $(obj)include
  	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
  	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
d4ca31c40   wdenk   * Cleanup lowboot...
632

6c7a14084   wdenk   Patch by Mark Jon...
633
634
635
636
637
  Total5100_config		\
  Total5200_config		\
  Total5200_lowboot_config	\
  Total5200_Rev2_config		\
  Total5200_Rev2_lowboot_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
638
639
640
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/total5200
  	@ >$(obj)include/config.h
6c7a14084   wdenk   Patch by Mark Jon...
641
  	@[ -z "$(findstring 5100,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
642
  		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
643
  		  $(XECHO) "... with MGT5100 processor" ; \
6c7a14084   wdenk   Patch by Mark Jon...
644
645
  		}
  	@[ -z "$(findstring 5200,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
646
  		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
647
  		  $(XECHO) "... with MPC5200 processor" ; \
6c7a14084   wdenk   Patch by Mark Jon...
648
649
  		}
  	@[ -n "$(findstring Rev,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
650
  		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
651
  		  $(XECHO) "... revision 1 board" ; \
6c7a14084   wdenk   Patch by Mark Jon...
652
653
  		}
  	@[ -z "$(findstring Rev2_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
654
  		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
655
  		  $(XECHO) "... revision 2 board" ; \
6c7a14084   wdenk   Patch by Mark Jon...
656
657
  		}
  	@[ -z "$(findstring lowboot_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
658
  		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
659
  		  $(XECHO) "... with lowboot configuration" ; \
6c7a14084   wdenk   Patch by Mark Jon...
660
  		}
f93286397   Marian Balakowicz   Add support for a...
661
  	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6c7a14084   wdenk   Patch by Mark Jon...
662

135ae0062   Wolfgang Denk   Add configuration...
663
  cam5200_config \
d9384de2f   Marian Balakowicz   CAM5200 flash dri...
664
  cam5200_niosflash_config \
5196a7a03   Wolfgang Denk   Minor cleanup
665
  fo300_config \
6d3bc9b8c   Marian Balakowicz   Add support for W...
666
  MiniFAP_config \
5078cce81   Wolfgang Denk   * Cleanup TQM5200...
667
668
  TQM5200S_config \
  TQM5200S_HIGHBOOT_config \
5196a7a03   Wolfgang Denk   Minor cleanup
669
670
671
672
  TQM5200_B_config \
  TQM5200_B_HIGHBOOT_config \
  TQM5200_config	\
  TQM5200_STK100_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
673
674
675
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/tqm5200
  	@ >$(obj)include/config.h
135ae0062   Wolfgang Denk   Add configuration...
676
  	@[ -z "$(findstring cam5200,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
677
678
679
  		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
  		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
  		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
680
  		  $(XECHO) "... TQM5200S on Cam5200" ; \
5078cce81   Wolfgang Denk   * Cleanup TQM5200...
681
  		}
d9384de2f   Marian Balakowicz   CAM5200 flash dri...
682
683
  	@[ -z "$(findstring niosflash,$@)" ] || \
  		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
684
  		  $(XECHO) "... with NIOS flash driver" ; \
d9384de2f   Marian Balakowicz   CAM5200 flash dri...
685
  		}
6d3bc9b8c   Marian Balakowicz   Add support for W...
686
  	@[ -z "$(findstring fo300,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
687
  		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
688
  		  $(XECHO) "... TQM5200 on FO300" ; \
6d3bc9b8c   Marian Balakowicz   Add support for W...
689
  		}
89394047b   wdenk   * Patch by Martin...
690
  	@[ -z "$(findstring MiniFAP,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
691
  		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
692
  		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
56523f128   wdenk   * Patch by Martin...
693
  		}
cd65a3dc8   Wolfgang Denk   Adjust TQM5200 ma...
694
  	@[ -z "$(findstring STK100,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
695
  		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
696
  		  $(XECHO) "... on a STK52XX.100 base board" ; \
7e6bf358d   wdenk   Patch by Martin K...
697
  		}
5078cce81   Wolfgang Denk   * Cleanup TQM5200...
698
  	@[ -z "$(findstring TQM5200_B,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
699
  		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
5078cce81   Wolfgang Denk   * Cleanup TQM5200...
700
701
  		}
  	@[ -z "$(findstring TQM5200S,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
702
703
  		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
  		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
45a212c4d   Wolfgang Denk   Add support for n...
704
  		}
978b10964   Wolfgang Denk   Add support for h...
705
  	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
706
  		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
978b10964   Wolfgang Denk   Add support for h...
707
  		}
f93286397   Marian Balakowicz   Add support for a...
708
  	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
05bf4919c   Wolfgang Denk   Minor coding styl...
709
  uc101_config:		unconfig
6dedf3d49   Heiko Schocher   [PATCH] Add suppo...
710
  	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
05bf4919c   Wolfgang Denk   Minor coding styl...
711
  motionpro_config:	unconfig
53d4a4983   Bartlomiej Sieka   [Motion-PRO] Prel...
712
  	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
56523f128   wdenk   * Patch by Martin...
713

945af8d72   wdenk   * Add support for...
714
  #########################################################################
8993e54b6   Rafal Jaworowski   [ADS5121] Support...
715
716
  ## MPC512x Systems
  #########################################################################
5f91db7f5   John Rigby   MPC5121e ADS PCI ...
717
718
719
720
721
722
723
724
725
  ads5121_config \
  ads5121_PCI_config \
  	:		 unconfig
  	@echo "" >$(obj)include/config.h
  	@if [ "$(findstring _PCI_,$@)" ] ; then \
  		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
  		$(XECHO) "... with PCI enabled" ; \
  	fi
  	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
8993e54b6   Rafal Jaworowski   [ADS5121] Support...
726
727
728
  
  
  #########################################################################
7ebf7443a   wdenk   Initial revision
729
730
  ## MPC8xx Systems
  #########################################################################
2d24a3a78   wdenk   * Patch by Yuli B...
731
732
  Adder_config    \
  Adder87x_config \
262381329   wdenk   * Patch by Yuli B...
733
  AdderII_config  \
2d24a3a78   wdenk   * Patch by Yuli B...
734
  	:		unconfig
f93286397   Marian Balakowicz   Add support for a...
735
  	@mkdir -p $(obj)include
262381329   wdenk   * Patch by Yuli B...
736
  	$(if $(findstring AdderII,$@), \
f93286397   Marian Balakowicz   Add support for a...
737
738
  	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
  	@$(MKCONFIG) -a Adder ppc mpc8xx adder
2d24a3a78   wdenk   * Patch by Yuli B...
739

16c8d5e76   Wolfgang Denk   Various USB relat...
740
741
  AdderUSB_config:	unconfig
  	@./mkconfig -a AdderUSB ppc mpc8xx adder
180d3f74e   wdenk   * Fix problems ca...
742
  ADS860_config     \
180d3f74e   wdenk   * Fix problems ca...
743
744
745
  FADS823_config    \
  FADS850SAR_config \
  MPC86xADS_config  \
1114257c9   wdenk   Patch by Yuli Bar...
746
  MPC885ADS_config  \
180d3f74e   wdenk   * Fix problems ca...
747
  FADS860T_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
748
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7ebf7443a   wdenk   Initial revision
749
750
  
  AMX860_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
751
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7ebf7443a   wdenk   Initial revision
752
753
  
  c2mon_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
754
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7ebf7443a   wdenk   Initial revision
755
756
  
  CCM_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
757
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7ebf7443a   wdenk   Initial revision
758
759
  
  cogent_mpc8xx_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
760
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7ebf7443a   wdenk   Initial revision
761

3bac35137   wdenk   * Patch by Josef ...
762
  ELPT860_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
763
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
3bac35137   wdenk   * Patch by Josef ...
764

84c960ce6   Wolfgang Denk   Add support for E...
765
  EP88x_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
766
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
84c960ce6   Wolfgang Denk   Add support for E...
767

7ebf7443a   wdenk   Initial revision
768
  ESTEEM192E_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
769
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7ebf7443a   wdenk   Initial revision
770
771
  
  ETX094_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
772
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7ebf7443a   wdenk   Initial revision
773

7ebf7443a   wdenk   Initial revision
774
  FLAGADM_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
775
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7ebf7443a   wdenk   Initial revision
776

7aa786147   wdenk   * Add support for...
777
778
779
  xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
  
  GEN860T_SC_config	\
7ebf7443a   wdenk   Initial revision
780
  GEN860T_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
781
782
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
7aa786147   wdenk   * Add support for...
783
  	@[ -z "$(findstring _SC,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
784
  		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
785
  		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
7aa786147   wdenk   * Add support for...
786
  		}
f93286397   Marian Balakowicz   Add support for a...
787
  	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7ebf7443a   wdenk   Initial revision
788
789
  
  GENIETV_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
790
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7ebf7443a   wdenk   Initial revision
791
792
  
  GTH_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
793
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7ebf7443a   wdenk   Initial revision
794
795
  
  hermes_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
796
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7ebf7443a   wdenk   Initial revision
797

c40b29568   wdenk   * Patch by Rune T...
798
  HMI10_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
799
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
c40b29568   wdenk   * Patch by Rune T...
800

7ebf7443a   wdenk   Initial revision
801
  IAD210_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
802
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7ebf7443a   wdenk   Initial revision
803
804
805
806
807
  
  xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  
  ICU862_100MHz_config	\
  ICU862_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
808
809
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
7ebf7443a   wdenk   Initial revision
810
  	@[ -z "$(findstring _100MHz,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
811
  		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
812
  		  $(XECHO) "... with 100MHz system clock" ; \
7ebf7443a   wdenk   Initial revision
813
  		}
f93286397   Marian Balakowicz   Add support for a...
814
  	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
7ebf7443a   wdenk   Initial revision
815
816
  
  IP860_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
817
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
7ebf7443a   wdenk   Initial revision
818
819
820
821
  
  IVML24_256_config \
  IVML24_128_config \
  IVML24_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
822
823
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
7ebf7443a   wdenk   Initial revision
824
  	@[ -z "$(findstring IVML24_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
825
  		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
826
827
  		 }
  	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
828
  		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
829
830
  		 }
  	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
831
  		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
832
  		 }
f93286397   Marian Balakowicz   Add support for a...
833
  	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
7ebf7443a   wdenk   Initial revision
834
835
836
837
  
  IVMS8_256_config \
  IVMS8_128_config \
  IVMS8_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
838
839
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
7ebf7443a   wdenk   Initial revision
840
  	@[ -z "$(findstring IVMS8_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
841
  		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
842
843
  		 }
  	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
844
  		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
845
846
  		 }
  	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
847
  		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
7ebf7443a   wdenk   Initial revision
848
  		 }
f93286397   Marian Balakowicz   Add support for a...
849
  	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
7ebf7443a   wdenk   Initial revision
850

56f94be3e   wdenk   * Add support for...
851
  KUP4K_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
852
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
0608e04da   wdenk   * Patch by Klaus ...
853
854
  
  KUP4X_config    :       unconfig
f93286397   Marian Balakowicz   Add support for a...
855
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
56f94be3e   wdenk   * Add support for...
856

7ebf7443a   wdenk   Initial revision
857
  LANTEC_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
858
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
7ebf7443a   wdenk   Initial revision
859
860
  
  lwmon_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
861
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
7ebf7443a   wdenk   Initial revision
862
863
864
  
  MBX_config	\
  MBX860T_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
865
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
7ebf7443a   wdenk   Initial revision
866

381e4e639   Heiko Schocher   Added support for...
867
868
  mgsuvd_config:		unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
7ebf7443a   wdenk   Initial revision
869
  MHPC_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
870
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
7ebf7443a   wdenk   Initial revision
871
872
  
  MVS1_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
873
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
7ebf7443a   wdenk   Initial revision
874

993cad936   wdenk   * Patches by Robe...
875
876
877
  xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
  
  NETVIA_V2_config \
7ebf7443a   wdenk   Initial revision
878
  NETVIA_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
879
880
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
993cad936   wdenk   * Patches by Robe...
881
  	@[ -z "$(findstring NETVIA_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
882
  		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
883
  		  $(XECHO) "... Version 1" ; \
993cad936   wdenk   * Patches by Robe...
884
885
  		 }
  	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
886
  		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
887
  		  $(XECHO) "... Version 2" ; \
993cad936   wdenk   * Patches by Robe...
888
  		 }
f93286397   Marian Balakowicz   Add support for a...
889
  	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
7ebf7443a   wdenk   Initial revision
890

c26e454df   wdenk   Patches by Pantel...
891
892
893
  xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
  
  NETPHONE_V2_config \
04a85b3b3   wdenk   * Patches by Pant...
894
  NETPHONE_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
895
896
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
c26e454df   wdenk   Patches by Pantel...
897
  	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
898
  		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
c26e454df   wdenk   Patches by Pantel...
899
900
  		 }
  	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
901
  		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
c26e454df   wdenk   Patches by Pantel...
902
  		 }
f93286397   Marian Balakowicz   Add support for a...
903
  	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
04a85b3b3   wdenk   * Patches by Pant...
904

79fa88f3e   wdenk   Patch by Pantelis...
905
  xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
04a85b3b3   wdenk   * Patches by Pant...
906

79fa88f3e   wdenk   Patch by Pantelis...
907
908
909
910
911
  NETTA_ISDN_6412_SWAPHOOK_config \
  NETTA_ISDN_SWAPHOOK_config \
  NETTA_6412_SWAPHOOK_config \
  NETTA_SWAPHOOK_config \
  NETTA_ISDN_6412_config \
04a85b3b3   wdenk   * Patches by Pant...
912
  NETTA_ISDN_config \
79fa88f3e   wdenk   Patch by Pantelis...
913
  NETTA_6412_config \
04a85b3b3   wdenk   * Patches by Pant...
914
  NETTA_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
915
916
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
79fa88f3e   wdenk   Patch by Pantelis...
917
  	@[ -z "$(findstring ISDN_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
918
  		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
919
920
  		 }
  	@[ -n "$(findstring ISDN_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
921
  		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
04a85b3b3   wdenk   * Patches by Pant...
922
  		 }
79fa88f3e   wdenk   Patch by Pantelis...
923
  	@[ -z "$(findstring 6412_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
924
  		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
925
926
  		 }
  	@[ -n "$(findstring 6412_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
927
  		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
928
929
  		 }
  	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
930
  		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
931
932
  		 }
  	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
933
  		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
04a85b3b3   wdenk   * Patches by Pant...
934
  		 }
f93286397   Marian Balakowicz   Add support for a...
935
  	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
04a85b3b3   wdenk   * Patches by Pant...
936

79fa88f3e   wdenk   Patch by Pantelis...
937
938
939
940
  xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
  
  NETTA2_V2_config \
  NETTA2_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
941
942
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
79fa88f3e   wdenk   Patch by Pantelis...
943
  	@[ -z "$(findstring NETTA2_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
944
  		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
945
946
  		 }
  	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
947
  		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
79fa88f3e   wdenk   Patch by Pantelis...
948
  		 }
f93286397   Marian Balakowicz   Add support for a...
949
  	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
79fa88f3e   wdenk   Patch by Pantelis...
950

a367d4264   dzu@denx.de   Update for NC650 ...
951
952
953
  NC650_Rev1_config \
  NC650_Rev2_config \
  CP850_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
954
955
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
a367d4264   dzu@denx.de   Update for NC650 ...
956
  	@[ -z "$(findstring CP850,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
957
958
  		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
  		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
a367d4264   dzu@denx.de   Update for NC650 ...
959
960
  		 }
  	@[ -z "$(findstring Rev1,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
961
  		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
a367d4264   dzu@denx.de   Update for NC650 ...
962
963
  		 }
  	@[ -z "$(findstring Rev2,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
964
  		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
a367d4264   dzu@denx.de   Update for NC650 ...
965
  		 }
f93286397   Marian Balakowicz   Add support for a...
966
  	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
7ca202f56   wdenk   Add support for I...
967

7ebf7443a   wdenk   Initial revision
968
  NX823_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
969
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
7ebf7443a   wdenk   Initial revision
970
971
  
  pcu_e_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
972
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
7ebf7443a   wdenk   Initial revision
973

3bbc899fc   wdenk   Patch by Wolter K...
974
  QS850_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
975
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
3bbc899fc   wdenk   Patch by Wolter K...
976
977
  
  QS823_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
978
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
3bbc899fc   wdenk   Patch by Wolter K...
979
980
  
  QS860T_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
981
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
3bbc899fc   wdenk   Patch by Wolter K...
982

da93ed814   wdenk   * Patch by Shlomo...
983
  quantum_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
984
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
da93ed814   wdenk   * Patch by Shlomo...
985

7ebf7443a   wdenk   Initial revision
986
  R360MPI_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
987
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
7ebf7443a   wdenk   Initial revision
988

682011ff6   wdenk   * Patches by Udi ...
989
  RBC823_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
990
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
682011ff6   wdenk   * Patches by Udi ...
991

7ebf7443a   wdenk   Initial revision
992
  RPXClassic_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
993
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
7ebf7443a   wdenk   Initial revision
994
995
  
  RPXlite_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
996
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
7ebf7443a   wdenk   Initial revision
997

dd520bf31   Wolfgang Denk   Code cleanup.
998
999
1000
  RPXlite_DW_64_config		\
  RPXlite_DW_LCD_config		\
  RPXlite_DW_64_LCD_config	\
e63c8ee3d   wdenk   Patch by Sam Song...
1001
1002
1003
1004
  RPXlite_DW_NVRAM_config		\
  RPXlite_DW_NVRAM_64_config      \
  RPXlite_DW_NVRAM_LCD_config	\
  RPXlite_DW_NVRAM_64_LCD_config  \
05bf4919c   Wolfgang Denk   Minor coding styl...
1005
  RPXlite_DW_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1006
1007
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
e63c8ee3d   wdenk   Patch by Sam Song...
1008
  	@[ -z "$(findstring _64,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1009
  		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1010
  		  $(XECHO) "... with 64MHz system clock ..."; \
e63c8ee3d   wdenk   Patch by Sam Song...
1011
1012
  		}
  	@[ -z "$(findstring _LCD,$@)" ] || \
dd520bf31   Wolfgang Denk   Code cleanup.
1013
  		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
f93286397   Marian Balakowicz   Add support for a...
1014
  		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1015
  		  $(XECHO) "... with LCD display ..."; \
e63c8ee3d   wdenk   Patch by Sam Song...
1016
1017
  		}
  	@[ -z "$(findstring _NVRAM,$@)" ] || \
dd520bf31   Wolfgang Denk   Code cleanup.
1018
  		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1019
  		  $(XECHO) "... with ENV in NVRAM ..."; \
e63c8ee3d   wdenk   Patch by Sam Song...
1020
  		}
f93286397   Marian Balakowicz   Add support for a...
1021
  	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
e63c8ee3d   wdenk   Patch by Sam Song...
1022

73a8b27c5   wdenk   * Add support for...
1023
  rmu_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1024
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
73a8b27c5   wdenk   * Add support for...
1025

7ebf7443a   wdenk   Initial revision
1026
  RRvision_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1027
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
7ebf7443a   wdenk   Initial revision
1028
1029
  
  RRvision_LCD_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1030
1031
1032
1033
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_LCD" >$(obj)include/config.h
  	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
  	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
7ebf7443a   wdenk   Initial revision
1034
1035
  
  SM850_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1036
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
7ebf7443a   wdenk   Initial revision
1037

b02d0177c   Markus Klotzbuecher   Support for spc19...
1038
  spc1920_config:
f93286397   Marian Balakowicz   Add support for a...
1039
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
b02d0177c   Markus Klotzbuecher   Support for spc19...
1040

7ebf7443a   wdenk   Initial revision
1041
  SPD823TS_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1042
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
7ebf7443a   wdenk   Initial revision
1043

6bdf43066   Wolfgang Denk   Add support for S...
1044
  stxxtc_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1045
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
6bdf43066   Wolfgang Denk   Add support for S...
1046

dc7c9a1a5   wdenk   * Patch by Rick B...
1047
  svm_sc8xx_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1048
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
dc7c9a1a5   wdenk   * Patch by Rick B...
1049

7ebf7443a   wdenk   Initial revision
1050
  SXNI855T_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1051
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
7ebf7443a   wdenk   Initial revision
1052

db2f721ff   wdenk   * Patch by Rune T...
1053
1054
  # EMK MPC8xx based modules
  TOP860_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1055
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
db2f721ff   wdenk   * Patch by Rune T...
1056

7ebf7443a   wdenk   Initial revision
1057
  # Play some tricks for configuration selection
e9132ea94   wdenk   Clean up the TQM8...
1058
1059
1060
  # Only 855 and 860 boards may come with FEC
  # and only 823 boards may have LCD support
  xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
7ebf7443a   wdenk   Initial revision
1061
1062
  
  FPS850L_config		\
384ae0250   wdenk   * Patch by Robert...
1063
  FPS860L_config		\
f12e568ca   wdenk   * Add support for...
1064
  NSCU_config		\
7ebf7443a   wdenk   Initial revision
1065
  TQM823L_config		\
7ebf7443a   wdenk   Initial revision
1066
  TQM823L_LCD_config	\
7ebf7443a   wdenk   Initial revision
1067
  TQM850L_config		\
7ebf7443a   wdenk   Initial revision
1068
  TQM855L_config		\
7ebf7443a   wdenk   Initial revision
1069
  TQM860L_config		\
d126bfbdb   wdenk   Add support for T...
1070
  TQM862L_config		\
ae3af05ec   wdenk   Update for TQM bo...
1071
  TQM823M_config		\
ae3af05ec   wdenk   Update for TQM bo...
1072
  TQM850M_config		\
f12e568ca   wdenk   * Add support for...
1073
  TQM855M_config		\
f12e568ca   wdenk   * Add support for...
1074
  TQM860M_config		\
f12e568ca   wdenk   * Add support for...
1075
  TQM862M_config		\
8cba090c5   Wolfgang Denk   Add support for V...
1076
  TQM866M_config		\
090eb7351   Markus Klotzbuecher   Add support for T...
1077
  TQM885D_config		\
efc6f447c   Guennadi Liakhovetski   Add support for t...
1078
  TK885D_config		\
8cba090c5   Wolfgang Denk   Add support for V...
1079
  virtlab2_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1080
1081
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
7ebf7443a   wdenk   Initial revision
1082
  	@[ -z "$(findstring _LCD,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1083
1084
  		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
  		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1085
  		  $(XECHO) "... with LCD display" ; \
7ebf7443a   wdenk   Initial revision
1086
  		}
f93286397   Marian Balakowicz   Add support for a...
1087
  	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
7ebf7443a   wdenk   Initial revision
1088
1089
  
  TTTech_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1090
1091
1092
1093
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_LCD" >$(obj)include/config.h
  	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
  	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
7ebf7443a   wdenk   Initial revision
1094

ec0aee7b6   wdenk   Cleanup: avoid tr...
1095
  uc100_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1096
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
f7d1572bf   wdenk   Add support for U...
1097

608c91460   wdenk   Add support for V...
1098
  v37_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1099
1100
1101
1102
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_LCD" >$(obj)include/config.h
  	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
  	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
608c91460   wdenk   Add support for V...
1103

91e940d9b   dzu   Add configuration...
1104
  wtk_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1105
1106
1107
1108
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_LCD" >$(obj)include/config.h
  	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
  	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
91e940d9b   dzu   Add configuration...
1109

7ebf7443a   wdenk   Initial revision
1110
1111
1112
  #########################################################################
  ## PPC4xx Systems
  #########################################################################
e55ca7e26   wdenk   Patch by Andrea M...
1113
  xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
7ebf7443a   wdenk   Initial revision
1114

16c0cc1c8   Stefan Roese   [PATCH] Add AMCC ...
1115
1116
  acadia_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
c440bfe6d   Stefan Roese   ppc4xx: Add NAND ...
1117
  acadia_nand_config:	unconfig
63e22764d   Wolfgang Denk   Minor cleanup of ...
1118
1119
  	@mkdir -p $(obj)include $(obj)board/amcc/acadia
  	@mkdir -p $(obj)nand_spl/board/amcc/acadia
c440bfe6d   Stefan Roese   ppc4xx: Add NAND ...
1120
1121
1122
1123
  	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
  	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
  	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
  	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
7ebf7443a   wdenk   Initial revision
1124
  ADCIOP_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1125
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
7ebf7443a   wdenk   Initial revision
1126

899620c2d   Stefan Roese   Add initial suppo...
1127
  alpr_config:	unconfig
35d22f957   Stefan Roese   Coding style cleanup
1128
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
899620c2d   Stefan Roese   Add initial suppo...
1129

7521af1c7   Wolfgang Denk   Add support for A...
1130
  AP1000_config:unconfig
f93286397   Marian Balakowicz   Add support for a...
1131
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
7521af1c7   Wolfgang Denk   Add support for A...
1132

c419d1d6d   stroese   some new esd boar...
1133
  APC405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1134
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
c419d1d6d   stroese   some new esd boar...
1135

7ebf7443a   wdenk   Initial revision
1136
  AR405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1137
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
7ebf7443a   wdenk   Initial revision
1138

549826eaa   stroese   - ASH405 board ad...
1139
  ASH405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1140
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
549826eaa   stroese   - ASH405 board ad...
1141

8a316c9b6   Stefan Roese   Major cleanup for...
1142
  bamboo_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1143
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
8a316c9b6   Stefan Roese   Major cleanup for...
1144

cf959c7d6   Stefan Roese   ppc4xx: Add NAND ...
1145
  bamboo_nand_config:	unconfig
63e22764d   Wolfgang Denk   Minor cleanup of ...
1146
1147
  	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
  	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
cf959c7d6   Stefan Roese   ppc4xx: Add NAND ...
1148
  	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
f3679aa13   Stefan Roese   Merge with /home/...
1149
  	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
cf959c7d6   Stefan Roese   ppc4xx: Add NAND ...
1150
1151
  	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
  	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
8a316c9b6   Stefan Roese   Major cleanup for...
1152
  bubinga_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1153
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
549826eaa   stroese   - ASH405 board ad...
1154

7ebf7443a   wdenk   Initial revision
1155
  CANBT_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1156
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
7ebf7443a   wdenk   Initial revision
1157

1d6f97209   wdenk   Fix SysClk handli...
1158
1159
1160
  CATcenter_config	\
  CATcenter_25_config	\
  CATcenter_33_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1161
1162
1163
  	@mkdir -p $(obj)include
  	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
  	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1d6f97209   wdenk   Fix SysClk handli...
1164
  	@[ -z "$(findstring _25,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1165
  		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1166
  		  $(XECHO) "SysClk = 25MHz" ; \
1d6f97209   wdenk   Fix SysClk handli...
1167
1168
  		}
  	@[ -z "$(findstring _33,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1169
  		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1170
  		  $(XECHO) "SysClk = 33MHz" ; \
1d6f97209   wdenk   Fix SysClk handli...
1171
  		}
f93286397   Marian Balakowicz   Add support for a...
1172
  	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
10767ccb8   wdenk   Add support for C...
1173

7644f16f6   Stefan Roese   esd CPCI2DP board...
1174
  CPCI2DP_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1175
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
7644f16f6   Stefan Roese   esd CPCI2DP board...
1176

549826eaa   stroese   - ASH405 board ad...
1177
1178
  CPCI405_config	\
  CPCI4052_config	\
c419d1d6d   stroese   some new esd boar...
1179
  CPCI405DT_config	\
549826eaa   stroese   - ASH405 board ad...
1180
  CPCI405AB_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1181
1182
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
  	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
7ebf7443a   wdenk   Initial revision
1183

7ebf7443a   wdenk   Initial revision
1184
  CPCIISER4_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1185
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
7ebf7443a   wdenk   Initial revision
1186

db01a2ea9   wdenk   * Patch by Stephe...
1187
  CRAYL1_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1188
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
7ebf7443a   wdenk   Initial revision
1189

cd0a9de68   wdenk   * Patch by Lauren...
1190
  csb272_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1191
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
cd0a9de68   wdenk   * Patch by Lauren...
1192

aa2450904   wdenk   Patch by Tolunay ...
1193
  csb472_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1194
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
aa2450904   wdenk   Patch by Tolunay ...
1195

7ebf7443a   wdenk   Initial revision
1196
  DASA_SIM_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1197
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
7ebf7443a   wdenk   Initial revision
1198

72cd5aa70   stroese   New boards DP405,...
1199
  DP405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1200
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
72cd5aa70   stroese   New boards DP405,...
1201

7ebf7443a   wdenk   Initial revision
1202
  DU405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1203
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
7ebf7443a   wdenk   Initial revision
1204

1a3ac86b7   Matthias Fuchs   ppc4xx: Complete ...
1205
1206
  DU440_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
8a316c9b6   Stefan Roese   Major cleanup for...
1207
  ebony_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1208
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
7ebf7443a   wdenk   Initial revision
1209

db01a2ea9   wdenk   * Patch by Stephe...
1210
  ERIC_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1211
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
7ebf7443a   wdenk   Initial revision
1212

db01a2ea9   wdenk   * Patch by Stephe...
1213
  EXBITGEN_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1214
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
d1cbe85b0   wdenk   Merge from "stabl...
1215

c419d1d6d   stroese   some new esd boar...
1216
  G2000_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1217
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
c419d1d6d   stroese   some new esd boar...
1218

ac982ea5a   Niklaus Giger   Add PPC4xx-HCU4 a...
1219
  hcu4_config:	unconfig
b7f6193e7   Niklaus Giger   ppc4xx: HCU4/5. F...
1220
  	@mkdir -p $(obj)board/netstal/common
35d22f957   Stefan Roese   Coding style cleanup
1221
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
ac982ea5a   Niklaus Giger   Add PPC4xx-HCU4 a...
1222
1223
  
  hcu5_config:	unconfig
b7f6193e7   Niklaus Giger   ppc4xx: HCU4/5. F...
1224
  	@mkdir -p $(obj)board/netstal/common
35d22f957   Stefan Roese   Coding style cleanup
1225
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
ac982ea5a   Niklaus Giger   Add PPC4xx-HCU4 a...
1226

c419d1d6d   stroese   some new esd boar...
1227
  HH405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1228
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
c419d1d6d   stroese   some new esd boar...
1229

72cd5aa70   stroese   New boards DP405,...
1230
  HUB405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1231
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
72cd5aa70   stroese   New boards DP405,...
1232

db01a2ea9   wdenk   * Patch by Stephe...
1233
  JSE_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1234
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
db01a2ea9   wdenk   * Patch by Stephe...
1235

b79316f2a   Stefan Roese   Add Sandburst Met...
1236
  KAREF_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1237
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
b79316f2a   Stefan Roese   Add Sandburst Met...
1238

4745acaa1   Stefan Roese   [PATCH] Add suppo...
1239
1240
  katmai_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
353f2688b   Stefan Roese   ppc4xx: Add initi...
1241
1242
1243
1244
  # Kilauea & Haleakala images are identical (recognized via PVR)
  kilauea_config \
  haleakala_config: unconfig
  	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
566806ca1   Stefan Roese   ppc4xx: Add initi...
1245

3d6cb3b24   Stefan Roese   ppc4xx: Add AMCC ...
1246
1247
1248
1249
1250
1251
1252
1253
  kilauea_nand_config \
  haleakala_nand_config: unconfig
  	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
  	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
  	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
  	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
  	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
  	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
c591dffe0   Larry Johnson   Add support for K...
1254
1255
  korat_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
6e7fb6eaa   Stefan Roese   Add support for A...
1256
  luan_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1257
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
6e7fb6eaa   Stefan Roese   Add support for A...
1258

b765ffb77   Stefan Roese   [ppc4xx] Add init...
1259
1260
  lwmon5_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
211ea91ac   Stefan Roese   ppc4xx: Add initi...
1261
1262
  makalu_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
b79316f2a   Stefan Roese   Add Sandburst Met...
1263
  METROBOX_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1264
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
b79316f2a   Stefan Roese   Add Sandburst Met...
1265

db01a2ea9   wdenk   * Patch by Stephe...
1266
  MIP405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1267
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
7ebf7443a   wdenk   Initial revision
1268

db01a2ea9   wdenk   * Patch by Stephe...
1269
  MIP405T_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1270
1271
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1272
  	@$(XECHO) "Enable subset config for MIP405T"
f93286397   Marian Balakowicz   Add support for a...
1273
  	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
f3e0de60a   wdenk   * Patch by Denis ...
1274

db01a2ea9   wdenk   * Patch by Stephe...
1275
  ML2_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1276
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
7ebf7443a   wdenk   Initial revision
1277

db01a2ea9   wdenk   * Patch by Stephe...
1278
  ml300_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1279
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
028ab6b59   wdenk   * Patch by Peter ...
1280

8a316c9b6   Stefan Roese   Major cleanup for...
1281
  ocotea_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1282
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
0e6d798cb   wdenk   * Patch by Travis...
1283

7ebf7443a   wdenk   Initial revision
1284
1285
  OCRTC_config		\
  ORSG_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1286
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
7ebf7443a   wdenk   Initial revision
1287

5568e613e   Stefan Roese   Add support for P...
1288
  p3p440_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1289
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
5568e613e   Stefan Roese   Add support for P...
1290

7ebf7443a   wdenk   Initial revision
1291
  PCI405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1292
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
7ebf7443a   wdenk   Initial revision
1293

a4c8d1389   Stefan Roese   Add support for P...
1294
  pcs440ep_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1295
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
a4c8d1389   Stefan Roese   Add support for P...
1296

db01a2ea9   wdenk   * Patch by Stephe...
1297
  PIP405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1298
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
7ebf7443a   wdenk   Initial revision
1299

72cd5aa70   stroese   New boards DP405,...
1300
  PLU405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1301
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
72cd5aa70   stroese   New boards DP405,...
1302

549826eaa   stroese   - ASH405 board ad...
1303
  PMC405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1304
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
549826eaa   stroese   - ASH405 board ad...
1305

8ba132cab   Matthias Fuchs   ppc4xx: Complete ...
1306
1307
  PMC440_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
281e00a3b   wdenk   * Code cleanup
1308
  PPChameleonEVB_config		\
e55ca7e26   wdenk   Patch by Andrea M...
1309
1310
1311
1312
1313
1314
  PPChameleonEVB_BA_25_config	\
  PPChameleonEVB_ME_25_config	\
  PPChameleonEVB_HI_25_config	\
  PPChameleonEVB_BA_33_config	\
  PPChameleonEVB_ME_33_config	\
  PPChameleonEVB_HI_33_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1315
1316
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
1d6f97209   wdenk   Fix SysClk handli...
1317
  	@[ -z "$(findstring EVB_BA,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1318
  		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1319
  		  $(XECHO) "... BASIC model" ; \
fbe4b5cbd   wdenk   * Update TRAB aut...
1320
  		}
1d6f97209   wdenk   Fix SysClk handli...
1321
  	@[ -z "$(findstring EVB_ME,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1322
  		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1323
  		  $(XECHO) "... MEDIUM model" ; \
fbe4b5cbd   wdenk   * Update TRAB aut...
1324
  		}
1d6f97209   wdenk   Fix SysClk handli...
1325
  	@[ -z "$(findstring EVB_HI,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1326
  		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1327
  		  $(XECHO) "... HIGH-END model" ; \
fbe4b5cbd   wdenk   * Update TRAB aut...
1328
  		}
e55ca7e26   wdenk   Patch by Andrea M...
1329
  	@[ -z "$(findstring _25,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1330
  		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1331
  		  $(XECHO) "SysClk = 25MHz" ; \
e55ca7e26   wdenk   Patch by Andrea M...
1332
1333
  		}
  	@[ -z "$(findstring _33,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1334
  		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1335
  		  $(XECHO) "SysClk = 33MHz" ; \
e55ca7e26   wdenk   Patch by Andrea M...
1336
  		}
f93286397   Marian Balakowicz   Add support for a...
1337
  	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
12f34241c   wdenk   * Add support for...
1338

652a10c09   wdenk   * Patch by Daniel...
1339
  sbc405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1340
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
652a10c09   wdenk   * Patch by Daniel...
1341

430f1b0f9   Stefan Roese   Merge some AMCC m...
1342
1343
1344
1345
1346
1347
  sequoia_config \
  rainier_config: unconfig
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
  	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
887e2ec9e   Stefan Roese   Add support for A...
1348

430f1b0f9   Stefan Roese   Merge some AMCC m...
1349
1350
  sequoia_nand_config \
  rainier_nand_config: unconfig
63e22764d   Wolfgang Denk   Minor cleanup of ...
1351
1352
  	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
  	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
8318fbf8c   Marian Balakowicz   Fix sequoia separ...
1353
  	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
430f1b0f9   Stefan Roese   Merge some AMCC m...
1354
1355
1356
  	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
  	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
8318fbf8c   Marian Balakowicz   Fix sequoia separ...
1357
1358
  	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
  	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
652a10c09   wdenk   * Patch by Daniel...
1359

6d3e01072   Wolfgang Denk   Raname solidcard3...
1360
  sc3_config:unconfig
35d22f957   Stefan Roese   Coding style cleanup
1361
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
ca43ba18e   Heiko Schocher   Added support for...
1362

d4024bb72   John Otken   ppc4xx: Add suppo...
1363
1364
  taihu_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
5fb692cae   Stefan Roese   [PATCH] Add suppo...
1365
1366
  taishan_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
72cd5aa70   stroese   New boards DP405,...
1367
  VOH405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1368
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
72cd5aa70   stroese   New boards DP405,...
1369

c419d1d6d   stroese   some new esd boar...
1370
  VOM405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1371
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
c419d1d6d   stroese   some new esd boar...
1372

feaedfcf8   Stefan Roese   New PPC 405EP boa...
1373
  CMS700_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1374
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
feaedfcf8   Stefan Roese   New PPC 405EP boa...
1375

7ebf7443a   wdenk   Initial revision
1376
1377
  W7OLMC_config	\
  W7OLMG_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1378
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
7ebf7443a   wdenk   Initial revision
1379

430f1b0f9   Stefan Roese   Merge some AMCC m...
1380
1381
1382
1383
  # Walnut & Sycamore images are identical (recognized via PVR)
  walnut_config \
  sycamore_config: unconfig
  	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
7ebf7443a   wdenk   Initial revision
1384

c419d1d6d   stroese   some new esd boar...
1385
  WUH405_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1386
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
c419d1d6d   stroese   some new esd boar...
1387

db01a2ea9   wdenk   * Patch by Stephe...
1388
  XPEDITE1K_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1389
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
ba56f6257   wdenk   Patch by Travis S...
1390

430f1b0f9   Stefan Roese   Merge some AMCC m...
1391
1392
  yosemite_config \
  yellowstone_config: unconfig
700200c67   Stefan Roese   [PATCH] Merge Yos...
1393
  	@mkdir -p $(obj)include
430f1b0f9   Stefan Roese   Merge some AMCC m...
1394
1395
  	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
2aa54f651   Stefan Roese   [PATCH] Change co...
1396
  	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
8a316c9b6   Stefan Roese   Major cleanup for...
1397

6c5879f38   Marian Balakowicz   Add support for A...
1398
  yucca_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1399
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
6c5879f38   Marian Balakowicz   Add support for A...
1400

779e97511   Stefan Roese   ppc4xx: Add initi...
1401
1402
  zeus_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
7ebf7443a   wdenk   Initial revision
1403
  #########################################################################
983fda839   wdenk   Patch by TsiChung...
1404
1405
  ## MPC8220 Systems
  #########################################################################
dc17fb6dc   Wolfgang Denk   Cleanup build pro...
1406
1407
1408
  
  Alaska8220_config	\
  Yukon8220_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1409
  	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
983fda839   wdenk   Patch by TsiChung...
1410

12b43d515   wdenk   Add support for M...
1411
  sorcery_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1412
  	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
12b43d515   wdenk   Add support for M...
1413

983fda839   wdenk   Patch by TsiChung...
1414
  #########################################################################
7ebf7443a   wdenk   Initial revision
1415
1416
  ## MPC824x Systems
  #########################################################################
efa329cb8   wdenk   * Add start-up de...
1417
  xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
3bac35137   wdenk   * Patch by Josef ...
1418

0332990b8   wdenk   * Patch by Devin ...
1419
  A3000_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1420
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
0332990b8   wdenk   * Patch by Devin ...
1421

8e6f1a8ec   Wolfgang Denk   Add Barco Streami...
1422
  barco_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1423
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
8e6f1a8ec   Wolfgang Denk   Add Barco Streami...
1424

7ebf7443a   wdenk   Initial revision
1425
  BMW_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1426
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
7ebf7443a   wdenk   Initial revision
1427

3bac35137   wdenk   * Patch by Josef ...
1428
1429
  CPC45_config	\
  CPC45_ROMBOOT_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1430
1431
  	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
  	@cd $(obj)include ;				\
3bac35137   wdenk   * Patch by Josef ...
1432
1433
  	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1434
  		$(XECHO) "... booting from 8-bit flash" ; \
3bac35137   wdenk   * Patch by Josef ...
1435
1436
  	else \
  		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1437
  		$(XECHO) "... booting from 64-bit flash" ; \
3bac35137   wdenk   * Patch by Josef ...
1438
1439
  	fi; \
  	echo "export CONFIG_BOOT_ROM" >> config.mk;
7ebf7443a   wdenk   Initial revision
1440
  CU824_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1441
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
7ebf7443a   wdenk   Initial revision
1442

7abf0c588   wdenk   * Patch by Dan Ma...
1443
  debris_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1444
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
7abf0c588   wdenk   * Patch by Dan Ma...
1445

80885a9d5   wdenk   * Patch by Markus...
1446
  eXalion_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1447
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
80885a9d5   wdenk   * Patch by Markus...
1448

756f586a7   wdenk   * Patch by Yusdi ...
1449
  HIDDEN_DRAGON_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1450
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
756f586a7   wdenk   * Patch by Yusdi ...
1451

53dd6ce4f   Wolfgang Denk   Add support for K...
1452
  kvme080_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1453
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
53dd6ce4f   Wolfgang Denk   Add support for K...
1454

7ebf7443a   wdenk   Initial revision
1455
  MOUSSE_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1456
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
7ebf7443a   wdenk   Initial revision
1457
1458
  
  MUSENKI_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1459
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
7ebf7443a   wdenk   Initial revision
1460

b4676a25e   wdenk   * Patch by Andre ...
1461
  MVBLUE_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1462
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
b4676a25e   wdenk   * Patch by Andre ...
1463

7ebf7443a   wdenk   Initial revision
1464
  OXC_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1465
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
7ebf7443a   wdenk   Initial revision
1466
1467
  
  PN62_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1468
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
7ebf7443a   wdenk   Initial revision
1469
1470
  
  Sandpoint8240_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1471
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
7ebf7443a   wdenk   Initial revision
1472
1473
  
  Sandpoint8245_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1474
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
7ebf7443a   wdenk   Initial revision
1475

466b74108   wdenk   * Rename SBC8560 ...
1476
  sbc8240_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1477
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
466b74108   wdenk   * Rename SBC8560 ...
1478

d1cbe85b0   wdenk   Merge from "stabl...
1479
  SL8245_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1480
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
d1cbe85b0   wdenk   Merge from "stabl...
1481

7ebf7443a   wdenk   Initial revision
1482
  utx8245_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1483
  	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
7ebf7443a   wdenk   Initial revision
1484
1485
1486
1487
  
  #########################################################################
  ## MPC8260 Systems
  #########################################################################
7ebf7443a   wdenk   Initial revision
1488

54387ac93   wdenk   * Patch by Yuli B...
1489
  atc_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1490
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
54387ac93   wdenk   * Patch by Yuli B...
1491

7ebf7443a   wdenk   Initial revision
1492
  cogent_mpc8260_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1493
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
7ebf7443a   wdenk   Initial revision
1494
1495
1496
  
  CPU86_config	\
  CPU86_ROMBOOT_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1497
1498
  	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
  	@cd $(obj)include ;				\
7ebf7443a   wdenk   Initial revision
1499
1500
  	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1501
  		$(XECHO) "... booting from 8-bit flash" ; \
7ebf7443a   wdenk   Initial revision
1502
1503
  	else \
  		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1504
  		$(XECHO) "... booting from 64-bit flash" ; \
7ebf7443a   wdenk   Initial revision
1505
1506
  	fi; \
  	echo "export CONFIG_BOOT_ROM" >> config.mk;
384cc6874   wdenk   Patches by Josef ...
1507
1508
  CPU87_config	\
  CPU87_ROMBOOT_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1509
1510
  	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
  	@cd $(obj)include ;				\
384cc6874   wdenk   Patches by Josef ...
1511
1512
  	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1513
  		$(XECHO) "... booting from 8-bit flash" ; \
384cc6874   wdenk   Patches by Josef ...
1514
1515
  	else \
  		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1516
  		$(XECHO) "... booting from 64-bit flash" ; \
384cc6874   wdenk   Patches by Josef ...
1517
1518
  	fi; \
  	echo "export CONFIG_BOOT_ROM" >> config.mk;
f901a83b7   Wolfgang Denk   Add support for e...
1519
1520
  ep8248_config	\
  ep8248E_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1521
  	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
f901a83b7   Wolfgang Denk   Add support for e...
1522

7ebf7443a   wdenk   Initial revision
1523
  ep8260_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1524
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
7ebf7443a   wdenk   Initial revision
1525

8d4ac7943   Wolfgang Denk   Add support for E...
1526
  ep82xxm_config:	unconfig
90b1b2d69   Grant Likely   Fix Makefile to u...
1527
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
8d4ac7943   Wolfgang Denk   Add support for E...
1528

7ebf7443a   wdenk   Initial revision
1529
  gw8260_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1530
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
7ebf7443a   wdenk   Initial revision
1531
1532
  
  hymod_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1533
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
7ebf7443a   wdenk   Initial revision
1534

9dd41a7b0   wdenk   * Fix debug code ...
1535
  IDS8247_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1536
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
9dd41a7b0   wdenk   * Fix debug code ...
1537

7ebf7443a   wdenk   Initial revision
1538
  IPHASE4539_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1539
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
7ebf7443a   wdenk   Initial revision
1540

c3c7f861a   wdenk   Patch by Yuli Bar...
1541
1542
  ISPAN_config		\
  ISPAN_REVB_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1543
  	@mkdir -p $(obj)include
c3c7f861a   wdenk   Patch by Yuli Bar...
1544
  	@if [ "$(findstring _REVB_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1545
  		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
c3c7f861a   wdenk   Patch by Yuli Bar...
1546
  	fi
f93286397   Marian Balakowicz   Add support for a...
1547
  	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
c3c7f861a   wdenk   Patch by Yuli Bar...
1548

ac9db066b   Heiko Schocher   Added support for...
1549
1550
  mgcoge_config	:	unconfig
  	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
04a85b3b3   wdenk   * Patches by Pant...
1551
  MPC8260ADS_config	\
901787d6e   wdenk   Patch by Jerry Va...
1552
  MPC8260ADS_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1553
  MPC8260ADS_33MHz_config	\
901787d6e   wdenk   Patch by Jerry Va...
1554
  MPC8260ADS_33MHz_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1555
  MPC8260ADS_40MHz_config	\
901787d6e   wdenk   Patch by Jerry Va...
1556
  MPC8260ADS_40MHz_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1557
  MPC8272ADS_config	\
901787d6e   wdenk   Patch by Jerry Va...
1558
  MPC8272ADS_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1559
  PQ2FADS_config		\
901787d6e   wdenk   Patch by Jerry Va...
1560
  PQ2FADS_lowboot_config		\
04a85b3b3   wdenk   * Patches by Pant...
1561
  PQ2FADS-VR_config	\
901787d6e   wdenk   Patch by Jerry Va...
1562
  PQ2FADS-VR_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1563
  PQ2FADS-ZU_config	\
901787d6e   wdenk   Patch by Jerry Va...
1564
  PQ2FADS-ZU_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1565
  PQ2FADS-ZU_66MHz_config	\
901787d6e   wdenk   Patch by Jerry Va...
1566
  PQ2FADS-ZU_66MHz_lowboot_config	\
04a85b3b3   wdenk   * Patches by Pant...
1567
  	:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1568
1569
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/mpc8260ads
04a85b3b3   wdenk   * Patches by Pant...
1570
  	$(if $(findstring PQ2FADS,$@), \
f93286397   Marian Balakowicz   Add support for a...
1571
1572
  	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
  	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
04a85b3b3   wdenk   * Patches by Pant...
1573
  	$(if $(findstring MHz,$@), \
f93286397   Marian Balakowicz   Add support for a...
1574
  	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
04a85b3b3   wdenk   * Patches by Pant...
1575
  	$(if $(findstring VR,$@), \
f93286397   Marian Balakowicz   Add support for a...
1576
  	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
901787d6e   wdenk   Patch by Jerry Va...
1577
  	@[ -z "$(findstring lowboot_,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
1578
  		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1579
  		  $(XECHO) "... with lowboot configuration" ; \
901787d6e   wdenk   Patch by Jerry Va...
1580
  		}
f93286397   Marian Balakowicz   Add support for a...
1581
  	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
7ebf7443a   wdenk   Initial revision
1582

db2f721ff   wdenk   * Patch by Rune T...
1583
  MPC8266ADS_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1584
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
db2f721ff   wdenk   * Patch by Rune T...
1585

efa329cb8   wdenk   * Add start-up de...
1586
  # PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
10f670178   wdenk   *** empty log mes...
1587
  PM825_config	\
efa329cb8   wdenk   * Add start-up de...
1588
1589
1590
1591
1592
1593
1594
  PM825_ROMBOOT_config	\
  PM825_BIGFLASH_config	\
  PM825_ROMBOOT_BIGFLASH_config	\
  PM826_config	\
  PM826_ROMBOOT_config	\
  PM826_BIGFLASH_config	\
  PM826_ROMBOOT_BIGFLASH_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1595
1596
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/pm826
efa329cb8   wdenk   * Add start-up de...
1597
  	@if [ "$(findstring PM825_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1598
  		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
efa329cb8   wdenk   * Add start-up de...
1599
  	else \
f93286397   Marian Balakowicz   Add support for a...
1600
  		>$(obj)include/config.h ; \
efa329cb8   wdenk   * Add start-up de...
1601
1602
  	fi
  	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1603
  		$(XECHO) "... booting from 8-bit flash" ; \
f93286397   Marian Balakowicz   Add support for a...
1604
1605
  		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
  		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
efa329cb8   wdenk   * Add start-up de...
1606
  		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1607
  			$(XECHO) "... with 32 MB Flash" ; \
f93286397   Marian Balakowicz   Add support for a...
1608
  			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
efa329cb8   wdenk   * Add start-up de...
1609
  		fi; \
10f670178   wdenk   *** empty log mes...
1610
  	else \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1611
  		$(XECHO) "... booting from 64-bit flash" ; \
efa329cb8   wdenk   * Add start-up de...
1612
  		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1613
  			$(XECHO) "... with 32 MB Flash" ; \
f93286397   Marian Balakowicz   Add support for a...
1614
1615
  			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
  			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
efa329cb8   wdenk   * Add start-up de...
1616
  		else \
f93286397   Marian Balakowicz   Add support for a...
1617
  			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
efa329cb8   wdenk   * Add start-up de...
1618
1619
  		fi; \
  	fi
f93286397   Marian Balakowicz   Add support for a...
1620
  	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
10f670178   wdenk   *** empty log mes...
1621

efa329cb8   wdenk   * Add start-up de...
1622
1623
1624
1625
  PM828_config	\
  PM828_PCI_config	\
  PM828_ROMBOOT_config	\
  PM828_ROMBOOT_PCI_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1626
1627
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/pm826
170762665   Marian Balakowicz   Correct PM828_PCI...
1628
  	@if [ "$(findstring _PCI_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1629
  		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1630
  		$(XECHO) "... with PCI enabled" ; \
7ebf7443a   wdenk   Initial revision
1631
  	else \
f93286397   Marian Balakowicz   Add support for a...
1632
  		>$(obj)include/config.h ; \
efa329cb8   wdenk   * Add start-up de...
1633
1634
  	fi
  	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1635
  		$(XECHO) "... booting from 8-bit flash" ; \
f93286397   Marian Balakowicz   Add support for a...
1636
1637
  		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
  		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
efa329cb8   wdenk   * Add start-up de...
1638
  	fi
f93286397   Marian Balakowicz   Add support for a...
1639
  	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
7ebf7443a   wdenk   Initial revision
1640
1641
  
  ppmc8260_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1642
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
7ebf7443a   wdenk   Initial revision
1643

8b0bfc680   wdenk   * Patch by Yuli B...
1644
1645
  Rattler8248_config	\
  Rattler_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1646
  	@mkdir -p $(obj)include
8b0bfc680   wdenk   * Patch by Yuli B...
1647
  	$(if $(findstring 8248,$@), \
f93286397   Marian Balakowicz   Add support for a...
1648
1649
  	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
  	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
8b0bfc680   wdenk   * Patch by Yuli B...
1650

7ebf7443a   wdenk   Initial revision
1651
  RPXsuper_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1652
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
7ebf7443a   wdenk   Initial revision
1653
1654
  
  rsdproto_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1655
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
7ebf7443a   wdenk   Initial revision
1656
1657
  
  sacsng_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1658
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
7ebf7443a   wdenk   Initial revision
1659
1660
  
  sbc8260_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
1661
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
7ebf7443a   wdenk   Initial revision
1662
1663
  
  SCM_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1664
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
7ebf7443a   wdenk   Initial revision
1665

27b207fd0   wdenk   * Implement new m...
1666
1667
1668
1669
1670
1671
1672
1673
1674
  TQM8255_AA_config \
  TQM8260_AA_config \
  TQM8260_AB_config \
  TQM8260_AC_config \
  TQM8260_AD_config \
  TQM8260_AE_config \
  TQM8260_AF_config \
  TQM8260_AG_config \
  TQM8260_AH_config \
1f62bc2d0   Wolfgang Denk   Add support for T...
1675
  TQM8260_AI_config \
27b207fd0   wdenk   * Implement new m...
1676
  TQM8265_AA_config:  unconfig
f93286397   Marian Balakowicz   Add support for a...
1677
  	@mkdir -p $(obj)include
27b207fd0   wdenk   * Implement new m...
1678
  	@case "$@" in \
1f62bc2d0   Wolfgang Denk   Add support for T...
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
  	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
  	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
  	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
  	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
  	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
  	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
  	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
  	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
  	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
  	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
  	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
27b207fd0   wdenk   * Implement new m...
1690
  	esac; \
f93286397   Marian Balakowicz   Add support for a...
1691
  	>$(obj)include/config.h ; \
27b207fd0   wdenk   * Implement new m...
1692
  	if [ "$${CTYPE}" != "MPC8260" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1693
  		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
27b207fd0   wdenk   * Implement new m...
1694
  	fi; \
f93286397   Marian Balakowicz   Add support for a...
1695
  	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
27b207fd0   wdenk   * Implement new m...
1696
  	echo "... with $${CFREQ}MHz system clock" ; \
1aaab9bfa   Wolfgang Denk   Make scripts and ...
1697
  	if [ "$${CACHE}" = "yes" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1698
  		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1699
  		$(XECHO) "... with L2 Cache support" ; \
7ebf7443a   wdenk   Initial revision
1700
  	else \
f93286397   Marian Balakowicz   Add support for a...
1701
  		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1702
  		$(XECHO) "... without L2 Cache support" ; \
27b207fd0   wdenk   * Implement new m...
1703
  	fi; \
1aaab9bfa   Wolfgang Denk   Make scripts and ...
1704
  	if [ "$${BMODE}" = "60x" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
1705
  		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1706
  		$(XECHO) "... with 60x Bus Mode" ; \
27b207fd0   wdenk   * Implement new m...
1707
  	else \
f93286397   Marian Balakowicz   Add support for a...
1708
  		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1709
  		$(XECHO) "... without 60x Bus Mode" ; \
7ebf7443a   wdenk   Initial revision
1710
  	fi
f93286397   Marian Balakowicz   Add support for a...
1711
  	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
7ebf7443a   wdenk   Initial revision
1712

fa2304456   Heiko Schocher   Added support for...
1713
1714
  TQM8272_config: unconfig
  	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
ba91e26a1   wdenk   Patch by Juergen ...
1715
1716
  VoVPN-GW_66MHz_config	\
  VoVPN-GW_100MHz_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
1717
1718
1719
  	@mkdir -p $(obj)include
  	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
  	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
ba91e26a1   wdenk   Patch by Juergen ...
1720

54387ac93   wdenk   * Patch by Yuli B...
1721
  ZPC1900_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
1722
  	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
7aa786147   wdenk   * Add support for...
1723

4e5ca3eb6   wdenk   * Patch by Bernha...
1724
1725
1726
  #########################################################################
  ## Coldfire
  #########################################################################
1552af70e   TsiChungLiew   ColdFire: Add MCF...
1727
1728
  M52277EVB_config:	unconfig
  	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
4a442d318   TsiChungLiew   ColdFire: Add M52...
1729
1730
1731
1732
1733
1734
1735
1736
  M5235EVB_config \
  M5235EVB_Flash16_config \
  M5235EVB_Flash32_config:	unconfig
  	@case "$@" in \
  	M5235EVB_config)		FLASH=16;; \
  	M5235EVB_Flash16_config)	FLASH=16;; \
  	M5235EVB_Flash32_config)	FLASH=32;; \
  	esac; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1737
  	>$(obj)include/config.h ; \
4a442d318   TsiChungLiew   ColdFire: Add M52...
1738
  	if [ "$${FLASH}" != "16" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1739
  		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
4a442d318   TsiChungLiew   ColdFire: Add M52...
1740
1741
1742
1743
1744
1745
1746
  		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
  		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
  	else \
  		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
  		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
  	fi
  	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
a605aacd8   TsiChungLiew   ColdFire: Add M52...
1747
1748
  M5249EVB_config :		unconfig
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
a1436a842   TsiChungLiew   ColdFire: Add M52...
1749
1750
  M5253EVBE_config :		unconfig
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
7481266e4   Wolfgang Denk   (7481266e4e4a1488...
1751
  cobra5272_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1752
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
7481266e4   Wolfgang Denk   (7481266e4e4a1488...
1753

4176c7996   Wolfgang Denk   Merge with /home/...
1754
  EB+MCF-EV123_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1755
1756
1757
1758
1759
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
  	@ >$(obj)include/config.h
  	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
  	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
4176c7996   Wolfgang Denk   Merge with /home/...
1760
1761
  
  EB+MCF-EV123_internal_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
1762
1763
1764
1765
1766
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
  	@ >$(obj)include/config.h
  	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
  	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
4176c7996   Wolfgang Denk   Merge with /home/...
1767

daa6e418b   Bartlomiej Sieka   Preliminary suppo...
1768
1769
  idmr_config :			unconfig
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
4176c7996   Wolfgang Denk   Merge with /home/...
1770
  M5271EVB_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1771
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
4176c7996   Wolfgang Denk   Merge with /home/...
1772

4e5ca3eb6   wdenk   * Patch by Bernha...
1773
  M5272C3_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1774
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
4e5ca3eb6   wdenk   * Patch by Bernha...
1775
1776
  
  M5282EVB_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1777
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
4e5ca3eb6   wdenk   * Patch by Bernha...
1778

c419d1d6d   stroese   some new esd boar...
1779
  TASREG_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1780
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
c419d1d6d   stroese   some new esd boar...
1781

3a108ed86   Zachary P. Landau   Add support for r...
1782
  r5200_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
1783
  	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
3a108ed86   Zachary P. Landau   Add support for r...
1784

8e585f02f   TsiChung Liew   Added M5329AFEE a...
1785
1786
1787
1788
1789
1790
  M5329AFEE_config \
  M5329BFEE_config :	unconfig
  	@case "$@" in \
  	M5329AFEE_config)	NAND=0;; \
  	M5329BFEE_config)	NAND=16;; \
  	esac; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1791
  	>$(obj)include/config.h ; \
8e585f02f   TsiChung Liew   Added M5329AFEE a...
1792
  	if [ "$${NAND}" != "0" ] ; then \
ab77bc547   TsiChungLiew   ColdFire: MCF5329...
1793
  		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
8e585f02f   TsiChung Liew   Added M5329AFEE a...
1794
1795
  	fi
  	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
aa5f1f9dc   TsiChungLiew   ColdFire: Add M53...
1796
1797
1798
1799
1800
1801
1802
1803
1804
  M5373EVB_config :	unconfig
  	@case "$@" in \
  	M5373EVB_config)	NAND=16;; \
  	esac; \
  	>include/config.h ; \
  	if [ "$${NAND}" != "0" ] ; then \
  		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
  	fi
  	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
8ae158cd8   TsiChungLiew   ColdFire: Add M54...
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
  M54455EVB_config \
  M54455EVB_atmel_config \
  M54455EVB_intel_config \
  M54455EVB_a33_config \
  M54455EVB_a66_config \
  M54455EVB_i33_config \
  M54455EVB_i66_config :	unconfig
  	@case "$@" in \
  	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
  	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
  	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
  	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
  	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
  	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
  	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
  	esac; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1821
  	>$(obj)include/config.h ; \
1aaab9bfa   Wolfgang Denk   Make scripts and ...
1822
  	if [ "$${FLASH}" = "INTEL" ] ; then \
4a442d318   TsiChungLiew   ColdFire: Add M52...
1823
  		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
e8ee8f3ad   TsiChungLiew   ColdFire 54455: F...
1824
1825
  		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
  		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1826
  		$(XECHO) "... with INTEL boot..." ; \
8ae158cd8   TsiChungLiew   ColdFire: Add M54...
1827
  	else \
4a442d318   TsiChungLiew   ColdFire: Add M52...
1828
  		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
e8ee8f3ad   TsiChungLiew   ColdFire 54455: F...
1829
1830
  		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
  		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1831
  		$(XECHO) "... with ATMEL boot..." ; \
8ae158cd8   TsiChungLiew   ColdFire: Add M54...
1832
  	fi; \
4a442d318   TsiChungLiew   ColdFire: Add M52...
1833
  	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1834
  	$(XECHO) "... with $${FREQ}Hz input clock"
8ae158cd8   TsiChungLiew   ColdFire: Add M54...
1835
  	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
57a127201   TsiChungLiew   ColdFire: MCF547x...
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
  M5475AFE_config \
  M5475BFE_config \
  M5475CFE_config \
  M5475DFE_config \
  M5475EFE_config \
  M5475FFE_config \
  M5475GFE_config :	unconfig
  	@case "$@" in \
  	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
  	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
  	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
  	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
  	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
  	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
  	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
  	esac; \
  	>include/config.h ; \
  	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
  	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
  	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
  	if [ "$${RAM1}" != "0" ] ; then \
  		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${CODE}" != "0" ] ; then \
  		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${VID}" == "1" ] ; then \
  		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${USB}" == "1" ] ; then \
  		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
  	fi
  	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
  
  M5485AFE_config \
  M5485BFE_config \
  M5485CFE_config \
  M5485DFE_config \
  M5485EFE_config \
  M5485FFE_config \
  M5485GFE_config \
  M5485HFE_config :	unconfig
  	@case "$@" in \
  	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
  	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
  	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
  	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
  	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
  	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
  	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
4d264eff4   TsiChungLiew   ColdFire: Fix mis...
1886
  	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
57a127201   TsiChungLiew   ColdFire: MCF547x...
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
  	esac; \
  	>include/config.h ; \
  	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
  	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
  	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
  	if [ "$${RAM1}" != "0" ] ; then \
  		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${CODE}" != "0" ] ; then \
  		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${VID}" == "1" ] ; then \
  		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
  	fi; \
  	if [ "$${USB}" == "1" ] ; then \
  		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
  	fi
  	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
7ebf7443a   wdenk   Initial revision
1905
  #########################################################################
f046ccd15   Eran Liberty   * Patch by Eran L...
1906
1907
  ## MPC83xx Systems
  #########################################################################
5c5d32429   Kim Phillips   mpc83xx: minor fi...
1908
1909
  MPC8313ERDB_33_config \
  MPC8313ERDB_66_config: unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
1910
1911
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
5c5d32429   Kim Phillips   mpc83xx: minor fi...
1912
  	if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1913
  		$(XECHO) -n "...33M ..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1914
  		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
5c5d32429   Kim Phillips   mpc83xx: minor fi...
1915
1916
  	fi ; \
  	if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1917
  		$(XECHO) -n "...66M..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1918
  		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
5c5d32429   Kim Phillips   mpc83xx: minor fi...
1919
  	fi ;
e58fe9578   Kim Phillips   mpc83xx: move fre...
1920
  	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
5c5d32429   Kim Phillips   mpc83xx: minor fi...
1921

8bd522ce4   Dave Liu   mpc83xx: Add the ...
1922
1923
  MPC8315ERDB_config: unconfig
  	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1c274c4e0   Kim Phillips   mpc83xx: add supp...
1924
1925
  MPC8323ERDB_config:	unconfig
  	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
4decd84e8   Kim Phillips   mpc83xx: sort Mak...
1926
1927
1928
  MPC832XEMDS_config \
  MPC832XEMDS_HOST_33_config \
  MPC832XEMDS_HOST_66_config \
281df457c   Tony Li   mpc83xx: Add conf...
1929
1930
  MPC832XEMDS_SLAVE_config \
  MPC832XEMDS_ATM_config:	unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
1931
1932
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1933
  	if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1934
  		$(XECHO) -n "... PCI HOST " ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1935
  		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1936
1937
  	fi ; \
  	if [ "$(findstring _SLAVE_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1938
  		$(XECHO) "...PCI SLAVE 66M"  ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1939
1940
  		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1941
1942
  	fi ; \
  	if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1943
  		$(XECHO) -n "...33M ..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1944
  		echo "#define PCI_33M" >>$(obj)include/config.h ; \
281df457c   Tony Li   mpc83xx: Add conf...
1945
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1946
1947
  	fi ; \
  	if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1948
  		$(XECHO) -n "...66M..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1949
  		echo "#define PCI_66M" >>$(obj)include/config.h ; \
281df457c   Tony Li   mpc83xx: Add conf...
1950
1951
1952
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  	fi ; \
  	if [ "$(findstring _ATM_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1953
  		$(XECHO) -n "...ATM..." ; \
281df457c   Tony Li   mpc83xx: Add conf...
1954
1955
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1956
  	fi ;
e58fe9578   Kim Phillips   mpc83xx: move fre...
1957
  	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
e6f2e9023   Marian Balakowicz   Added support for...
1958

991425fe0   Marian Balakowicz   Add initial suppo...
1959
  MPC8349EMDS_config:	unconfig
e58fe9578   Kim Phillips   mpc83xx: move fre...
1960
  	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
991425fe0   Marian Balakowicz   Add initial suppo...
1961

7a78f148d   Timur Tabi   mpc83xx: Add supp...
1962
1963
1964
1965
  MPC8349ITX_config \
  MPC8349ITX_LOWBOOT_config \
  MPC8349ITXGP_config:	unconfig
  	@mkdir -p $(obj)include
e21659e30   Sam Sparks   Update MPC8349ITX...
1966
  	@mkdir -p $(obj)board/freescale/mpc8349itx
7a78f148d   Timur Tabi   mpc83xx: Add supp...
1967
1968
  	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
  	@if [ "$(findstring GP,$@)" ] ; then \
e21659e30   Sam Sparks   Update MPC8349ITX...
1969
  		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
7a78f148d   Timur Tabi   mpc83xx: Add supp...
1970
1971
  	fi
  	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
e21659e30   Sam Sparks   Update MPC8349ITX...
1972
  		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
7a78f148d   Timur Tabi   mpc83xx: Add supp...
1973
  	fi
e58fe9578   Kim Phillips   mpc83xx: move fre...
1974
  	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2ad6b513b   Timur Tabi   mpc83xx: Add supp...
1975

5f8204394   Dave Liu   mpc83xx: Add MPC8...
1976
1977
1978
  MPC8360EMDS_config \
  MPC8360EMDS_HOST_33_config \
  MPC8360EMDS_HOST_66_config \
281df457c   Tony Li   mpc83xx: Add conf...
1979
1980
  MPC8360EMDS_SLAVE_config \
  MPC8360EMDS_ATM_config: unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
1981
1982
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1983
  	if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1984
  		$(XECHO) -n "... PCI HOST " ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1985
  		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1986
1987
  	fi ; \
  	if [ "$(findstring _SLAVE_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1988
  		$(XECHO) "...PCI SLAVE 66M"  ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1989
1990
  		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1991
1992
  	fi ; \
  	if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1993
  		$(XECHO) -n "...33M ..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1994
  		echo "#define PCI_33M" >>$(obj)include/config.h ; \
281df457c   Tony Li   mpc83xx: Add conf...
1995
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
1996
1997
  	fi ; \
  	if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
1998
  		$(XECHO) -n "...66M..." ; \
cdd917a43   Wolfgang Denk   Fix build errors ...
1999
  		echo "#define PCI_66M" >>$(obj)include/config.h ; \
281df457c   Tony Li   mpc83xx: Add conf...
2000
2001
2002
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  	fi ; \
  	if [ "$(findstring _ATM_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2003
  		$(XECHO) -n "...ATM..." ; \
281df457c   Tony Li   mpc83xx: Add conf...
2004
2005
  		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
5f8204394   Dave Liu   mpc83xx: Add MPC8...
2006
  	fi ;
e58fe9578   Kim Phillips   mpc83xx: move fre...
2007
  	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
5f8204394   Dave Liu   mpc83xx: Add MPC8...
2008

fab6f556b   Anton Vorontsov   mpc83xx: add supp...
2009
2010
2011
2012
2013
2014
  MPC8360ERDK_33_config \
  MPC8360ERDK_66_config \
  MPC8360ERDK_config:
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
  	if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2015
  		$(XECHO) -n "... CLKIN 33MHz " ; \
fab6f556b   Anton Vorontsov   mpc83xx: add supp...
2016
2017
2018
  		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
  	fi ;
  	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
19580e660   Dave Liu   mpc83xx: Add the ...
2019
2020
2021
2022
2023
  MPC837XEMDS_config \
  MPC837XEMDS_HOST_config:	unconfig
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
  	if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2024
  		$(XECHO) -n "... PCI HOST " ; \
19580e660   Dave Liu   mpc83xx: Add the ...
2025
2026
2027
  		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  	fi ;
  	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
5e918a98c   Kim Phillips   Add support for t...
2028
2029
  MPC837XERDB_config:	unconfig
  	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
4decd84e8   Kim Phillips   mpc83xx: sort Mak...
2030
2031
2032
2033
2034
  sbc8349_config:		unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
  
  TQM834x_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2ad6b513b   Timur Tabi   mpc83xx: Add supp...
2035

f046ccd15   Eran Liberty   * Patch by Eran L...
2036
  #########################################################################
42d1f0394   wdenk   * Patches by Xian...
2037
2038
  ## MPC85xx Systems
  #########################################################################
7bd6104b7   robert lazarski   mpc85xx: Add supp...
2039
2040
  ATUM8548_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
0ac6f8b74   wdenk   Patch by Jon Loel...
2041
  MPC8540ADS_config:	unconfig
c2d943ffb   Kumar Gala   Move the MPC8540 ...
2042
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
42d1f0394   wdenk   * Patches by Xian...
2043

b0e329492   Lunsheng Wang   * Patch by Ron Al...
2044
2045
2046
2047
2048
  MPC8540EVAL_config \
  MPC8540EVAL_33_config \
  MPC8540EVAL_66_config \
  MPC8540EVAL_33_slave_config \
  MPC8540EVAL_66_slave_config:      unconfig
f93286397   Marian Balakowicz   Add support for a...
2049
2050
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2051
  	if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2052
  		$(XECHO) "... 33 MHz PCI" ; \
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2053
  	else \
f93286397   Marian Balakowicz   Add support for a...
2054
  		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2055
  		$(XECHO) "... 66 MHz PCI" ; \
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2056
2057
  	fi ; \
  	if [ "$(findstring _slave_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
2058
  		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2059
  		$(XECHO) " slave" ; \
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2060
  	else \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2061
  		$(XECHO) " host" ; \
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2062
  	fi
f93286397   Marian Balakowicz   Add support for a...
2063
  	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
b0e329492   Lunsheng Wang   * Patch by Ron Al...
2064

0ac6f8b74   wdenk   Patch by Jon Loel...
2065
  MPC8560ADS_config:	unconfig
870ceac5b   Kumar Gala   Move the MPC8560 ...
2066
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
42d1f0394   wdenk   * Patches by Xian...
2067

7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2068
  MPC8541CDS_legacy_config \
03f5c5502   wdenk   Patches by Jon Lo...
2069
  MPC8541CDS_config:	unconfig
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2070
2071
2072
2073
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
  	if [ "$(findstring _legacy_,$@)" ] ; then \
  		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2074
  		$(XECHO) "... legacy" ; \
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2075
  	fi
415a613ba   Kumar Gala   Move the MPC8541/...
2076
  	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
03f5c5502   wdenk   Patches by Jon Lo...
2077

81f481ca7   Andy Fleming   Enable 8544 support
2078
2079
  MPC8544DS_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2080
  MPC8548CDS_legacy_config \
d9b94f28a   Jon Loeliger   * Patch by Jon Lo...
2081
  MPC8548CDS_config:	unconfig
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2082
2083
2084
2085
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
  	if [ "$(findstring _legacy_,$@)" ] ; then \
  		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2086
  		$(XECHO) "... legacy" ; \
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2087
  	fi
415a613ba   Kumar Gala   Move the MPC8541/...
2088
  	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
d9b94f28a   Jon Loeliger   * Patch by Jon Lo...
2089

7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2090
  MPC8555CDS_legacy_config \
03f5c5502   wdenk   Patches by Jon Lo...
2091
  MPC8555CDS_config:	unconfig
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2092
2093
2094
2095
  	@mkdir -p $(obj)include
  	@echo "" >$(obj)include/config.h ; \
  	if [ "$(findstring _legacy_,$@)" ] ; then \
  		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2096
  		$(XECHO) "... legacy" ; \
7f3f2bd2d   Randy Vinson   85xxCDS: Add make...
2097
  	fi
415a613ba   Kumar Gala   Move the MPC8541/...
2098
  	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
7abf0c588   wdenk   * Patch by Dan Ma...
2099

674310598   Andy Fleming   Add support for t...
2100
  MPC8568MDS_config:	unconfig
acbca876f   Kumar Gala   Move the MPC8568 ...
2101
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
674310598   Andy Fleming   Add support for t...
2102

384cc6874   wdenk   Patches by Josef ...
2103
  PM854_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2104
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
384cc6874   wdenk   Patches by Josef ...
2105

b20d00328   Wolfgang Denk   Add support for M...
2106
  PM856_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2107
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
b20d00328   Wolfgang Denk   Add support for M...
2108

c15f3120e   wdenk   * Patch by Michae...
2109
2110
2111
  sbc8540_config \
  sbc8540_33_config \
  sbc8540_66_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2112
  	@mkdir -p $(obj)include
c15f3120e   wdenk   * Patch by Michae...
2113
  	@if [ "$(findstring _66_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
2114
  		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2115
  		$(XECHO) "... 66 MHz PCI" ; \
c15f3120e   wdenk   * Patch by Michae...
2116
  	else \
f93286397   Marian Balakowicz   Add support for a...
2117
  		>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2118
  		$(XECHO) "... 33 MHz PCI" ; \
c15f3120e   wdenk   * Patch by Michae...
2119
  	fi
f93286397   Marian Balakowicz   Add support for a...
2120
  	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
c15f3120e   wdenk   * Patch by Michae...
2121

11c45ebd4   Joe Hamman   mpc85xx: Add supp...
2122
2123
  sbc8548_config:		unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
466b74108   wdenk   * Rename SBC8560 ...
2124
2125
2126
  sbc8560_config \
  sbc8560_33_config \
  sbc8560_66_config:      unconfig
f93286397   Marian Balakowicz   Add support for a...
2127
  	@mkdir -p $(obj)include
8b07a1103   wdenk   * Patch by Fred K...
2128
  	@if [ "$(findstring _66_,$@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
2129
  		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2130
  		$(XECHO) "... 66 MHz PCI" ; \
8b07a1103   wdenk   * Patch by Fred K...
2131
  	else \
f93286397   Marian Balakowicz   Add support for a...
2132
  		>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2133
  		$(XECHO) "... 33 MHz PCI" ; \
8b07a1103   wdenk   * Patch by Fred K...
2134
  	fi
f93286397   Marian Balakowicz   Add support for a...
2135
  	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
8b07a1103   wdenk   * Patch by Fred K...
2136

03f5c5502   wdenk   Patches by Jon Lo...
2137
  stxgp3_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
2138
  	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
03f5c5502   wdenk   Patches by Jon Lo...
2139

ee1529838   Wolfgang Denk   Add support for S...
2140
2141
2142
2143
2144
  stxssa_config		\
  stxssa_4M_config:	unconfig
  	@mkdir -p $(obj)include
  	@if [ "$(findstring _4M_,$@)" ] ; then \
  		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2145
  		$(XECHO) "... with 4 MiB flash memory" ; \
ee1529838   Wolfgang Denk   Add support for S...
2146
2147
2148
2149
  	else \
  		>$(obj)include/config.h ; \
  	fi
  	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
35171dc04   Dan Malek   Add support for S...
2150

d96f41e01   Stefan Roese   Add support for T...
2151
2152
2153
2154
  TQM8540_config		\
  TQM8541_config		\
  TQM8555_config		\
  TQM8560_config:		unconfig
f93286397   Marian Balakowicz   Add support for a...
2155
  	@mkdir -p $(obj)include
a889bd27e   Wolfgang Denk   Fix DPRAM offset/...
2156
  	@CTYPE=$(subst TQM,,$(@:_config=)); \
f93286397   Marian Balakowicz   Add support for a...
2157
  	>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2158
  	$(XECHO) "... TQM"$${CTYPE}; \
f93286397   Marian Balakowicz   Add support for a...
2159
2160
2161
2162
  	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
  	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
  	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
  	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
8a783a658   Grant Likely   Bugfix: remove em...
2163
  	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
f93286397   Marian Balakowicz   Add support for a...
2164
  	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
f5c5ef4a1   wdenk   Add support for T...
2165

42d1f0394   wdenk   * Patches by Xian...
2166
  #########################################################################
debb7354d   Jon Loeliger   Initial support f...
2167
2168
  ## MPC86xx Systems
  #########################################################################
3c89d7540   Jon Loeliger   Initial mpc8610hp...
2169
2170
  MPC8610HPCD_config:	unconfig
  	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
debb7354d   Jon Loeliger   Initial support f...
2171
  MPC8641HPCN_config:    unconfig
4ce917742   Jon Loeliger   Move the MPC8641H...
2172
  	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
debb7354d   Jon Loeliger   Initial support f...
2173

c646bba64   Joe Hamman   Add support for S...
2174
2175
  sbc8641d_config:	unconfig
  	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
debb7354d   Jon Loeliger   Initial support f...
2176
2177
  
  #########################################################################
7ebf7443a   wdenk   Initial revision
2178
2179
  ## 74xx/7xx Systems
  #########################################################################
c7de829c7   wdenk   * Patch by Thomas...
2180
  AmigaOneG3SE_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2181
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
c7de829c7   wdenk   * Patch by Thomas...
2182

15647dc7f   wdenk   * Patches by Thom...
2183
  BAB7xx_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2184
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
15647dc7f   wdenk   * Patches by Thom...
2185

05bf4919c   Wolfgang Denk   Minor coding styl...
2186
  CPCI750_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2187
  	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
c419d1d6d   stroese   some new esd boar...
2188

05bf4919c   Wolfgang Denk   Minor coding styl...
2189
  DB64360_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2190
  	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
3a473b2a6   wdenk   * Patch by Ronen ...
2191

05bf4919c   Wolfgang Denk   Minor coding styl...
2192
  DB64460_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2193
  	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
3a473b2a6   wdenk   * Patch by Ronen ...
2194

15647dc7f   wdenk   * Patches by Thom...
2195
  ELPPC_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2196
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
15647dc7f   wdenk   * Patches by Thom...
2197

7ebf7443a   wdenk   Initial revision
2198
2199
  EVB64260_config	\
  EVB64260_750CX_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2200
  	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
7ebf7443a   wdenk   Initial revision
2201

4c52783b3   roy zang   General code modi...
2202
  mpc7448hpc2_config:  unconfig
ee311214e   roy zang   Clean up the code...
2203
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
4c52783b3   roy zang   General code modi...
2204

15647dc7f   wdenk   * Patches by Thom...
2205
  P3G4_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2206
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
7ebf7443a   wdenk   Initial revision
2207

1eac2a714   Stefan Roese   [PATCH] Add suppo...
2208
2209
2210
2211
2212
2213
2214
2215
2216
  p3m750_config	\
  p3m7448_config:		unconfig
  	@mkdir -p $(obj)include
  	@if [ "$(findstring 750_,$@)" ] ; then \
  		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
  	else \
  		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
  	fi
  	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
7ebf7443a   wdenk   Initial revision
2217
2218
  PCIPPC2_config \
  PCIPPC6_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2219
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
7ebf7443a   wdenk   Initial revision
2220

15647dc7f   wdenk   * Patches by Thom...
2221
  ZUMA_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2222
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
12f34241c   wdenk   * Add support for...
2223

f5e0d0397   Heiko Schocher   Add support for w...
2224
  ppmc7xx_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2225
  	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
b87dfd285   Wolfgang Denk   Add support for T...
2226

7ebf7443a   wdenk   Initial revision
2227
2228
2229
2230
2231
2232
  #========================================================================
  # ARM
  #========================================================================
  #########################################################################
  ## StrongARM Systems
  #########################################################################
ea66bc880   wdenk   * Patch by George...
2233
  assabet_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2234
  	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
ea66bc880   wdenk   * Patch by George...
2235

7ebf7443a   wdenk   Initial revision
2236
  dnp1110_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2237
  	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
7ebf7443a   wdenk   Initial revision
2238

855a496fe   wdenk   * Patches by Trav...
2239
  gcplus_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2240
  	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
855a496fe   wdenk   * Patches by Trav...
2241
2242
  
  lart_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2243
  	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
855a496fe   wdenk   * Patches by Trav...
2244

7ebf7443a   wdenk   Initial revision
2245
  shannon_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2246
  	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
7ebf7443a   wdenk   Initial revision
2247
2248
  
  #########################################################################
2e5983d2e   wdenk   Patches by Kshiti...
2249
  ## ARM92xT Systems
7ebf7443a   wdenk   Initial revision
2250
  #########################################################################
b0639ca33   wdenk   Support new confi...
2251
  xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
43d9616cf   wdenk   * Patch by Robert...
2252

3ff02c27d   wdenk   * Patch by Imre D...
2253
  xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
63e73c9a8   wdenk   * Patches by Rein...
2254

a56bd9228   wdenk   * Patch by Dave P...
2255
  xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
20b197c6f   Stelian Pop   AT91CAP9 support ...
2256
  at91cap9adk_config	:	unconfig
64e8a06af   Stelian Pop   AT91CAP9 support ...
2257
  	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91cap9
20b197c6f   Stelian Pop   AT91CAP9 support ...
2258

a85f9f21a   wdenk   Patch by Steven S...
2259
  at91rm9200dk_config	:	unconfig
652301070   Haavard Skinnemoen   Move AT91RM9200DK...
2260
  	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
a85f9f21a   wdenk   Patch by Steven S...
2261
2262
  
  cmc_pu2_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2263
  	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
a85f9f21a   wdenk   Patch by Steven S...
2264

645da5109   Wolfgang Denk   Add support for C...
2265
  csb637_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2266
  	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
645da5109   Wolfgang Denk   Add support for C...
2267

0e4018d24   Wolfgang Denk   Add support for M...
2268
  mp2usb_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2269
  	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
0e4018d24   Wolfgang Denk   Add support for M...
2270

ea8d989f4   Timo Tuunainen   Support for Artil...
2271
2272
  m501sk_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
3d3befa75   wdenk   * Patch by Philip...
2273

87cb6862b   Wolfgang Denk   Update make targe...
2274
2275
2276
2277
2278
2279
2280
2281
  ########################################################################
  ## ARM Integrator boards - see doc/README-integrator for more info.
  integratorap_config	\
  ap_config		\
  ap966_config		\
  ap922_config		\
  ap922_XA10_config	\
  ap7_config		\
dd520bf31   Wolfgang Denk   Code cleanup.
2282
  ap720t_config		\
87cb6862b   Wolfgang Denk   Update make targe...
2283
2284
2285
  ap920t_config		\
  ap926ejs_config		\
  ap946es_config: unconfig
96782c63d   Wolfgang Denk   Cleanup warnings ...
2286
  	@board/integratorap/split_by_variant.sh $@
87cb6862b   Wolfgang Denk   Update make targe...
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
  
  integratorcp_config	\
  cp_config		\
  cp920t_config		\
  cp926ejs_config		\
  cp946es_config		\
  cp1136_config		\
  cp966_config		\
  cp922_config		\
  cp922_XA10_config	\
  cp1026_config: unconfig
96782c63d   Wolfgang Denk   Cleanup warnings ...
2298
  	@board/integratorcp/split_by_variant.sh $@
25d6712a8   wdenk   * Clean up CMC PU...
2299

99b0d2851   Wolfgang Denk   Added support for...
2300
  kb9202_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2301
  	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
99b0d2851   Wolfgang Denk   Added support for...
2302

f832d8a14   wdenk   * Patch by Paul R...
2303
2304
  lpd7a400_config \
  lpd7a404_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2305
  	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
3d3befa75   wdenk   * Patch by Philip...
2306

281e00a3b   wdenk   * Code cleanup
2307
  mx1ads_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2308
  	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
281e00a3b   wdenk   * Code cleanup
2309
2310
  
  mx1fs2_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2311
  	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
281e00a3b   wdenk   * Code cleanup
2312

ac7eb8a31   Wolfgang Denk   Update of new NAN...
2313
  netstar_config:		unconfig
f4e7cbfcb   Peter Pearse   Update board NetStar
2314
  	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
ac7eb8a31   Wolfgang Denk   Update of new NAN...
2315

2e5983d2e   wdenk   Patches by Kshiti...
2316
  omap1510inn_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2317
  	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2e5983d2e   wdenk   Patches by Kshiti...
2318

1eaeb58e3   wdenk   * Patch by Rishi ...
2319
  omap5912osk_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2320
  	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1eaeb58e3   wdenk   * Patch by Rishi ...
2321

c74b2108e   Sergey Kubushyn   [ARM] TI DaVinci ...
2322
2323
2324
2325
2326
2327
2328
2329
  davinci_dvevm_config :	unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
  
  davinci_schmoogie_config :	unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
  
  davinci_sonata_config :	unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
63e73c9a8   wdenk   * Patches by Rein...
2330
2331
2332
  omap1610inn_config \
  omap1610inn_cs0boot_config \
  omap1610inn_cs3boot_config \
3ff02c27d   wdenk   * Patch by Imre D...
2333
  omap1610inn_cs_autoboot_config \
63e73c9a8   wdenk   * Patches by Rein...
2334
2335
  omap1610h2_config \
  omap1610h2_cs0boot_config \
3ff02c27d   wdenk   * Patch by Imre D...
2336
2337
  omap1610h2_cs3boot_config \
  omap1610h2_cs_autoboot_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2338
  	@mkdir -p $(obj)include
63e73c9a8   wdenk   * Patches by Rein...
2339
  	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
cdd917a43   Wolfgang Denk   Fix build errors ...
2340
  		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2341
  		$(XECHO) "... configured for CS0 boot"; \
3ff02c27d   wdenk   * Patch by Imre D...
2342
  	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
cdd917a43   Wolfgang Denk   Fix build errors ...
2343
  		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2344
  		$(XECHO) "... configured for CS_AUTO boot"; \
63e73c9a8   wdenk   * Patches by Rein...
2345
  	else \
cdd917a43   Wolfgang Denk   Fix build errors ...
2346
  		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2347
  		$(XECHO) "... configured for CS3 boot"; \
63e73c9a8   wdenk   * Patches by Rein...
2348
  	fi;
f93286397   Marian Balakowicz   Add support for a...
2349
  	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
6f21347d4   wdenk   * Patch by George...
2350

a56bd9228   wdenk   * Patch by Dave P...
2351
2352
2353
  omap730p2_config \
  omap730p2_cs0boot_config \
  omap730p2_cs3boot_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2354
  	@mkdir -p $(obj)include
a56bd9228   wdenk   * Patch by Dave P...
2355
  	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
f93286397   Marian Balakowicz   Add support for a...
2356
  		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2357
  		$(XECHO) "... configured for CS0 boot"; \
a56bd9228   wdenk   * Patch by Dave P...
2358
  	else \
f93286397   Marian Balakowicz   Add support for a...
2359
  		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2360
  		$(XECHO) "... configured for CS3 boot"; \
a56bd9228   wdenk   * Patch by Dave P...
2361
  	fi;
f93286397   Marian Balakowicz   Add support for a...
2362
  	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
a56bd9228   wdenk   * Patch by Dave P...
2363

32cb2c70c   Wolfgang Denk   Add support for f...
2364
  sbc2410x_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2365
  	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
32cb2c70c   Wolfgang Denk   Add support for f...
2366

281e00a3b   wdenk   * Code cleanup
2367
  scb9328_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2368
  	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
281e00a3b   wdenk   * Code cleanup
2369

7ebf7443a   wdenk   Initial revision
2370
  smdk2400_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2371
  	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
7ebf7443a   wdenk   Initial revision
2372
2373
  
  smdk2410_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2374
  	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
7ebf7443a   wdenk   Initial revision
2375

2d24a3a78   wdenk   * Patch by Yuli B...
2376
  SX1_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
2377
  	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
2d24a3a78   wdenk   * Patch by Yuli B...
2378

b2001f273   wdenk   * Fix IceCube CLK...
2379
  # TRAB default configuration:	8 MB Flash, 32 MB RAM
43d9616cf   wdenk   * Patch by Robert...
2380
  trab_config \
b0639ca33   wdenk   Support new confi...
2381
2382
  trab_bigram_config \
  trab_bigflash_config \
f54ebdfa2   wdenk   Add auto-update c...
2383
  trab_old_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2384
2385
2386
  	@mkdir -p $(obj)include
  	@mkdir -p $(obj)board/trab
  	@ >$(obj)include/config.h
b0639ca33   wdenk   Support new confi...
2387
  	@[ -z "$(findstring _bigram,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2388
2389
  		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
  		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2390
  		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
b0639ca33   wdenk   Support new confi...
2391
2392
  		}
  	@[ -z "$(findstring _bigflash,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2393
2394
  		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
  		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2395
  		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
f93286397   Marian Balakowicz   Add support for a...
2396
  		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
b0639ca33   wdenk   Support new confi...
2397
  		}
f54ebdfa2   wdenk   Add auto-update c...
2398
  	@[ -z "$(findstring _old,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2399
2400
  		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
  		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2401
  		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
f93286397   Marian Balakowicz   Add support for a...
2402
  		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
43d9616cf   wdenk   * Patch by Robert...
2403
  		}
f93286397   Marian Balakowicz   Add support for a...
2404
  	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
7ebf7443a   wdenk   Initial revision
2405

1cb8e980c   wdenk   * Patches by Davi...
2406
  VCMA9_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2407
  	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1cb8e980c   wdenk   * Patches by Davi...
2408

87cb6862b   Wolfgang Denk   Update make targe...
2409
2410
2411
2412
2413
2414
  #========================================================================
  # ARM supplied Versatile development boards
  #========================================================================
  versatile_config	\
  versatileab_config	\
  versatilepb_config :	unconfig
96782c63d   Wolfgang Denk   Cleanup warnings ...
2415
  	@board/versatile/split_by_variant.sh $@
074cff0d2   wdenk   * Patch by Andrea...
2416

3c2b3d454   wdenk   * Patch by Ladisl...
2417
  voiceblue_config:	unconfig
4fedfddf9   Ladislav Michl   ARM: Board voiceb...
2418
  	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
3c2b3d454   wdenk   * Patch by Ladisl...
2419

16b013e75   wdenk   Patch by Greg Ung...
2420
  cm4008_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2421
  	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
16b013e75   wdenk   Patch by Greg Ung...
2422
2423
  
  cm41xx_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2424
  	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
16b013e75   wdenk   Patch by Greg Ung...
2425

dd520bf31   Wolfgang Denk   Code cleanup.
2426
  gth2_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2427
2428
2429
2430
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a gth2 mips mips gth2
0c32d96dd   Wolfgang Denk   Add support for g...
2431

074cff0d2   wdenk   * Patch by Andrea...
2432
2433
2434
2435
2436
  #########################################################################
  ## S3C44B0 Systems
  #########################################################################
  
  B2_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2437
  	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
074cff0d2   wdenk   * Patch by Andrea...
2438

7ebf7443a   wdenk   Initial revision
2439
  #########################################################################
2d24a3a78   wdenk   * Patch by Yuli B...
2440
2441
  ## ARM720T Systems
  #########################################################################
7ebf7443a   wdenk   Initial revision
2442

c570b2fdf   Wolfgang Denk   Add board support...
2443
  armadillo_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2444
  	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
c570b2fdf   Wolfgang Denk   Add board support...
2445

7ebf7443a   wdenk   Initial revision
2446
  ep7312_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2447
  	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
7ebf7443a   wdenk   Initial revision
2448

2d24a3a78   wdenk   * Patch by Yuli B...
2449
  impa7_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2450
  	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
2d24a3a78   wdenk   * Patch by Yuli B...
2451

2d1a537d8   wdenk   * Patch by Thomas...
2452
  modnet50_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2453
  	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2d1a537d8   wdenk   * Patch by Thomas...
2454

39539887e   wdenk   * Code cleanup (A...
2455
  evb4510_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2456
  	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
39539887e   wdenk   * Code cleanup (A...
2457

6bd2447ee   Gary Jennejohn   Add port for the ...
2458
  lpc2292sodimm_config:	unconfig
b0d8f5bf0   Peter Pearse   New board SMN42 b...
2459
2460
2461
2462
  	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
  
  SMN42_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
6bd2447ee   Gary Jennejohn   Add port for the ...
2463

7ebf7443a   wdenk   Initial revision
2464
  #########################################################################
43d9616cf   wdenk   * Patch by Robert...
2465
  ## XScale Systems
7ebf7443a   wdenk   Initial revision
2466
  #########################################################################
799891ef7   Michael Schwingen   Add AcTux board s...
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
  actux1_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm ixp actux1
  
  actux2_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm ixp actux2
  
  actux3_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm ixp actux3
  
  actux4_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm ixp actux4
20787e23b   wdenk   * Patches by Robe...
2478
  adsvix_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2479
  	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
20787e23b   wdenk   * Patches by Robe...
2480

fabd46acf   wdenk   * Patch by Prakas...
2481
  cerf250_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2482
  	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
fabd46acf   wdenk   * Patch by Prakas...
2483

7ebf7443a   wdenk   Initial revision
2484
  cradle_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2485
  	@$(MKCONFIG) $(@:_config=) arm pxa cradle
7ebf7443a   wdenk   Initial revision
2486
2487
  
  csb226_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2488
  	@$(MKCONFIG) $(@:_config=) arm pxa csb226
7ebf7443a   wdenk   Initial revision
2489

0be248fa9   Wolfgang Denk   Cleanup (get rid ...
2490
  delta_config :
f93286397   Marian Balakowicz   Add support for a...
2491
  	@$(MKCONFIG) $(@:_config=) arm pxa delta
0be248fa9   Wolfgang Denk   Cleanup (get rid ...
2492

43d9616cf   wdenk   * Patch by Robert...
2493
  innokom_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2494
  	@$(MKCONFIG) $(@:_config=) arm pxa innokom
43d9616cf   wdenk   * Patch by Robert...
2495

2d5b561e2   wdenk   * Make sure HUSH ...
2496
  ixdp425_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2497
  	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2d5b561e2   wdenk   * Make sure HUSH ...
2498

ba94a1bba   Wolfgang Denk   * Update Intel IX...
2499
  ixdpg425_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2500
  	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
ba94a1bba   Wolfgang Denk   * Update Intel IX...
2501

43d9616cf   wdenk   * Patch by Robert...
2502
  lubbock_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2503
  	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
43d9616cf   wdenk   * Patch by Robert...
2504

5720df78a   Heiko Schocher   add forgotten cha...
2505
  pleb2_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2506
  	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
5720df78a   Heiko Schocher   add forgotten cha...
2507

52f52c149   wdenk   Patches by Robert...
2508
  logodl_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2509
  	@$(MKCONFIG) $(@:_config=) arm pxa logodl
52f52c149   wdenk   Patches by Robert...
2510

9d8d5a5bf   Stefan Roese   [PATCH] Add suppo...
2511
2512
  pdnb3_config \
  scpu_config:    unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
2513
  	@mkdir -p $(obj)include
9d8d5a5bf   Stefan Roese   [PATCH] Add suppo...
2514
  	@if [ "$(findstring scpu_,$@)" ] ; then \
cdd917a43   Wolfgang Denk   Fix build errors ...
2515
  		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2516
  		$(XECHO) "... on SCPU board variant" ; \
9d8d5a5bf   Stefan Roese   [PATCH] Add suppo...
2517
  	else \
cdd917a43   Wolfgang Denk   Fix build errors ...
2518
  		>$(obj)include/config.h ; \
9d8d5a5bf   Stefan Roese   [PATCH] Add suppo...
2519
2520
  	fi
  	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
ba94a1bba   Wolfgang Denk   * Update Intel IX...
2521

f57f70aab   Wolfgang Denk   Support passing o...
2522
  pxa255_idp_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2523
  	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
f57f70aab   Wolfgang Denk   Support passing o...
2524

5e5803e11   stefano babic   PXA270: Added sup...
2525
2526
  trizepsiv_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
3e38691e8   wdenk   * Patch by Arun D...
2527
  wepep250_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2528
  	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
3e38691e8   wdenk   * Patch by Arun D...
2529

4ec3a7f0f   wdenk   Patch by Vincent ...
2530
  xaeniax_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2531
  	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
4ec3a7f0f   wdenk   Patch by Vincent ...
2532

efa329cb8   wdenk   * Add start-up de...
2533
  xm250_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2534
  	@$(MKCONFIG) $(@:_config=) arm pxa xm250
efa329cb8   wdenk   * Add start-up de...
2535

ca0e77489   wdenk   Patch by Kurt Str...
2536
  xsengine_config :	unconfig
f93286397   Marian Balakowicz   Add support for a...
2537
  	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
ca0e77489   wdenk   Patch by Kurt Str...
2538

e0269579a   Markus Klotzbücher   This is the first...
2539
  zylonite_config :
f93286397   Marian Balakowicz   Add support for a...
2540
  	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
e0269579a   Markus Klotzbücher   This is the first...
2541

8ed960461   wdenk   * Patches by Rich...
2542
2543
2544
  #########################################################################
  ## ARM1136 Systems
  #########################################################################
5ca9881aa   Peter Pearse   Add apollon board...
2545
  omap2420h4_config	: unconfig
f93286397   Marian Balakowicz   Add support for a...
2546
  	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
8ed960461   wdenk   * Patches by Rich...
2547

5ca9881aa   Peter Pearse   Add apollon board...
2548
  apollon_config		: unconfig
751b9b518   Kyungmin Park   OneNAND Initial P...
2549
  	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
5ca9881aa   Peter Pearse   Add apollon board...
2550
  	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
751b9b518   Kyungmin Park   OneNAND Initial P...
2551
  	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
5ca9881aa   Peter Pearse   Add apollon board...
2552

2262cfeef   wdenk   * Patch by Daniel...
2553
2554
2555
2556
  #========================================================================
  # i386
  #========================================================================
  #########################################################################
1cb8e980c   wdenk   * Patches by Davi...
2557
  ## AMD SC520 CDP
2262cfeef   wdenk   * Patch by Daniel...
2558
2559
  #########################################################################
  sc520_cdp_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2560
  	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2262cfeef   wdenk   * Patch by Daniel...
2561

7a8e9bed1   wdenk   * Patch by Marc S...
2562
  sc520_spunk_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2563
  	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
7a8e9bed1   wdenk   * Patch by Marc S...
2564
2565
  
  sc520_spunk_rel_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2566
  	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
7a8e9bed1   wdenk   * Patch by Marc S...
2567

43d9616cf   wdenk   * Patch by Robert...
2568
2569
2570
  #========================================================================
  # MIPS
  #========================================================================
7ebf7443a   wdenk   Initial revision
2571
  #########################################################################
43d9616cf   wdenk   * Patch by Robert...
2572
2573
  ## MIPS32 4Kc
  #########################################################################
e0ac62d79   wdenk   * Make Ethernet a...
2574
2575
2576
2577
2578
2579
  xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  
  incaip_100MHz_config	\
  incaip_133MHz_config	\
  incaip_150MHz_config	\
  incaip_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2580
2581
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
e0ac62d79   wdenk   * Make Ethernet a...
2582
  	@[ -z "$(findstring _100MHz,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2583
  		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2584
  		  $(XECHO) "... with 100MHz system clock" ; \
e0ac62d79   wdenk   * Make Ethernet a...
2585
2586
  		}
  	@[ -z "$(findstring _133MHz,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2587
  		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2588
  		  $(XECHO) "... with 133MHz system clock" ; \
e0ac62d79   wdenk   * Make Ethernet a...
2589
2590
  		}
  	@[ -z "$(findstring _150MHz,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2591
  		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2592
  		  $(XECHO) "... with 150MHz system clock" ; \
e0ac62d79   wdenk   * Make Ethernet a...
2593
  		}
f93286397   Marian Balakowicz   Add support for a...
2594
  	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
e0ac62d79   wdenk   * Make Ethernet a...
2595

f4863a7ae   wdenk   * Patch by liang ...
2596
  tb0229_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2597
  	@$(MKCONFIG) $(@:_config=) mips mips tb0229
f4863a7ae   wdenk   * Patch by liang ...
2598

e0ac62d79   wdenk   * Make Ethernet a...
2599
  #########################################################################
694597912   wdenk   Fix CONFIG_ETH*AD...
2600
2601
  ## MIPS32 AU1X00
  #########################################################################
dd520bf31   Wolfgang Denk   Code cleanup.
2602
  dbau1000_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2603
2604
2605
2606
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
694597912   wdenk   Fix CONFIG_ETH*AD...
2607

dd520bf31   Wolfgang Denk   Code cleanup.
2608
  dbau1100_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2609
2610
2611
2612
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
694597912   wdenk   Fix CONFIG_ETH*AD...
2613

dd520bf31   Wolfgang Denk   Code cleanup.
2614
  dbau1500_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2615
2616
2617
2618
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
694597912   wdenk   Fix CONFIG_ETH*AD...
2619

ff36fd859   wdenk   * Patch by Leif L...
2620
  dbau1550_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2621
2622
2623
2624
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
ff36fd859   wdenk   * Patch by Leif L...
2625
2626
  
  dbau1550_el_config	:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2627
2628
2629
2630
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
ff36fd859   wdenk   * Patch by Leif L...
2631

dd520bf31   Wolfgang Denk   Code cleanup.
2632
  pb1000_config		:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2633
2634
2635
2636
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
265817c7e   Wolfgang Denk   Add support for A...
2637

0764c164f   Vlad Lungu   MIPS:Target suppo...
2638
2639
2640
2641
2642
  qemu_mips_config: unconfig
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h
  	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
694597912   wdenk   Fix CONFIG_ETH*AD...
2643
  #########################################################################
e0ac62d79   wdenk   * Make Ethernet a...
2644
2645
  ## MIPS64 5Kc
  #########################################################################
43d9616cf   wdenk   * Patch by Robert...
2646

3e38691e8   wdenk   * Patch by Arun D...
2647
  purple_config :		unconfig
f93286397   Marian Balakowicz   Add support for a...
2648
  	@$(MKCONFIG) $(@:_config=) mips mips purple
43d9616cf   wdenk   * Patch by Robert...
2649

4a5517094   wdenk   * Patch by Scott ...
2650
2651
2652
2653
2654
2655
  #========================================================================
  # Nios
  #========================================================================
  #########################################################################
  ## Nios32
  #########################################################################
c935d3bd8   wdenk   Patches by Stepha...
2656
2657
  DK1C20_safe_32_config		\
  DK1C20_standard_32_config	\
4a5517094   wdenk   * Patch by Scott ...
2658
  DK1C20_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2659
2660
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
c935d3bd8   wdenk   Patches by Stepha...
2661
  	@[ -z "$(findstring _safe_32,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2662
  		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2663
  		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
c935d3bd8   wdenk   Patches by Stepha...
2664
2665
  		}
  	@[ -z "$(findstring _standard_32,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2666
  		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2667
  		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
c935d3bd8   wdenk   Patches by Stepha...
2668
2669
  		}
  	@[ -z "$(findstring DK1C20_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2670
  		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2671
  		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
c935d3bd8   wdenk   Patches by Stepha...
2672
  		}
f93286397   Marian Balakowicz   Add support for a...
2673
  	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
c935d3bd8   wdenk   Patches by Stepha...
2674
2675
2676
  
  DK1S10_safe_32_config		\
  DK1S10_standard_32_config	\
ec4c544be   wdenk   Patches by Stepha...
2677
  DK1S10_mtx_ldk_20_config	\
c935d3bd8   wdenk   Patches by Stepha...
2678
  DK1S10_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2679
2680
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
c935d3bd8   wdenk   Patches by Stepha...
2681
  	@[ -z "$(findstring _safe_32,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2682
  		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2683
  		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
c935d3bd8   wdenk   Patches by Stepha...
2684
2685
  		}
  	@[ -z "$(findstring _standard_32,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2686
  		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2687
  		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
c935d3bd8   wdenk   Patches by Stepha...
2688
  		}
ec4c544be   wdenk   Patches by Stepha...
2689
  	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2690
  		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2691
  		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
ec4c544be   wdenk   Patches by Stepha...
2692
  		}
c935d3bd8   wdenk   Patches by Stepha...
2693
  	@[ -z "$(findstring DK1S10_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2694
  		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2695
  		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
c935d3bd8   wdenk   Patches by Stepha...
2696
  		}
f93286397   Marian Balakowicz   Add support for a...
2697
  	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
4a5517094   wdenk   * Patch by Scott ...
2698

aaf224ab4   wdenk   * Patch by Stepha...
2699
2700
2701
  ADNPESC1_DNPEVA2_base_32_config	\
  ADNPESC1_base_32_config		\
  ADNPESC1_config: unconfig
f93286397   Marian Balakowicz   Add support for a...
2702
2703
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
aaf224ab4   wdenk   * Patch by Stepha...
2704
  	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2705
  		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2706
  		  $(XECHO) "... DNP/EVA2 configuration" ; \
42dfe7a18   wdenk   Code cleanup; mak...
2707
  		}
aaf224ab4   wdenk   * Patch by Stepha...
2708
  	@[ -z "$(findstring _base_32,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2709
  		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2710
  		  $(XECHO) "... NIOS 'base_32' configuration" ; \
42dfe7a18   wdenk   Code cleanup; mak...
2711
  		}
aaf224ab4   wdenk   * Patch by Stepha...
2712
  	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
f93286397   Marian Balakowicz   Add support for a...
2713
  		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2714
  		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
42dfe7a18   wdenk   Code cleanup; mak...
2715
  		}
f93286397   Marian Balakowicz   Add support for a...
2716
  	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
aaf224ab4   wdenk   * Patch by Stepha...
2717

5c952cf02   wdenk   Patches by Scott ...
2718
2719
2720
  #########################################################################
  ## Nios-II
  #########################################################################
9cc833783   Scott McNutt   Nios II - Add Alt...
2721
  EP1C20_config : unconfig
f93286397   Marian Balakowicz   Add support for a...
2722
  	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
9cc833783   Scott McNutt   Nios II - Add Alt...
2723
2724
  
  EP1S10_config : unconfig
f93286397   Marian Balakowicz   Add support for a...
2725
  	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
9cc833783   Scott McNutt   Nios II - Add Alt...
2726
2727
  
  EP1S40_config : unconfig
f93286397   Marian Balakowicz   Add support for a...
2728
  	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
9cc833783   Scott McNutt   Nios II - Add Alt...
2729

5c952cf02   wdenk   Patches by Scott ...
2730
  PK1C20_config : unconfig
f93286397   Marian Balakowicz   Add support for a...
2731
  	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
5c952cf02   wdenk   Patches by Scott ...
2732
2733
  
  PCI5441_config : unconfig
f93286397   Marian Balakowicz   Add support for a...
2734
  	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
4a5517094   wdenk   * Patch by Scott ...
2735

507bbe3e8   wdenk   * Patch by Yasush...
2736
2737
2738
2739
2740
2741
2742
  #========================================================================
  # MicroBlaze
  #========================================================================
  #########################################################################
  ## Microblaze
  #########################################################################
  suzaku_config:	unconfig
f93286397   Marian Balakowicz   Add support for a...
2743
2744
2745
2746
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
  	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
507bbe3e8   wdenk   * Patch by Yasush...
2747

cfc67116a   Michal Simek   [Microblaze][PATC...
2748
  ml401_config:	unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
2749
2750
2751
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
90b1b2d69   Grant Likely   Fix Makefile to u...
2752
  	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
cfc67116a   Michal Simek   [Microblaze][PATC...
2753

179804952   Michal Simek   Support for XUPV2...
2754
  xupv2p_config:	unconfig
cdd917a43   Wolfgang Denk   Fix build errors ...
2755
2756
2757
  	@mkdir -p $(obj)include
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
90b1b2d69   Grant Likely   Fix Makefile to u...
2758
  	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
179804952   Michal Simek   Support for XUPV2...
2759

60fa72d65   Mike Frysinger   unify the Blackfi...
2760
2761
2762
  #========================================================================
  # Blackfin
  #========================================================================
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2763

60fa72d65   Mike Frysinger   unify the Blackfi...
2764
2765
  # Analog Devices boards
  BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2766

60fa72d65   Mike Frysinger   unify the Blackfi...
2767
2768
  $(BFIN_BOARDS:%=%_config)	: unconfig
  	@$(MKCONFIG) $(@:_config=) blackfin $(firstword $(subst -, ,$@)) $(@:_config=)
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2769

60fa72d65   Mike Frysinger   unify the Blackfi...
2770
2771
2772
  $(BFIN_BOARDS):
  	$(MAKE) $@_config
  	$(MAKE)
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2773

5e3b0bc19   Haavard Skinnemoen   Finish up support...
2774
2775
2776
2777
2778
2779
2780
2781
  #========================================================================
  # AVR32
  #========================================================================
  #########################################################################
  ## AT32AP7xxx
  #########################################################################
  
  atstk1002_config	:	unconfig
36f28f8a9   Haavard Skinnemoen   AVR32: Rename at3...
2782
  	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
5e3b0bc19   Haavard Skinnemoen   Finish up support...
2783

667568db1   Haavard Skinnemoen   AVR32: Add suppor...
2784
2785
  atstk1003_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
64ff2357b   Haavard Skinnemoen   AVR32: Add suppor...
2786
2787
  atstk1004_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
5e3b0bc19   Haavard Skinnemoen   Finish up support...
2788

6b4439444   Haavard Skinnemoen   AVR32: ATNGW100 b...
2789
2790
  atngw100_config	:	unconfig
  	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2791
2792
  #########################################################################
  #########################################################################
3e38691e8   wdenk   * Patch by Arun D...
2793
  #########################################################################
7ebf7443a   wdenk   Initial revision
2794

69df3c4da   Nobuhiro Iwamatsu   sh: MS7750SE supp...
2795
  #########################################################################
b2b5e2bb7   Yoshihiro Shimoda   sh: Add support f...
2796
2797
2798
2799
2800
2801
2802
2803
  ## sh3 (Renesas SuperH)
  #########################################################################
  ms7720se_config: unconfig
  	@ >include/config.h
  	@echo "#define CONFIG_MS7720SE 1" >> include/config.h
  	@./mkconfig -a $(@:_config=) sh sh3 ms7720se
  
  #########################################################################
69df3c4da   Nobuhiro Iwamatsu   sh: MS7750SE supp...
2804
2805
2806
  ## sh4 (Renesas SuperH)
  #########################################################################
  ms7750se_config: unconfig
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2807
2808
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h
69df3c4da   Nobuhiro Iwamatsu   sh: MS7750SE supp...
2809
  	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
d91ea45d1   Nobuhiro Iwamatsu   sh: Update Makefile
2810
  ms7722se_config :       unconfig
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2811
2812
  	@ >$(obj)include/config.h
  	@echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h
d91ea45d1   Nobuhiro Iwamatsu   sh: Update Makefile
2813
  	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
5e3b0bc19   Haavard Skinnemoen   Finish up support...
2814

0afe519a4   Wolfgang Denk   Add ADI Blackfin ...
2815
2816
  #########################################################################
  #########################################################################
3e38691e8   wdenk   * Patch by Arun D...
2817
  #########################################################################
7ebf7443a   wdenk   Initial revision
2818
2819
  
  clean:
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2820
  	@find $(OBJTREE) -type f \
7ebf7443a   wdenk   Initial revision
2821
2822
2823
  		\( -name 'core' -o -name '*.bak' -o -name '*~' \
  		-o -name '*.o'  -o -name '*.a'  \) -print \
  		| xargs rm -f
5013c09f7   Wolfgang Denk   Makefile: cleanup...
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
  	@cd $(obj)examples/ && rm -f hello_world timer eepro100_eeprom sched \
  	      mem_to_mem_idma2intr 82559_eeprom smc91111_eeprom interrupt \
  	      test_burst
  	@cd $(obj)tools/ && rm -f bmp_logo easylogo/easylogo \
  		env/{fw_printenv,fw_setenv} envcrc gdb/{astest,gdbcont,gdbsend} \
  		gen_eth_addr img2srec mkimage mpc86x_clk ncb ubsha1
  	@cd $(obj)board/ && rm -f cray/L1/{bootscript.c,bootscript.image} \
  		netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
  		trab/trab_fkt voiceblue/eeprom \
  		{integratorap,integratorcp}/u-boot.lds integratorcp/u-boot.lds \
  		{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds
  	@rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
  	@cd $(obj)onenand_ipl/ && rm -f onenand-ipl onenand-ipl.bin \
  		onenand-ipl-2k.bin onenand-ipl.map
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2838
  	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
7ebf7443a   wdenk   Initial revision
2839
2840
  
  clobber:	clean
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2841
  	@find $(OBJTREE) -type f \( -name .depend \
4c0d4c3b7   wdenk   * Patch by Tom Ar...
2842
2843
2844
  		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
  		-print0 \
  		| xargs -0 rm -f
ffda586fc   Li Yang   add cscope build ...
2845
  	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
5013c09f7   Wolfgang Denk   Makefile: cleanup...
2846
  		$(obj)cscope.* $(obj)*.*~
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2847
  	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
5013c09f7   Wolfgang Denk   Makefile: cleanup...
2848
2849
  	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,sha1.c,inca-swap-bytes}
  	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2850
2851
  	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
  	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
751b9b518   Kyungmin Park   OneNAND Initial P...
2852
  	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2853
  	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
f93286397   Marian Balakowicz   Add support for a...
2854
2855
  
  ifeq ($(OBJTREE),$(SRCTREE))
7ebf7443a   wdenk   Initial revision
2856
2857
  mrproper \
  distclean:	clobber unconfig
f93286397   Marian Balakowicz   Add support for a...
2858
2859
2860
  else
  mrproper \
  distclean:	clobber unconfig
ae6d1056d   Wolfgang Denk   Fix Makefile depe...
2861
  	rm -rf $(obj)*
f93286397   Marian Balakowicz   Add support for a...
2862
  endif
7ebf7443a   wdenk   Initial revision
2863
2864
2865
2866
2867
2868
  
  backup:
  	F=`basename $(TOPDIR)` ; cd .. ; \
  	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  
  #########################################################################