blob: 2adc0761a8e3fcf330f92dd593b219ac210cbb0e [file] [log] [blame]
Ke Dong0e9e0c92012-09-11 00:12:54 -07001#
2# (C) Copyright 2000-2009
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundatio; either version 2 of
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
24VERSION = 2009
25PATCHLEVEL = 08
26SUBLEVEL =
27EXTRAVERSION =
28ifneq "$(SUBLEVEL)" ""
29U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
30else
31U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
32endif
33TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34VERSION_FILE = $(obj)include/version_autogenerated.h
35
36HOSTARCH := $(shell uname -m | \
37 sed -e s/i.86/i386/ \
38 -e s/sun4u/sparc64/ \
39 -e s/arm.*/arm/ \
40 -e s/sa110/arm/ \
41 -e s/powerpc/ppc/ \
42 -e s/ppc64/ppc/ \
43 -e s/macppc/ppc/)
44
45HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
46 sed -e 's/\(cygwin\).*/cygwin/')
47
48# Set shell to bash if possible, otherwise fall back to sh
49SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
51 else echo sh; fi; fi)
52
53export HOSTARCH HOSTOS SHELL
54
55# Deal with colliding definitions from tcsh etc.
56VENDOR=
57
58#########################################################################
59# Allow for silent builds
60ifeq (,$(findstring s,$(MAKEFLAGS)))
61XECHO = echo
62else
63XECHO = :
64endif
65
66#########################################################################
67#
68# U-boot build supports producing a object files to the separate external
69# directory. Two use cases are supported:
70#
71# 1) Add O= to the make command line
72# 'make O=/tmp/build all'
73#
74# 2) Set environement variable BUILD_DIR to point to the desired location
75# 'export BUILD_DIR=/tmp/build'
76# 'make'
77#
78# The second approach can also be used with a MAKEALL script
79# 'export BUILD_DIR=/tmp/build'
80# './MAKEALL'
81#
82# Command line 'O=' setting overrides BUILD_DIR environent variable.
83#
84# When none of the above methods is used the local build is performed and
85# the object files are placed in the source directory.
86#
87
88ifdef O
89ifeq ("$(origin O)", "command line")
90BUILD_DIR := $(O)
91endif
92endif
93
94ifneq ($(BUILD_DIR),)
95saved-output := $(BUILD_DIR)
96
97# Attempt to create a output directory.
98$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
99
100# Verify if it was successful.
101BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103endif # ifneq ($(BUILD_DIR),)
104
105OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106SRCTREE := $(CURDIR)
107TOPDIR := $(SRCTREE)
108LNDIR := $(OBJTREE)
109export TOPDIR SRCTREE OBJTREE
110
111MKCONFIG := $(SRCTREE)/mkconfig
112export MKCONFIG
113
114ifneq ($(OBJTREE),$(SRCTREE))
115REMOTE_BUILD := 1
116export REMOTE_BUILD
117endif
118
119# $(obj) and (src) are defined in config.mk but here in main Makefile
120# we also need them before config.mk is included which is the case for
121# some targets like unconfig, clean, clobber, distclean, etc.
122ifneq ($(OBJTREE),$(SRCTREE))
123obj := $(OBJTREE)/
124src := $(SRCTREE)/
125else
126obj :=
127src :=
128endif
129export obj src
130
131# Make sure CDPATH settings don't interfere
132unexport CDPATH
133
134#########################################################################
135
136ifeq ($(ARCH),powerpc)
137ARCH = ppc
138endif
139
140# The "tools" are needed early, so put this first
141# Don't include stuff already done in $(LIBS)
142SUBDIRS = tools \
143 examples/standalone \
144 examples/api
145
146.PHONY : $(SUBDIRS)
147
148ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
149
150# Include autoconf.mk before config.mk so that the config options are available
151# to all top level build files. We need the dummy all: target to prevent the
152# dependency target in autoconf.mk.dep from being the default.
153all:
154sinclude $(obj)include/autoconf.mk.dep
155sinclude $(obj)include/autoconf.mk
156
157# load ARCH, BOARD, and CPU configuration
158include $(obj)include/config.mk
159export ARCH CPU BOARD VENDOR SOC
160
161# set default to nothing for native builds
162ifeq ($(HOSTARCH),$(ARCH))
163CROSS_COMPILE ?=
164endif
165
166# load other configuration
167include $(TOPDIR)/config.mk
168
169#########################################################################
170# U-Boot objects....order is important (i.e. start must be first)
171
172OBJS = cpu/$(CPU)/start.o
173ifeq ($(CPU),i386)
174OBJS += cpu/$(CPU)/start16.o
175OBJS += cpu/$(CPU)/resetvec.o
176endif
177ifeq ($(CPU),ppc4xx)
178OBJS += cpu/$(CPU)/resetvec.o
179endif
180ifeq ($(CPU),mpc85xx)
181OBJS += cpu/$(CPU)/resetvec.o
182endif
183
184OBJS := $(addprefix $(obj),$(OBJS))
185
186LIBS = lib_generic/libgeneric.a
187LIBS += lib_generic/lzma/liblzma.a
188LIBS += lib_generic/lzo/liblzo.a
189LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
190 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
191LIBS += cpu/$(CPU)/lib$(CPU).a
192ifdef SOC
193LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
194endif
195ifeq ($(CPU),ixp)
196LIBS += cpu/ixp/npe/libnpe.a
197endif
198LIBS += lib_$(ARCH)/lib$(ARCH).a
199LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
200 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
201 fs/ubifs/libubifs.a
202LIBS += net/libnet.a
203LIBS += disk/libdisk.a
204LIBS += drivers/bios_emulator/libatibiosemu.a
205LIBS += drivers/block/libblock.a
206LIBS += drivers/dma/libdma.a
207LIBS += drivers/fpga/libfpga.a
208LIBS += drivers/gpio/libgpio.a
209LIBS += drivers/hwmon/libhwmon.a
210LIBS += drivers/i2c/libi2c.a
211LIBS += drivers/input/libinput.a
212LIBS += drivers/misc/libmisc.a
213LIBS += drivers/mmc/libmmc.a
214LIBS += drivers/mtd/libmtd.a
215LIBS += drivers/mtd/nand/libnand.a
216LIBS += drivers/mtd/onenand/libonenand.a
217LIBS += drivers/mtd/ubi/libubi.a
218LIBS += drivers/mtd/spi/libspi_flash.a
219LIBS += drivers/net/libnet.a
220LIBS += drivers/net/phy/libphy.a
221LIBS += drivers/net/sk98lin/libsk98lin.a
222LIBS += drivers/pci/libpci.a
223LIBS += drivers/pcmcia/libpcmcia.a
224LIBS += drivers/power/libpower.a
225LIBS += drivers/spi/libspi.a
226ifeq ($(CPU),mpc83xx)
227LIBS += drivers/qe/qe.a
228endif
229ifeq ($(CPU),mpc85xx)
230LIBS += drivers/qe/qe.a
231LIBS += cpu/mpc8xxx/ddr/libddr.a
232TAG_SUBDIRS += cpu/mpc8xxx
233endif
234ifeq ($(CPU),mpc86xx)
235LIBS += cpu/mpc8xxx/ddr/libddr.a
236TAG_SUBDIRS += cpu/mpc8xxx
237endif
238LIBS += drivers/rtc/librtc.a
239LIBS += drivers/serial/libserial.a
240LIBS += drivers/twserial/libtws.a
241LIBS += drivers/usb/gadget/libusb_gadget.a
242LIBS += drivers/usb/host/libusb_host.a
243LIBS += drivers/usb/musb/libusb_musb.a
244LIBS += drivers/video/libvideo.a
245LIBS += drivers/watchdog/libwatchdog.a
246LIBS += common/libcommon.a
247LIBS += libfdt/libfdt.a
248LIBS += api/libapi.a
249LIBS += post/libpost.a
250
251LIBS := $(addprefix $(obj),$(LIBS))
252.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
253
254LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
255LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
256
257# Add GCC lib
258ifdef USE_PRIVATE_LIBGCC
259ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
260PLATFORM_LIBGCC = -L $(OBJTREE)/lib_$(ARCH) -lgcc
261else
262PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
263endif
264else
265PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
266endif
267PLATFORM_LIBS += $(PLATFORM_LIBGCC)
268export PLATFORM_LIBS
269
270# Special flags for CPP when processing the linker script.
271# Pass the version down so we can handle backwards compatibility
272# on the fly.
273LDPPFLAGS += \
274 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
275 $(shell $(LD) --version | \
276 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
277
278ifeq ($(CONFIG_NAND_U_BOOT),y)
279NAND_SPL = nand_spl
280U_BOOT_NAND = $(obj)u-boot-nand.bin
281endif
282
283ifeq ($(CONFIG_ONENAND_U_BOOT),y)
284ONENAND_IPL = onenand_ipl
285U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
286endif
287
288__OBJS := $(subst $(obj),,$(OBJS))
289__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
290
291#########################################################################
292#########################################################################
293
294# Always append ALL so that arch config.mk's can add custom ones
295ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
296
Ke Dong286f5142012-09-11 00:15:54 -0700297BINCPY = cp -f u-boot.bin u-boot-${MV_OUTPUT}.bin
298ELFCPY = cp -f u-boot u-boot-${MV_OUTPUT}
299SRECCPY = cp -f u-boot.srec u-boot-${MV_OUTPUT}.srec
300
Ke Dong192fe0b2012-10-01 23:38:59 -0700301ifeq ($(LARGEKERNEL),1)
302DEST_ADDR=0x1000000
303EXEC_ADDR=0x1080000
304else
305DEST_ADDR=0x600000
306EXEC_ADDR=0x680000
307endif
308
Ke Dong286f5142012-09-11 00:15:54 -0700309DRAM_REGS_FILE=dramregs_$(MV_DDR_FREQ)_$(DDR_TYPE)$(DDR_ACCESS).txt
Ke Donga430e592013-04-15 18:42:07 -0700310
311################################################################################
312# DO_IMAGE_TEMPLATE -- the macro to generate do_image wrapper for different
313# target images.
314#
315# Argument 1 is target image [spi, nand, nor, uart]
316################################################################################
317define DO_IMAGE_TEMPLATE
318ifeq ($(1),spi)
319 $(1)_IMAGE_TYPE := flash
320else ifeq ($(1),nor)
321 $(1)_IMAGE_TYPE := flash
322else
323 $(1)_IMAGE_TYPE := $(1)
324endif
325
326ifeq ($(1),nand)
Ke Dong286f5142012-09-11 00:15:54 -0700327ifeq ($(CONFIG_NAND_SP),y)
Ke Donga430e592013-04-15 18:42:07 -0700328 NAND_ARGS := -P 512 -L $(BLK_SIZE) -N $(NAND_TECH)
Ke Dong286f5142012-09-11 00:15:54 -0700329endif
330ifeq ($(CONFIG_NAND_LP),y)
Ke Donga430e592013-04-15 18:42:07 -0700331 NAND_ARGS := -P 2048 -L $(BLK_SIZE) -N $(NAND_TECH)
Ke Dong286f5142012-09-11 00:15:54 -0700332endif
Ke Donga430e592013-04-15 18:42:07 -0700333endif
334
335do_image_$(1) = ./tools/doimage -T $$($(1)_IMAGE_TYPE) -D $(DEST_ADDR) \
336 -E $(EXEC_ADDR) $(NAND_ARGS) -R $(DRAM_REGS_FILE) \
337 u-boot-$(MV_OUTPUT).bin \
338 u-boot-$(MV_OUTPUT)_$(MV_DDR_FREQ)_$(DDR_TYPE)_$(1).bin && \
Ke Donga7377272013-04-19 21:47:31 -0700339 ln -f u-boot-$(MV_OUTPUT)_$(MV_DDR_FREQ)_$(DDR_TYPE)_$(1).bin \
Ke Donga430e592013-04-15 18:42:07 -0700340 u-boot-$(1).bin
341endef
342
343# The following two lines will generate four variables
344# do_image_nand, do_image_spi, do_image_nor, do_image_uart.
345# The reason that variable is preferred than functions is
346# because the function output does not go to the standard output.
347IMAGE_TYPES = nand spi nor uart
348$(foreach image,$(IMAGE_TYPES),$(eval $(call DO_IMAGE_TEMPLATE,$(image))))
Ke Dong286f5142012-09-11 00:15:54 -0700349
Ke Dong0e9e0c92012-09-11 00:12:54 -0700350all: $(ALL)
351
352$(obj)u-boot.hex: $(obj)u-boot
353 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
354
355$(obj)u-boot.srec: $(obj)u-boot
356 $(OBJCOPY) -O srec $< $@
Ke Dong286f5142012-09-11 00:15:54 -0700357 $(SRECCPY)
Ke Dong0e9e0c92012-09-11 00:12:54 -0700358
359$(obj)u-boot.bin: $(obj)u-boot
360 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
Ke Dong286f5142012-09-11 00:15:54 -0700361 $(BINCPY)
Ke Dong286f5142012-09-11 00:15:54 -0700362ifeq ($(NAND_BOOT), y)
Ke Donga430e592013-04-15 18:42:07 -0700363 $(do_image_nand)
Ke Dong286f5142012-09-11 00:15:54 -0700364endif
365ifeq ($(SPI_BOOT), y)
Ke Donga430e592013-04-15 18:42:07 -0700366 $(do_image_spi)
Ke Dong286f5142012-09-11 00:15:54 -0700367endif
368ifeq ($(NOR_BOOT), y)
Ke Donga430e592013-04-15 18:42:07 -0700369 $(do_image_nor)
Ke Dong286f5142012-09-11 00:15:54 -0700370endif
Ke Donga430e592013-04-15 18:42:07 -0700371 $(do_image_uart)
Ke Dong0e9e0c92012-09-11 00:12:54 -0700372
373$(obj)u-boot.ldr: $(obj)u-boot
374 $(obj)tools/envcrc --binary > $(obj)env-ldr.o
375 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
376
377$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
378 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
379
380$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
381 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
382
383$(obj)u-boot.img: $(obj)u-boot.bin
384 ./tools/mkimage -A $(ARCH) -T firmware -C none \
385 -a $(TEXT_BASE) -e 0 \
386 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
387 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
388 -d $< $@
389
390$(obj)u-boot.sha1: $(obj)u-boot.bin
391 $(obj)tools/ubsha1 $(obj)u-boot.bin
392
393$(obj)u-boot.dis: $(obj)u-boot
394 $(OBJDUMP) -d $< > $@
395
396GEN_UBOOT = \
397 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
398 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
399 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
400 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
401 -Map u-boot.map -o u-boot
402$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
403 $(GEN_UBOOT)
404ifeq ($(CONFIG_KALLSYMS),y)
405 smap=`$(call SYSTEM_MAP,u-boot) | \
406 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
407 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
408 -c common/system_map.c -o $(obj)common/system_map.o
409 $(GEN_UBOOT) $(obj)common/system_map.o
410endif
411
412$(OBJS): depend
413 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
414
415$(LIBS): depend $(SUBDIRS)
416 $(MAKE) -C $(dir $(subst $(obj),,$@))
417
418$(LIBBOARD): depend $(LIBS)
419 $(MAKE) -C $(dir $(subst $(obj),,$@))
420
421$(SUBDIRS): depend
422 $(MAKE) -C $@ all
423
424$(LDSCRIPT): depend
425 $(MAKE) -C $(dir $@) $(notdir $@)
426
427$(obj)u-boot.lds: $(LDSCRIPT)
428 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
429
430$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
431 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
432
433$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
434 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
435
436$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
437 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
438
439$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
440 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
441 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
442
Ke Dong286f5142012-09-11 00:15:54 -0700443## Remove git related versioning.
444##$(VERSION_FILE):
445## @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
446## '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
447## @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
448
Ke Dong0e9e0c92012-09-11 00:12:54 -0700449$(VERSION_FILE):
Ke Dong286f5142012-09-11 00:15:54 -0700450 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" ) > $@.tmp
Ke Dong0e9e0c92012-09-11 00:12:54 -0700451 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
452
453$(TIMESTAMP_FILE):
454 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
455 @date +'#define U_BOOT_TIME "%T"' >> $@
456
457gdbtools:
458 $(MAKE) -C tools/gdb all || exit 1
459
460updater:
461 $(MAKE) -C tools/updater all || exit 1
462
463env:
464 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
465
466depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
467 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
468
469TAG_SUBDIRS += include
470TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
471TAG_SUBDIRS += cpu/$(CPU)
472TAG_SUBDIRS += lib_$(ARCH)
473TAG_SUBDIRS += fs/cramfs
474TAG_SUBDIRS += fs/fat
475TAG_SUBDIRS += fs/fdos
476TAG_SUBDIRS += fs/jffs2
477TAG_SUBDIRS += fs/yaffs2
478TAG_SUBDIRS += net
479TAG_SUBDIRS += disk
480TAG_SUBDIRS += common
481TAG_SUBDIRS += drivers/bios_emulator
482TAG_SUBDIRS += drivers/block
483TAG_SUBDIRS += drivers/gpio
484TAG_SUBDIRS += drivers/hwmon
485TAG_SUBDIRS += drivers/i2c
486TAG_SUBDIRS += drivers/input
487TAG_SUBDIRS += drivers/misc
488TAG_SUBDIRS += drivers/mmc
489TAG_SUBDIRS += drivers/mtd
490TAG_SUBDIRS += drivers/mtd/nand
491TAG_SUBDIRS += drivers/mtd/onenand
492TAG_SUBDIRS += drivers/mtd/spi
493TAG_SUBDIRS += drivers/net
494TAG_SUBDIRS += drivers/net/sk98lin
495TAG_SUBDIRS += drivers/pci
496TAG_SUBDIRS += drivers/pcmcia
497TAG_SUBDIRS += drivers/qe
498TAG_SUBDIRS += drivers/rtc
499TAG_SUBDIRS += drivers/serial
500TAG_SUBDIRS += drivers/spi
501TAG_SUBDIRS += drivers/usb
502TAG_SUBDIRS += drivers/video
503
504tags ctags:
505 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
506 -name '*.[ch]' -print`
507
508etags:
509 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
510 -name '*.[ch]' -print`
511cscope:
512 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
513 > cscope.files
514 cscope -b -q -k
515
516SYSTEM_MAP = \
517 $(NM) $1 | \
518 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
519 LC_ALL=C sort
520$(obj)System.map: $(obj)u-boot
521 @$(call SYSTEM_MAP,$<) > $(obj)System.map
Ke Dong286f5142012-09-11 00:15:54 -0700522 $(ELFCPY)
Ke Dong0e9e0c92012-09-11 00:12:54 -0700523
524#
525# Auto-generate the autoconf.mk file (which is included by all makefiles)
526#
527# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
528# the dep file is only include in this top level makefile to determine when
529# to regenerate the autoconf.mk file.
530$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
531 @$(XECHO) Generating $@ ; \
532 set -e ; \
533 : Generate the dependancies ; \
534 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
535 -MQ $(obj)include/autoconf.mk include/common.h > $@
536
537$(obj)include/autoconf.mk: $(obj)include/config.h
538 @$(XECHO) Generating $@ ; \
539 set -e ; \
540 : Extract the config macros ; \
541 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
542 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
543 mv $@.tmp $@
544
545#########################################################################
546else # !config.mk
547all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
548$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
549$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
550dep tags ctags etags cscope $(obj)System.map:
551 @echo "System not configured - see README" >&2
552 @ exit 1
553endif # config.mk
554
555.PHONY : CHANGELOG
556CHANGELOG:
557 git log --no-merges U-Boot-1_1_5.. | \
558 unexpand -a | sed -e 's/\s\s*$$//' > $@
559
560include/license.h: tools/bin2header COPYING
561 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
562#########################################################################
563
564unconfig:
565 @rm -f $(obj)include/config.h $(obj)include/config.mk \
566 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
567 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
568
569#========================================================================
570# PowerPC
571#========================================================================
572
573#########################################################################
574## MPC5xx Systems
575#########################################################################
576
577canmb_config: unconfig
578 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
579
580cmi_mpc5xx_config: unconfig
581 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
582
583PATI_config: unconfig
584 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
585
586#########################################################################
587## MPC5xxx Systems
588#########################################################################
589
590aev_config: unconfig
591 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
592
593BC3450_config: unconfig
594 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
595
596cm5200_config: unconfig
597 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
598
599cpci5200_config: unconfig
600 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
601
602digsy_mtc_config \
603digsy_mtc_LOWBOOT_config \
604digsy_mtc_RAMBOOT_config: unconfig
605 @mkdir -p $(obj)include
606 @mkdir -p $(obj)board/digsy_mtc
607 @ >$(obj)include/config.h
608 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
609 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
610 echo "... with LOWBOOT configuration" ; \
611 }
612 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
613 { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
614 echo "... with RAMBOOT configuration" ; \
615 }
616 @$(MKCONFIG) -a digsy_mtc ppc mpc5xxx digsy_mtc
617
618hmi1001_config: unconfig
619 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
620
621Lite5200_config \
622Lite5200_LOWBOOT_config \
623Lite5200_LOWBOOT08_config \
624icecube_5200_config \
625icecube_5200_LOWBOOT_config \
626icecube_5200_LOWBOOT08_config \
627icecube_5200_DDR_config \
628icecube_5200_DDR_LOWBOOT_config \
629icecube_5200_DDR_LOWBOOT08_config \
630icecube_5100_config: unconfig
631 @mkdir -p $(obj)include
632 @mkdir -p $(obj)board/icecube
633 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
634 { if [ "$(findstring DDR,$@)" ] ; \
635 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
636 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
637 fi ; \
638 $(XECHO) "... with LOWBOOT configuration" ; \
639 }
640 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
641 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
642 echo "... with 8 MB flash only" ; \
643 $(XECHO) "... with LOWBOOT configuration" ; \
644 }
645 @[ -z "$(findstring DDR,$@)" ] || \
646 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
647 $(XECHO) "... DDR memory revision" ; \
648 }
649 @[ -z "$(findstring 5200,$@)" ] || \
650 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
651 $(XECHO) "... with MPC5200 processor" ; \
652 }
653 @[ -z "$(findstring 5100,$@)" ] || \
654 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
655 $(XECHO) "... with MGT5100 processor" ; \
656 }
657 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
658
659jupiter_config: unconfig
660 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
661
662inka4x0_config: unconfig
663 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
664
665lite5200b_config \
666lite5200b_PM_config \
667lite5200b_LOWBOOT_config: unconfig
668 @mkdir -p $(obj)include
669 @mkdir -p $(obj)board/icecube
670 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
671 @ $(XECHO) "... DDR memory revision"
672 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
673 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
674 @[ -z "$(findstring _PM_,$@)" ] || \
675 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
676 $(XECHO) "... with power management (low-power mode) support" ; \
677 }
678 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
679 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
680 $(XECHO) "... with LOWBOOT configuration" ; \
681 }
682 @ $(XECHO) "... with MPC5200B processor"
683 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
684
685mcc200_config \
686mcc200_SDRAM_config \
687mcc200_highboot_config \
688mcc200_COM12_config \
689mcc200_COM12_SDRAM_config \
690mcc200_COM12_highboot_config \
691mcc200_COM12_highboot_SDRAM_config \
692mcc200_highboot_SDRAM_config \
693prs200_config \
694prs200_DDR_config \
695prs200_highboot_config \
696prs200_highboot_DDR_config: unconfig
697 @mkdir -p $(obj)include
698 @mkdir -p $(obj)board/mcc200
699 @[ -n "$(findstring highboot,$@)" ] || \
700 { $(XECHO) "... with lowboot configuration" ; \
701 }
702 @[ -z "$(findstring highboot,$@)" ] || \
703 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
704 $(XECHO) "... with highboot configuration" ; \
705 }
706 @[ -n "$(findstring _SDRAM,$@)" ] || \
707 { if [ -n "$(findstring mcc200,$@)" ]; \
708 then \
709 $(XECHO) "... with DDR" ; \
710 else \
711 if [ -n "$(findstring _DDR,$@)" ];\
712 then \
713 $(XECHO) "... with DDR" ; \
714 else \
715 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
716 $(XECHO) "... with SDRAM" ; \
717 fi; \
718 fi; \
719 }
720 @[ -z "$(findstring _SDRAM,$@)" ] || \
721 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
722 $(XECHO) "... with SDRAM" ; \
723 }
724 @[ -z "$(findstring COM12,$@)" ] || \
725 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
726 $(XECHO) "... with console on COM12" ; \
727 }
728 @[ -z "$(findstring prs200,$@)" ] || \
729 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
730 }
731 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
732
733mecp5200_config: unconfig
734 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
735
736motionpro_config: unconfig
737 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
738
739mucmc52_config: unconfig
740 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
741
742munices_config: unconfig
743 @$(MKCONFIG) munices ppc mpc5xxx munices
744
745MVBC_P_config: unconfig
746 @mkdir -p $(obj)include
747 @mkdir -p $(obj)board/mvbc_p
748 @ >$(obj)include/config.h
749 @[ -z "$(findstring MVBC_P,$@)" ] || \
750 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
751 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
752
753o2dnt_config: unconfig
754 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
755
756pcm030_config \
757pcm030_LOWBOOT_config: unconfig
758 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
759 @ >$(obj)include/config.h
760 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
761 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp ; \
762 echo "... with LOWBOOT configuration" ; \
763 }
764 @$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec
765
766pf5200_config: unconfig
767 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
768
769PM520_config \
770PM520_DDR_config \
771PM520_ROMBOOT_config \
772PM520_ROMBOOT_DDR_config: unconfig
773 @mkdir -p $(obj)include
774 @[ -z "$(findstring DDR,$@)" ] || \
775 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
776 $(XECHO) "... DDR memory revision" ; \
777 }
778 @[ -z "$(findstring ROMBOOT,$@)" ] || \
779 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
780 $(XECHO) "... booting from 8-bit flash" ; \
781 }
782 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
783
784smmaco4_config: unconfig
785 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
786
787spieval_config: unconfig
788 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
789
790TB5200_B_config \
791TB5200_config: unconfig
792 @mkdir -p $(obj)include
793 @[ -z "$(findstring _B,$@)" ] || \
794 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
795 $(XECHO) "... with MPC5200B processor" ; \
796 }
797 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
798
799MINI5200_config \
800EVAL5200_config \
801TOP5200_config: unconfig
802 @mkdir -p $(obj)include
803 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
804 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
805
806Total5100_config \
807Total5200_config \
808Total5200_lowboot_config \
809Total5200_Rev2_config \
810Total5200_Rev2_lowboot_config: unconfig
811 @mkdir -p $(obj)include
812 @mkdir -p $(obj)board/total5200
813 @[ -z "$(findstring 5100,$@)" ] || \
814 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
815 $(XECHO) "... with MGT5100 processor" ; \
816 }
817 @[ -z "$(findstring 5200,$@)" ] || \
818 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
819 $(XECHO) "... with MPC5200 processor" ; \
820 }
821 @[ -n "$(findstring Rev,$@)" ] || \
822 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
823 $(XECHO) "... revision 1 board" ; \
824 }
825 @[ -z "$(findstring Rev2_,$@)" ] || \
826 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
827 $(XECHO) "... revision 2 board" ; \
828 }
829 @[ -z "$(findstring lowboot_,$@)" ] || \
830 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
831 $(XECHO) "... with lowboot configuration" ; \
832 }
833 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
834
835cam5200_config \
836cam5200_niosflash_config \
837fo300_config \
838MiniFAP_config \
839TQM5200S_config \
840TQM5200S_HIGHBOOT_config \
841TQM5200_B_config \
842TQM5200_B_HIGHBOOT_config \
843TQM5200_config \
844TQM5200_STK100_config: unconfig
845 @mkdir -p $(obj)include
846 @mkdir -p $(obj)board/tqc/tqm5200
847 @[ -z "$(findstring cam5200,$@)" ] || \
848 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
849 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
850 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
851 $(XECHO) "... TQM5200S on Cam5200" ; \
852 }
853 @[ -z "$(findstring niosflash,$@)" ] || \
854 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
855 $(XECHO) "... with NIOS flash driver" ; \
856 }
857 @[ -z "$(findstring fo300,$@)" ] || \
858 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
859 $(XECHO) "... TQM5200 on FO300" ; \
860 }
861 @[ -z "$(findstring MiniFAP,$@)" ] || \
862 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
863 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
864 }
865 @[ -z "$(findstring STK100,$@)" ] || \
866 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
867 $(XECHO) "... on a STK52XX.100 base board" ; \
868 }
869 @[ -z "$(findstring TQM5200_B,$@)" ] || \
870 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
871 }
872 @[ -z "$(findstring TQM5200S,$@)" ] || \
873 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
874 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
875 }
876 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
877 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
878 }
879 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
880
881uc101_config: unconfig
882 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
883
884v38b_config: unconfig
885 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
886
887#########################################################################
888## MPC512x Systems
889#########################################################################
890
891aria_config: unconfig
892 @$(MKCONFIG) -a aria ppc mpc512x aria davedenx
893
894mecp5123_config: unconfig
895 @$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd
896
897mpc5121ads_config \
898mpc5121ads_rev2_config \
899 : unconfig
900 @mkdir -p $(obj)include
901 @if [ "$(findstring rev2,$@)" ] ; then \
902 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
903 fi
904 @$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale
905
906#########################################################################
907## MPC8xx Systems
908#########################################################################
909
910Adder_config \
911Adder87x_config \
912AdderII_config \
913 : unconfig
914 @mkdir -p $(obj)include
915 $(if $(findstring AdderII,$@), \
916 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
917 @$(MKCONFIG) -a Adder ppc mpc8xx adder
918
919AdderUSB_config: unconfig
920 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
921
922ADS860_config \
923FADS823_config \
924FADS850SAR_config \
925MPC86xADS_config \
926MPC885ADS_config \
927FADS860T_config: unconfig
928 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
929
930AMX860_config : unconfig
931 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
932
933c2mon_config: unconfig
934 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
935
936CCM_config: unconfig
937 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
938
939cogent_mpc8xx_config: unconfig
940 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
941
942ELPT860_config: unconfig
943 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
944
945EP88x_config: unconfig
946 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
947
948ESTEEM192E_config: unconfig
949 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
950
951ETX094_config : unconfig
952 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
953
954FLAGADM_config: unconfig
955 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
956
957xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
958
959GEN860T_SC_config \
960GEN860T_config: unconfig
961 @mkdir -p $(obj)include
962 @[ -z "$(findstring _SC,$@)" ] || \
963 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
964 $(XECHO) "With reduced H/W feature set (SC)..." ; \
965 }
966 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
967
968GENIETV_config: unconfig
969 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
970
971GTH_config: unconfig
972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
973
974hermes_config : unconfig
975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
976
977HMI10_config : unconfig
978 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
979
980IAD210_config: unconfig
981 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
982
983xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
984
985ICU862_100MHz_config \
986ICU862_config: unconfig
987 @mkdir -p $(obj)include
988 @[ -z "$(findstring _100MHz,$@)" ] || \
989 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
990 $(XECHO) "... with 100MHz system clock" ; \
991 }
992 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
993
994IP860_config : unconfig
995 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
996
997IVML24_256_config \
998IVML24_128_config \
999IVML24_config: unconfig
1000 @mkdir -p $(obj)include
1001 @[ -z "$(findstring IVML24_config,$@)" ] || \
1002 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
1003 }
1004 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
1005 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
1006 }
1007 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
1008 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
1009 }
1010 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
1011
1012IVMS8_256_config \
1013IVMS8_128_config \
1014IVMS8_config: unconfig
1015 @mkdir -p $(obj)include
1016 @[ -z "$(findstring IVMS8_config,$@)" ] || \
1017 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
1018 }
1019 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
1020 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
1021 }
1022 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
1023 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
1024 }
1025 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
1026
1027kmsupx4_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
1029
1030KUP4K_config : unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
1032
1033KUP4X_config : unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
1035
1036LANTEC_config : unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
1038
1039lwmon_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
1041
1042MBX_config \
1043MBX860T_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
1045
1046mgsuvd_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
1048
1049MHPC_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
1051
1052xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
1053
1054NETVIA_V2_config \
1055NETVIA_config: unconfig
1056 @mkdir -p $(obj)include
1057 @[ -z "$(findstring NETVIA_config,$@)" ] || \
1058 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
1059 $(XECHO) "... Version 1" ; \
1060 }
1061 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
1062 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
1063 $(XECHO) "... Version 2" ; \
1064 }
1065 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
1066
1067xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
1068
1069NETPHONE_V2_config \
1070NETPHONE_config: unconfig
1071 @mkdir -p $(obj)include
1072 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
1073 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
1074 }
1075 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
1076 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
1077 }
1078 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
1079
1080xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
1081
1082NETTA_ISDN_6412_SWAPHOOK_config \
1083NETTA_ISDN_SWAPHOOK_config \
1084NETTA_6412_SWAPHOOK_config \
1085NETTA_SWAPHOOK_config \
1086NETTA_ISDN_6412_config \
1087NETTA_ISDN_config \
1088NETTA_6412_config \
1089NETTA_config: unconfig
1090 @mkdir -p $(obj)include
1091 @[ -z "$(findstring ISDN_,$@)" ] || \
1092 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
1093 }
1094 @[ -n "$(findstring ISDN_,$@)" ] || \
1095 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
1096 }
1097 @[ -z "$(findstring 6412_,$@)" ] || \
1098 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
1099 }
1100 @[ -n "$(findstring 6412_,$@)" ] || \
1101 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
1102 }
1103 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1104 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
1105 }
1106 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1107 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
1108 }
1109 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
1110
1111xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
1112
1113NETTA2_V2_config \
1114NETTA2_config: unconfig
1115 @mkdir -p $(obj)include
1116 @[ -z "$(findstring NETTA2_config,$@)" ] || \
1117 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1118 }
1119 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1120 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1121 }
1122 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1123
1124NC650_Rev1_config \
1125NC650_Rev2_config \
1126CP850_config: unconfig
1127 @mkdir -p $(obj)include
1128 @[ -z "$(findstring CP850,$@)" ] || \
1129 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1130 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1131 }
1132 @[ -z "$(findstring Rev1,$@)" ] || \
1133 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1134 }
1135 @[ -z "$(findstring Rev2,$@)" ] || \
1136 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1137 }
1138 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1139
1140NX823_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1142
1143pcu_e_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1145
1146QS850_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1148
1149QS823_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1151
1152QS860T_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1154
1155quantum_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1157
1158R360MPI_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1160
1161RBC823_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1163
1164RPXClassic_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1166
1167RPXlite_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1169
1170RPXlite_DW_64_config \
1171RPXlite_DW_LCD_config \
1172RPXlite_DW_64_LCD_config \
1173RPXlite_DW_NVRAM_config \
1174RPXlite_DW_NVRAM_64_config \
1175RPXlite_DW_NVRAM_LCD_config \
1176RPXlite_DW_NVRAM_64_LCD_config \
1177RPXlite_DW_config: unconfig
1178 @mkdir -p $(obj)include
1179 @[ -z "$(findstring _64,$@)" ] || \
1180 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1181 $(XECHO) "... with 64MHz system clock ..."; \
1182 }
1183 @[ -z "$(findstring _LCD,$@)" ] || \
1184 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1185 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1186 $(XECHO) "... with LCD display ..."; \
1187 }
1188 @[ -z "$(findstring _NVRAM,$@)" ] || \
1189 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1190 $(XECHO) "... with ENV in NVRAM ..."; \
1191 }
1192 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1193
1194rmu_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1196
1197RRvision_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1199
1200RRvision_LCD_config: unconfig
1201 @mkdir -p $(obj)include
1202 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1203 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1204 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1205
1206SM850_config : unconfig
1207 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1208
1209spc1920_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1211
1212SPD823TS_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1214
1215stxxtc_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1217
1218svm_sc8xx_config: unconfig
1219 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1220
1221SXNI855T_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1223
1224# EMK MPC8xx based modules
1225TOP860_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1227
1228# Play some tricks for configuration selection
1229# Only 855 and 860 boards may come with FEC
1230# and only 823 boards may have LCD support
1231xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1232
1233FPS850L_config \
1234FPS860L_config \
1235NSCU_config \
1236TQM823L_config \
1237TQM823L_LCD_config \
1238TQM850L_config \
1239TQM855L_config \
1240TQM860L_config \
1241TQM862L_config \
1242TQM823M_config \
1243TQM850M_config \
1244TQM855M_config \
1245TQM860M_config \
1246TQM862M_config \
1247TQM866M_config \
1248TQM885D_config \
1249TK885D_config \
1250virtlab2_config: unconfig
1251 @mkdir -p $(obj)include
1252 @[ -z "$(findstring _LCD,$@)" ] || \
1253 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1254 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1255 $(XECHO) "... with LCD display" ; \
1256 }
1257 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1258
1259TTTech_config: unconfig
1260 @mkdir -p $(obj)include
1261 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1262 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1263 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1264
1265uc100_config : unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1267
1268v37_config: unconfig
1269 @mkdir -p $(obj)include
1270 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1271 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1272 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1273
1274wtk_config: unconfig
1275 @mkdir -p $(obj)include
1276 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1277 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1278 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1279
1280#########################################################################
1281## PPC4xx Systems
1282#########################################################################
1283xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1284
1285acadia_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1287
1288acadia_nand_config: unconfig
1289 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1290 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1291 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1292 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1293 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1294 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1295
1296ADCIOP_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1298
1299alpr_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1301
1302AP1000_config:unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1304
1305APC405_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1307
1308AR405_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1310
1311ASH405_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1313
1314bamboo_config: unconfig
1315 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1316
1317bamboo_nand_config: unconfig
1318 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1319 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1320 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1321 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1322 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1323 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1324
1325bubinga_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1327
1328CANBT_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1330
1331# Arches, Canyonlands & Glacier use different U-Boot images
1332arches_config \
1333canyonlands_config \
1334glacier_config: unconfig
1335 @mkdir -p $(obj)include
1336 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1337 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1338 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1339
1340canyonlands_nand_config \
1341glacier_nand_config: unconfig
1342 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1343 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1344 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1345 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1346 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1347 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1348 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1349 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1350
1351CATcenter_config \
1352CATcenter_25_config \
1353CATcenter_33_config: unconfig
1354 @mkdir -p $(obj)include
1355 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1356 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1357 @[ -z "$(findstring _25,$@)" ] || \
1358 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1359 $(XECHO) "SysClk = 25MHz" ; \
1360 }
1361 @[ -z "$(findstring _33,$@)" ] || \
1362 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1363 $(XECHO) "SysClk = 33MHz" ; \
1364 }
1365 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1366
1367CMS700_config: unconfig
1368 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1369
1370# Compact-Center & DevCon-Center use different U-Boot images
1371compactcenter_config \
1372devconcenter_config: unconfig
1373 @mkdir -p $(obj)include
1374 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1375 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1376 @$(MKCONFIG) -n $@ -a compactcenter ppc ppc4xx compactcenter gdsys
1377
1378CPCI2DP_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1380
1381CPCI405_config \
1382CPCI4052_config \
1383CPCI405DT_config \
1384CPCI405AB_config: unconfig
1385 @mkdir -p $(obj)board/esd/cpci405
1386 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1387
1388CPCIISER4_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1390
1391CRAYL1_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1393
1394csb272_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1396
1397csb472_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1399
1400DASA_SIM_config: unconfig
1401 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1402
1403dlvision_config: unconfig
1404 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dlvision gdsys
1405
1406DP405_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1408
1409DU405_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1411
1412DU440_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1414
1415ebony_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1417
1418ERIC_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1420
1421EXBITGEN_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1423
1424fx12mm_flash_config: unconfig
1425 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1426 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1427 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1428 > $(obj)board/avnet/fx12mm/config.tmp
1429 @echo "TEXT_BASE := 0xFFCB0000" \
1430 >> $(obj)board/avnet/fx12mm/config.tmp
1431 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1432
1433fx12mm_config: unconfig
1434 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1435 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1436 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1437 > $(obj)board/avnet/fx12mm/config.tmp
1438 @echo "TEXT_BASE := 0x03000000" \
1439 >> $(obj)board/avnet/fx12mm/config.tmp
1440 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1441
1442G2000_config: unconfig
1443 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1444
1445gdppc440etx_config: unconfig
1446 @$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
1447
1448hcu4_config: unconfig
1449 @mkdir -p $(obj)board/netstal/common
1450 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1451
1452hcu5_config: unconfig
1453 @mkdir -p $(obj)board/netstal/common
1454 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1455
1456HH405_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1458
1459HUB405_config: unconfig
1460 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1461
1462JSE_config: unconfig
1463 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1464
1465KAREF_config: unconfig
1466 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1467
1468katmai_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1470
1471# Kilauea & Haleakala images are identical (recognized via PVR)
1472kilauea_config \
1473haleakala_config: unconfig
1474 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1475
1476kilauea_nand_config \
1477haleakala_nand_config: unconfig
1478 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1479 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1480 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1481 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1482 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1483 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1484
1485korat_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1487
1488luan_config: unconfig
1489 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1490
1491lwmon5_config: unconfig
1492 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1493
1494makalu_config: unconfig
1495 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1496
1497mcu25_config: unconfig
1498 @mkdir -p $(obj)board/netstal/common
1499 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1500
1501METROBOX_config: unconfig
1502 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1503
1504MIP405_config: unconfig
1505 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1506
1507MIP405T_config: unconfig
1508 @mkdir -p $(obj)include
1509 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1510 @$(XECHO) "Enable subset config for MIP405T"
1511 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1512
1513ML2_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1515
1516ml300_config: unconfig
1517 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1518
1519ml507_flash_config: unconfig
1520 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1521 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1522 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1523 > $(obj)board/xilinx/ml507/config.tmp
1524 @echo "TEXT_BASE := 0xFE360000" \
1525 >> $(obj)board/xilinx/ml507/config.tmp
1526 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1527
1528ml507_config: unconfig
1529 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1530 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1531 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1532 > $(obj)board/xilinx/ml507/config.tmp
1533 @echo "TEXT_BASE := 0x04000000" \
1534 >> $(obj)board/xilinx/ml507/config.tmp
1535 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1536
1537neo_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1539
1540ocotea_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1542
1543OCRTC_config \
1544ORSG_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1546
1547p3p440_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1549
1550PCI405_config: unconfig
1551 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1552
1553pcs440ep_config: unconfig
1554 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1555
1556PIP405_config: unconfig
1557 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1558
1559PLU405_config: unconfig
1560 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1561
1562PMC405_config: unconfig
1563 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1564
1565PMC405DE_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405de esd
1567
1568PMC440_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1570
1571PPChameleonEVB_config \
1572PPChameleonEVB_BA_25_config \
1573PPChameleonEVB_ME_25_config \
1574PPChameleonEVB_HI_25_config \
1575PPChameleonEVB_BA_33_config \
1576PPChameleonEVB_ME_33_config \
1577PPChameleonEVB_HI_33_config: unconfig
1578 @mkdir -p $(obj)include
1579 @[ -z "$(findstring EVB_BA,$@)" ] || \
1580 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1581 $(XECHO) "... BASIC model" ; \
1582 }
1583 @[ -z "$(findstring EVB_ME,$@)" ] || \
1584 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1585 $(XECHO) "... MEDIUM model" ; \
1586 }
1587 @[ -z "$(findstring EVB_HI,$@)" ] || \
1588 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1589 $(XECHO) "... HIGH-END model" ; \
1590 }
1591 @[ -z "$(findstring _25,$@)" ] || \
1592 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1593 $(XECHO) "SysClk = 25MHz" ; \
1594 }
1595 @[ -z "$(findstring _33,$@)" ] || \
1596 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1597 $(XECHO) "SysClk = 33MHz" ; \
1598 }
1599 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1600
1601quad100hd_config: unconfig
1602 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1603
1604redwood_config: unconfig
1605 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1606
1607sbc405_config: unconfig
1608 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1609
1610sc3_config:unconfig
1611 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1612
1613sequoia_config \
1614rainier_config: unconfig
1615 @mkdir -p $(obj)include
1616 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1617 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1618 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1619
1620sequoia_nand_config \
1621rainier_nand_config: unconfig
1622 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1623 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1624 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1625 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1626 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1627 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1628 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1629 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1630
1631sequoia_ramboot_config \
1632rainier_ramboot_config: unconfig
1633 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1634 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1635 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1636 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1637 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1638 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1639 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1640 $(obj)board/amcc/sequoia/config.tmp
1641
1642taihu_config: unconfig
1643 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1644
1645taishan_config: unconfig
1646 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1647
1648v5fx30teval_config: unconfig
1649 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1650 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1651 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1652 > $(obj)board/avnet/v5fx30teval/config.tmp
1653 @echo "TEXT_BASE := 0x03000000" \
1654 >> $(obj)board/avnet/v5fx30teval/config.tmp
1655 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1656
1657v5fx30teval_flash_config: unconfig
1658 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1659 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1660 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1661 > $(obj)board/avnet/v5fx30teval/config.tmp
1662 @echo "TEXT_BASE := 0xFF1C0000" \
1663 >> $(obj)board/avnet/v5fx30teval/config.tmp
1664 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1665
1666VOH405_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1668
1669VOM405_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1671
1672W7OLMC_config \
1673W7OLMG_config: unconfig
1674 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1675
1676# Walnut & Sycamore images are identical (recognized via PVR)
1677walnut_config \
1678sycamore_config: unconfig
1679 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1680
1681WUH405_config: unconfig
1682 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1683
1684xilinx-ppc405-generic_flash_config: unconfig
1685 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1686 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1687 > $(obj)board/xilinx/ppc405-generic/config.tmp
1688 @echo "TEXT_BASE := 0xFE360000" \
1689 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1690 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1691
1692xilinx-ppc405-generic_config: unconfig
1693 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1694 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1695 > $(obj)board/xilinx/ppc405-generic/config.tmp
1696 @echo "TEXT_BASE := 0x04000000" \
1697 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1698 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1699
1700xilinx-ppc440-generic_flash_config: unconfig
1701 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1702 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1703 > $(obj)board/xilinx/ppc440-generic/config.tmp
1704 @echo "TEXT_BASE := 0xFE360000" \
1705 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1706 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1707
1708xilinx-ppc440-generic_config: unconfig
1709 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1710 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1711 > $(obj)board/xilinx/ppc440-generic/config.tmp
1712 @echo "TEXT_BASE := 0x04000000" \
1713 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1714 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1715
1716XPEDITE1000_config: unconfig
1717 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1000 xes
1718
1719yosemite_config \
1720yellowstone_config: unconfig
1721 @mkdir -p $(obj)include
1722 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1723 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1724 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1725
1726yucca_config: unconfig
1727 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1728
1729zeus_config: unconfig
1730 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1731
1732#########################################################################
1733## MPC8220 Systems
1734#########################################################################
1735
1736Alaska8220_config \
1737Yukon8220_config: unconfig
1738 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1739
1740sorcery_config: unconfig
1741 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1742
1743#########################################################################
1744## MPC824x Systems
1745#########################################################################
1746xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1747
1748A3000_config: unconfig
1749 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1750
1751barco_config: unconfig
1752 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1753
1754BMW_config: unconfig
1755 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1756
1757CPC45_config \
1758CPC45_ROMBOOT_config: unconfig
1759 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1760 @cd $(obj)include ; \
1761 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1762 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1763 $(XECHO) "... booting from 8-bit flash" ; \
1764 else \
1765 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1766 $(XECHO) "... booting from 64-bit flash" ; \
1767 fi; \
1768 echo "export CONFIG_BOOT_ROM" >> config.mk;
1769
1770CU824_config: unconfig
1771 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1772
1773debris_config: unconfig
1774 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1775
1776eXalion_config: unconfig
1777 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1778
1779HIDDEN_DRAGON_config: unconfig
1780 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1781
1782kvme080_config: unconfig
1783 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1784
1785# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1786# time permits.
1787#linkstation_HDLAN_config \
1788# Remove this line when HDLAN is fixed
1789linkstation_HGLAN_config: unconfig
1790 @mkdir -p $(obj)include
1791 @case $@ in \
1792 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1793 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1794 esac
1795 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1796
1797MOUSSE_config: unconfig
1798 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1799
1800MUSENKI_config: unconfig
1801 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1802
1803MVBLUE_config: unconfig
1804 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1805
1806OXC_config: unconfig
1807 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1808
1809PN62_config: unconfig
1810 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1811
1812Sandpoint8240_config: unconfig
1813 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1814
1815Sandpoint8245_config: unconfig
1816 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1817
1818sbc8240_config: unconfig
1819 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1820
1821SL8245_config: unconfig
1822 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1823
1824utx8245_config: unconfig
1825 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1826
1827#########################################################################
1828## MPC8260 Systems
1829#########################################################################
1830
1831atc_config: unconfig
1832 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1833
1834cogent_mpc8260_config: unconfig
1835 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1836
1837CPU86_config \
1838CPU86_ROMBOOT_config: unconfig
1839 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1840 @cd $(obj)include ; \
1841 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1842 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1843 $(XECHO) "... booting from 8-bit flash" ; \
1844 else \
1845 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1846 $(XECHO) "... booting from 64-bit flash" ; \
1847 fi; \
1848 echo "export CONFIG_BOOT_ROM" >> config.mk;
1849
1850CPU87_config \
1851CPU87_ROMBOOT_config: unconfig
1852 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1853 @cd $(obj)include ; \
1854 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1855 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1856 $(XECHO) "... booting from 8-bit flash" ; \
1857 else \
1858 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1859 $(XECHO) "... booting from 64-bit flash" ; \
1860 fi; \
1861 echo "export CONFIG_BOOT_ROM" >> config.mk;
1862
1863ep8248_config \
1864ep8248E_config : unconfig
1865 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1866
1867ep8260_config: unconfig
1868 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1869
1870ep82xxm_config: unconfig
1871 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1872
1873gw8260_config: unconfig
1874 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1875
1876hymod_config: unconfig
1877 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1878
1879IDS8247_config: unconfig
1880 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1881
1882IPHASE4539_config: unconfig
1883 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1884
1885ISPAN_config \
1886ISPAN_REVB_config: unconfig
1887 @mkdir -p $(obj)include
1888 @if [ "$(findstring _REVB_,$@)" ] ; then \
1889 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1890 fi
1891 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1892
1893mgcoge_config : unconfig
1894 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1895
1896MPC8260ADS_config \
1897MPC8260ADS_lowboot_config \
1898MPC8260ADS_33MHz_config \
1899MPC8260ADS_33MHz_lowboot_config \
1900MPC8260ADS_40MHz_config \
1901MPC8260ADS_40MHz_lowboot_config \
1902MPC8272ADS_config \
1903MPC8272ADS_lowboot_config \
1904PQ2FADS_config \
1905PQ2FADS_lowboot_config \
1906PQ2FADS-VR_config \
1907PQ2FADS-VR_lowboot_config \
1908PQ2FADS-ZU_config \
1909PQ2FADS-ZU_lowboot_config \
1910PQ2FADS-ZU_66MHz_config \
1911PQ2FADS-ZU_66MHz_lowboot_config \
1912 : unconfig
1913 @mkdir -p $(obj)include
1914 @mkdir -p $(obj)board/freescale/mpc8260ads
1915 $(if $(findstring PQ2FADS,$@), \
1916 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1917 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1918 $(if $(findstring MHz,$@), \
1919 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1920 $(if $(findstring VR,$@), \
1921 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1922 @[ -z "$(findstring lowboot_,$@)" ] || \
1923 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1924 $(XECHO) "... with lowboot configuration" ; \
1925 }
1926 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1927
1928MPC8266ADS_config: unconfig
1929 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1930
1931muas3001_dev_config \
1932muas3001_config : unconfig
1933 @mkdir -p $(obj)include
1934 @mkdir -p $(obj)board/muas3001
1935 @if [ "$(findstring dev,$@)" ] ; then \
1936 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1937 fi
1938 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1939
1940# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1941PM825_config \
1942PM825_ROMBOOT_config \
1943PM825_BIGFLASH_config \
1944PM825_ROMBOOT_BIGFLASH_config \
1945PM826_config \
1946PM826_ROMBOOT_config \
1947PM826_BIGFLASH_config \
1948PM826_ROMBOOT_BIGFLASH_config: unconfig
1949 @mkdir -p $(obj)include
1950 @mkdir -p $(obj)board/pm826
1951 @if [ "$(findstring PM825_,$@)" ] ; then \
1952 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1953 else \
1954 >$(obj)include/config.h ; \
1955 fi
1956 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1957 $(XECHO) "... booting from 8-bit flash" ; \
1958 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1959 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1960 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1961 $(XECHO) "... with 32 MB Flash" ; \
1962 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1963 fi; \
1964 else \
1965 $(XECHO) "... booting from 64-bit flash" ; \
1966 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1967 $(XECHO) "... with 32 MB Flash" ; \
1968 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1969 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1970 else \
1971 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1972 fi; \
1973 fi
1974 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1975
1976PM828_config \
1977PM828_PCI_config \
1978PM828_ROMBOOT_config \
1979PM828_ROMBOOT_PCI_config: unconfig
1980 @mkdir -p $(obj)include
1981 @mkdir -p $(obj)board/pm826
1982 @if [ "$(findstring _PCI_,$@)" ] ; then \
1983 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1984 $(XECHO) "... with PCI enabled" ; \
1985 fi
1986 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1987 $(XECHO) "... booting from 8-bit flash" ; \
1988 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1989 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1990 fi
1991 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1992
1993ppmc8260_config: unconfig
1994 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1995
1996Rattler8248_config \
1997Rattler_config: unconfig
1998 @mkdir -p $(obj)include
1999 $(if $(findstring 8248,$@), \
2000 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
2001 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
2002
2003RPXsuper_config: unconfig
2004 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
2005
2006rsdproto_config: unconfig
2007 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
2008
2009sacsng_config: unconfig
2010 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
2011
2012sbc8260_config: unconfig
2013 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
2014
2015SCM_config: unconfig
2016 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
2017
2018TQM8255_AA_config \
2019TQM8260_AA_config \
2020TQM8260_AB_config \
2021TQM8260_AC_config \
2022TQM8260_AD_config \
2023TQM8260_AE_config \
2024TQM8260_AF_config \
2025TQM8260_AG_config \
2026TQM8260_AH_config \
2027TQM8260_AI_config \
2028TQM8265_AA_config: unconfig
2029 @mkdir -p $(obj)include
2030 @case "$@" in \
2031 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
2032 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
2033 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
2034 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
2035 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
2036 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
2037 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
2038 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
2039 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
2040 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
2041 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
2042 esac; \
2043 if [ "$${CTYPE}" != "MPC8260" ] ; then \
2044 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
2045 fi; \
2046 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
2047 echo "... with $${CFREQ}MHz system clock" ; \
2048 if [ "$${CACHE}" = "yes" ] ; then \
2049 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
2050 $(XECHO) "... with L2 Cache support" ; \
2051 else \
2052 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
2053 $(XECHO) "... without L2 Cache support" ; \
2054 fi; \
2055 if [ "$${BMODE}" = "60x" ] ; then \
2056 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
2057 $(XECHO) "... with 60x Bus Mode" ; \
2058 else \
2059 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
2060 $(XECHO) "... without 60x Bus Mode" ; \
2061 fi
2062 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
2063
2064TQM8272_config: unconfig
2065 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
2066
2067VoVPN-GW_66MHz_config \
2068VoVPN-GW_100MHz_config: unconfig
2069 @mkdir -p $(obj)include
2070 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
2071 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
2072
2073ZPC1900_config: unconfig
2074 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
2075
2076#########################################################################
2077## Coldfire
2078#########################################################################
2079
2080M5208EVBE_config : unconfig
2081 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale
2082
2083M52277EVB_config \
2084M52277EVB_spansion_config \
2085M52277EVB_stmicro_config : unconfig
2086 @case "$@" in \
2087 M52277EVB_config) FLASH=SPANSION;; \
2088 M52277EVB_spansion_config) FLASH=SPANSION;; \
2089 M52277EVB_stmicro_config) FLASH=STMICRO;; \
2090 esac; \
2091 if [ "$${FLASH}" = "SPANSION" ] ; then \
2092 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2093 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2094 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
2095 $(XECHO) "... with SPANSION boot..." ; \
2096 fi; \
2097 if [ "$${FLASH}" = "STMICRO" ] ; then \
2098 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2099 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2100 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2101 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
2102 $(XECHO) "... with ST Micro boot..." ; \
2103 fi
2104 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
2105
2106M5235EVB_config \
2107M5235EVB_Flash16_config \
2108M5235EVB_Flash32_config: unconfig
2109 @case "$@" in \
2110 M5235EVB_config) FLASH=16;; \
2111 M5235EVB_Flash16_config) FLASH=16;; \
2112 M5235EVB_Flash32_config) FLASH=32;; \
2113 esac; \
2114 if [ "$${FLASH}" != "16" ] ; then \
2115 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
2116 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2117 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2118 else \
2119 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2120 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2121 fi
2122 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
2123
2124M5249EVB_config : unconfig
2125 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2126
2127M5253DEMO_config : unconfig
2128 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
2129
2130M5253EVBE_config : unconfig
2131 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2132
2133cobra5272_config : unconfig
2134 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
2135
2136EB+MCF-EV123_config : unconfig
2137 @mkdir -p $(obj)include
2138 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2139 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2140 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2141
2142EB+MCF-EV123_internal_config : unconfig
2143 @mkdir -p $(obj)include
2144 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2145 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2146 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2147
2148idmr_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2150
2151M5271EVB_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2153
2154M5272C3_config : unconfig
2155 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2156
2157M5275EVB_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2159
2160M5282EVB_config : unconfig
2161 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2162
2163M53017EVB_config : unconfig
2164 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2165
2166M5329AFEE_config \
2167M5329BFEE_config : unconfig
2168 @case "$@" in \
2169 M5329AFEE_config) NAND=0;; \
2170 M5329BFEE_config) NAND=16;; \
2171 esac; \
2172 if [ "$${NAND}" != "0" ] ; then \
2173 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2174 fi
2175 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2176
2177M5373EVB_config : unconfig
2178 @case "$@" in \
2179 M5373EVB_config) NAND=16;; \
2180 esac; \
2181 if [ "$${NAND}" != "0" ] ; then \
2182 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2183 fi
2184 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2185
2186M54451EVB_config \
2187M54451EVB_stmicro_config : unconfig
2188 @case "$@" in \
2189 M54451EVB_config) FLASH=NOR;; \
2190 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2191 esac; \
2192 if [ "$${FLASH}" = "NOR" ] ; then \
2193 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2194 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2195 $(XECHO) "... with NOR boot..." ; \
2196 fi; \
2197 if [ "$${FLASH}" = "STMICRO" ] ; then \
2198 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2199 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2200 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2201 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2202 $(XECHO) "... with ST Micro boot..." ; \
2203 fi; \
2204 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2205 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2206
2207M54455EVB_config \
2208M54455EVB_atmel_config \
2209M54455EVB_intel_config \
2210M54455EVB_a33_config \
2211M54455EVB_a66_config \
2212M54455EVB_i33_config \
2213M54455EVB_i66_config \
2214M54455EVB_stm33_config : unconfig
2215 @case "$@" in \
2216 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2217 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2218 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2219 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2220 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2221 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2222 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2223 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2224 esac; \
2225 if [ "$${FLASH}" = "INTEL" ] ; then \
2226 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2227 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2228 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2229 $(XECHO) "... with INTEL boot..." ; \
2230 fi; \
2231 if [ "$${FLASH}" = "ATMEL" ] ; then \
2232 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2233 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2234 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2235 $(XECHO) "... with ATMEL boot..." ; \
2236 fi; \
2237 if [ "$${FLASH}" = "STMICRO" ] ; then \
2238 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2239 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2240 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2241 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2242 $(XECHO) "... with ST Micro boot..." ; \
2243 fi; \
2244 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2245 $(XECHO) "... with $${FREQ}Hz input clock"
2246 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2247
2248M5475AFE_config \
2249M5475BFE_config \
2250M5475CFE_config \
2251M5475DFE_config \
2252M5475EFE_config \
2253M5475FFE_config \
2254M5475GFE_config : unconfig
2255 @case "$@" in \
2256 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2257 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2258 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2259 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2260 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2261 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2262 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2263 esac; \
2264 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2265 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2266 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2267 if [ "$${RAM1}" != "0" ] ; then \
2268 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2269 fi; \
2270 if [ "$${CODE}" != "0" ] ; then \
2271 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2272 fi; \
2273 if [ "$${VID}" == "1" ] ; then \
2274 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2275 fi; \
2276 if [ "$${USB}" == "1" ] ; then \
2277 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2278 fi
2279 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2280
2281M5485AFE_config \
2282M5485BFE_config \
2283M5485CFE_config \
2284M5485DFE_config \
2285M5485EFE_config \
2286M5485FFE_config \
2287M5485GFE_config \
2288M5485HFE_config : unconfig
2289 @case "$@" in \
2290 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2291 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2292 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2293 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2294 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2295 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2296 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2297 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2298 esac; \
2299 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2300 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2301 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2302 if [ "$${RAM1}" != "0" ] ; then \
2303 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2304 fi; \
2305 if [ "$${CODE}" != "0" ] ; then \
2306 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2307 fi; \
2308 if [ "$${VID}" == "1" ] ; then \
2309 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2310 fi; \
2311 if [ "$${USB}" == "1" ] ; then \
2312 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2313 fi
2314 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2315
2316TASREG_config : unconfig
2317 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2318
2319#########################################################################
2320## MPC83xx Systems
2321#########################################################################
2322
2323kmeter1_config: unconfig
2324 @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2325
2326MPC8313ERDB_33_config \
2327MPC8313ERDB_66_config \
2328MPC8313ERDB_NAND_33_config \
2329MPC8313ERDB_NAND_66_config: unconfig
2330 @mkdir -p $(obj)include
2331 @mkdir -p $(obj)board/freescale/mpc8313erdb
2332 @if [ "$(findstring _33_,$@)" ] ; then \
2333 $(XECHO) -n "...33M ..." ; \
2334 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2335 fi ; \
2336 if [ "$(findstring _66_,$@)" ] ; then \
2337 $(XECHO) -n "...66M..." ; \
2338 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2339 fi ; \
2340 if [ "$(findstring _NAND_,$@)" ] ; then \
2341 $(XECHO) -n "...NAND..." ; \
2342 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2343 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2344 fi ;
2345 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2346 @if [ "$(findstring _NAND_,$@)" ] ; then \
2347 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2348 fi ;
2349
2350MPC8315ERDB_config: unconfig
2351 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2352
2353MPC8323ERDB_config: unconfig
2354 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2355
2356MPC832XEMDS_config \
2357MPC832XEMDS_HOST_33_config \
2358MPC832XEMDS_HOST_66_config \
2359MPC832XEMDS_SLAVE_config \
2360MPC832XEMDS_ATM_config: unconfig
2361 @mkdir -p $(obj)include
2362 @if [ "$(findstring _HOST_,$@)" ] ; then \
2363 $(XECHO) -n "... PCI HOST " ; \
2364 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2365 fi ; \
2366 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2367 $(XECHO) "...PCI SLAVE 66M" ; \
2368 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2369 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2370 fi ; \
2371 if [ "$(findstring _33_,$@)" ] ; then \
2372 $(XECHO) -n "...33M ..." ; \
2373 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2374 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2375 fi ; \
2376 if [ "$(findstring _66_,$@)" ] ; then \
2377 $(XECHO) -n "...66M..." ; \
2378 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2379 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2380 fi ; \
2381 if [ "$(findstring _ATM_,$@)" ] ; then \
2382 $(XECHO) -n "...ATM..." ; \
2383 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2384 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2385 fi ;
2386 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2387
2388MPC8349EMDS_config: unconfig
2389 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2390
2391MPC8349ITX_config \
2392MPC8349ITX_LOWBOOT_config \
2393MPC8349ITXGP_config: unconfig
2394 @mkdir -p $(obj)include
2395 @mkdir -p $(obj)board/freescale/mpc8349itx
2396 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2397 @if [ "$(findstring GP,$@)" ] ; then \
2398 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2399 fi
2400 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2401 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2402 fi
2403 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2404
2405MPC8360EMDS_config \
2406MPC8360EMDS_HOST_33_config \
2407MPC8360EMDS_HOST_66_config \
2408MPC8360EMDS_SLAVE_config \
2409MPC8360EMDS_ATM_config: unconfig
2410 @mkdir -p $(obj)include
2411 @if [ "$(findstring _HOST_,$@)" ] ; then \
2412 $(XECHO) -n "... PCI HOST " ; \
2413 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2414 fi ; \
2415 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2416 $(XECHO) "...PCI SLAVE 66M" ; \
2417 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2418 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2419 fi ; \
2420 if [ "$(findstring _33_,$@)" ] ; then \
2421 $(XECHO) -n "...33M ..." ; \
2422 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2423 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2424 fi ; \
2425 if [ "$(findstring _66_,$@)" ] ; then \
2426 $(XECHO) -n "...66M..." ; \
2427 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2428 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2429 fi ; \
2430 if [ "$(findstring _ATM_,$@)" ] ; then \
2431 $(XECHO) -n "...ATM..." ; \
2432 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2433 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2434 fi ;
2435 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2436
2437MPC8360ERDK_33_config \
2438MPC8360ERDK_66_config \
2439MPC8360ERDK_config: unconfig
2440 @mkdir -p $(obj)include
2441 @if [ "$(findstring _33_,$@)" ] ; then \
2442 $(XECHO) -n "... CLKIN 33MHz " ; \
2443 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2444 fi ;
2445 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2446
2447MPC837XEMDS_config \
2448MPC837XEMDS_HOST_config: unconfig
2449 @mkdir -p $(obj)include
2450 @if [ "$(findstring _HOST_,$@)" ] ; then \
2451 $(XECHO) -n "... PCI HOST " ; \
2452 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2453 fi ;
2454 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2455
2456MPC837XERDB_config: unconfig
2457 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2458
2459MVBLM7_config: unconfig
2460 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2461
2462sbc8349_config \
2463sbc8349_PCI_33_config \
2464sbc8349_PCI_66_config: unconfig
2465 @mkdir -p $(obj)include
2466 @if [ "$(findstring _PCI_,$@)" ] ; then \
2467 $(XECHO) -n "... PCI HOST at " ; \
2468 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2469 fi ; \
2470 if [ "$(findstring _33_,$@)" ] ; then \
2471 $(XECHO) -n "33MHz... " ; \
2472 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2473 fi ; \
2474 if [ "$(findstring _66_,$@)" ] ; then \
2475 $(XECHO) -n "66MHz... " ; \
2476 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2477 fi ;
2478 @$(MKCONFIG) -a sbc8349 ppc mpc83xx sbc8349
2479
2480SIMPC8313_LP_config \
2481SIMPC8313_SP_config: unconfig
2482 @mkdir -p $(obj)include
2483 @mkdir -p $(obj)board/sheldon/simpc8313
2484 @if [ "$(findstring _LP_,$@)" ] ; then \
2485 $(XECHO) -n "...Large Page NAND..." ; \
2486 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
2487 fi ; \
2488 if [ "$(findstring _SP_,$@)" ] ; then \
2489 $(XECHO) -n "...Small Page NAND..." ; \
2490 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
2491 fi ;
2492 @$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
2493 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2494
2495TQM834x_config: unconfig
2496 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2497
2498vme8349_config: unconfig
2499 @$(MKCONFIG) $(@:_config=) ppc mpc83xx vme8349 esd
2500
2501#########################################################################
2502## MPC85xx Systems
2503#########################################################################
2504
2505ATUM8548_config: unconfig
2506 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2507
2508MPC8536DS_config: unconfig
2509 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2510
2511MPC8540ADS_config: unconfig
2512 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2513
2514MPC8540EVAL_config \
2515MPC8540EVAL_33_config \
2516MPC8540EVAL_66_config \
2517MPC8540EVAL_33_slave_config \
2518MPC8540EVAL_66_slave_config: unconfig
2519 @mkdir -p $(obj)include
2520 @if [ "$(findstring _33_,$@)" ] ; then \
2521 $(XECHO) "... 33 MHz PCI" ; \
2522 else \
2523 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2524 $(XECHO) "... 66 MHz PCI" ; \
2525 fi ; \
2526 if [ "$(findstring _slave_,$@)" ] ; then \
2527 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2528 $(XECHO) " slave" ; \
2529 else \
2530 $(XECHO) " host" ; \
2531 fi
2532 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2533
2534MPC8560ADS_config: unconfig
2535 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2536
2537MPC8541CDS_legacy_config \
2538MPC8541CDS_config: unconfig
2539 @mkdir -p $(obj)include
2540 @if [ "$(findstring _legacy_,$@)" ] ; then \
2541 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2542 $(XECHO) "... legacy" ; \
2543 fi
2544 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2545
2546MPC8544DS_config: unconfig
2547 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2548
2549MPC8548CDS_legacy_config \
2550MPC8548CDS_config: unconfig
2551 @mkdir -p $(obj)include
2552 @if [ "$(findstring _legacy_,$@)" ] ; then \
2553 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2554 $(XECHO) "... legacy" ; \
2555 fi
2556 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2557
2558MPC8555CDS_legacy_config \
2559MPC8555CDS_config: unconfig
2560 @mkdir -p $(obj)include
2561 @if [ "$(findstring _legacy_,$@)" ] ; then \
2562 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2563 $(XECHO) "... legacy" ; \
2564 fi
2565 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2566
2567MPC8568MDS_config: unconfig
2568 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2569
2570MPC8569MDS_config: unconfig
2571 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
2572
2573MPC8572DS_36BIT_config \
2574MPC8572DS_config: unconfig
2575 @mkdir -p $(obj)include
2576 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2577 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2578 $(XECHO) "... enabling 36-bit physical addressing." ; \
2579 fi
2580 @$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2581
2582P2020DS_36BIT_config \
2583P2020DS_config: unconfig
2584 @mkdir -p $(obj)include
2585 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2586 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2587 $(XECHO) "... enabling 36-bit physical addressing." ; \
2588 fi
2589 @$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale
2590
2591PM854_config: unconfig
2592 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2593
2594PM856_config: unconfig
2595 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2596
2597sbc8540_config \
2598sbc8540_33_config \
2599sbc8540_66_config: unconfig
2600 @mkdir -p $(obj)include
2601 @if [ "$(findstring _66_,$@)" ] ; then \
2602 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2603 $(XECHO) "... 66 MHz PCI" ; \
2604 else \
2605 $(XECHO) "... 33 MHz PCI" ; \
2606 fi
2607 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2608
2609sbc8548_config: unconfig
2610 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2611
2612sbc8560_config \
2613sbc8560_33_config \
2614sbc8560_66_config: unconfig
2615 @mkdir -p $(obj)include
2616 @if [ "$(findstring _66_,$@)" ] ; then \
2617 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2618 $(XECHO) "... 66 MHz PCI" ; \
2619 else \
2620 $(XECHO) "... 33 MHz PCI" ; \
2621 fi
2622 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2623
2624socrates_config: unconfig
2625 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2626
2627stxgp3_config: unconfig
2628 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2629
2630stxssa_config \
2631stxssa_4M_config: unconfig
2632 @mkdir -p $(obj)include
2633 @if [ "$(findstring _4M_,$@)" ] ; then \
2634 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2635 $(XECHO) "... with 4 MiB flash memory" ; \
2636 fi
2637 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2638
2639TQM8540_config \
2640TQM8541_config \
2641TQM8548_config \
2642TQM8548_AG_config \
2643TQM8548_BE_config \
2644TQM8555_config \
2645TQM8560_config: unconfig
2646 @mkdir -p $(obj)include
2647 @BTYPE=$(@:_config=); \
2648 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2649 $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2650 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2651 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2652 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2653 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
2654 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2655 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2656
2657XPEDITE5200_config: unconfig
2658 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
2659
2660XPEDITE5370_config: unconfig
2661 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2662
2663#########################################################################
2664## MPC86xx Systems
2665#########################################################################
2666
2667MPC8610HPCD_config: unconfig
2668 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2669
2670MPC8641HPCN_36BIT_config \
2671MPC8641HPCN_config: unconfig
2672 @mkdir -p $(obj)include
2673 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2674 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2675 $(XECHO) "... enabling 36-bit physical addressing." ; \
2676 fi
2677 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2678
2679sbc8641d_config: unconfig
2680 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2681
2682XPEDITE5170_config: unconfig
2683 @$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes
2684
2685#########################################################################
Ke Dong286f5142012-09-11 00:15:54 -07002686## Marvell KW2 based Socs
2687#########################################################################
2688
2689db88f6500bp_config \
2690rd88f6510sfu_config \
2691rd88f6560gw_config \
2692db88f6560pcac_config \
2693rd88f6530mdu_config \
2694db88f6601bp_config \
2695rd88f6601mc_config \
Sean Howarthb17130e2013-03-07 14:45:46 -08002696gflt200_config \
John Newlinac5fab52013-05-28 10:18:42 -07002697gflt110_config \
Ke Dong286f5142012-09-11 00:15:54 -07002698kw2_test:
2699 @$(MAKE) -s mv_kw2 RULE=$@
2700mv_kw2: unconfig
2701 @mkdir -p $(obj)include
2702 @cp board/mv_feroceon/config_kw2/config_def.mk board/mv_feroceon/config_kw2/config.mk;
2703
2704 @$(MKCONFIG) -a $(@:_config=) arm arm926ejs config_kw2 mv_feroceon feroceon;
2705 @echo "MV_OUTPUT = $(RULE:_config=)" >> $(obj)include/config.mk;
2706#=======================
2707# Soc Compilation flag
2708#=======================
2709 @if [ "$(findstring 6500,$(RULE))" ] ; then\
2710 echo "#define MV88F6500" > $(obj)include/config.h ; \
2711 echo " * Configured for MV88F6500"; \
2712 elif [ "$(findstring 6510,$(RULE))" ] ; then \
2713 echo "#define MV88F6510" > $(obj)include/config.h ; \
2714 echo " * Configured for MV88F6510"; \
2715 elif [ "$(findstring 6560,$(RULE))" ] ; then \
2716 echo "#define MV88F6560" > $(obj)include/config.h ; \
2717 echo " * Configured for MV88F6560"; \
2718 elif [ "$(findstring 6530,$(RULE))" ] ; then \
2719 echo "#define MV88F6530" > $(obj)include/config.h ; \
2720 echo " * Configured for MV88F6530"; \
2721 elif [ "$(findstring 6601,$(RULE))" ] ; then \
2722 echo "#define MV88F6601" > $(obj)include/config.h ; \
2723 echo " * Configured for MV88F6601"; \
2724 elif [ "$(findstring test,$(RULE))" ] ; then \
2725 echo "#define MV88F6192" > $(obj)include/config.h ; \
2726 echo " * Configured for MV88F6192"; \
Sean Howarthb17130e2013-03-07 14:45:46 -08002727 elif [ "$(findstring gflt200,$(RULE))" ] ; then \
2728 echo "#define MV88F6601" > $(obj)include/config.h ; \
2729 echo " * Configured for MV88F6601"; \
John Newlinac5fab52013-05-28 10:18:42 -07002730 elif [ "$(findstring gflt110,$(RULE))" ] ; then \
2731 echo "#define MV88F6601" > $(obj)include/config.h ; \
2732 echo " * Configured for MV88F6601"; \
Ke Dong286f5142012-09-11 00:15:54 -07002733 else \
2734 echo " * Error Marvell SoC not configured!"; \
2735 fi;
2736#=======================
2737# Board Compilation flags
2738#=======================
2739 @if [ "$(findstring db88f6500bp_config,$(RULE))" ] ; then\
2740 echo "#define DB_88F6500" >> $(obj)include/config.h ; \
2741 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2742 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2743 if [ x$(DDR3) == x1 ]; then \
2744 echo "MV_DDR_FREQ=533db_kw2" >> $(obj)include/config.mk ;\
2745 else \
2746 echo "MV_DDR_FREQ=400db_kw2" >> $(obj)include/config.mk ;\
2747 fi; \
2748 echo "NAND_TECH=M" >> $(obj)include/config.mk ; \
2749 echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \
2750 echo " * Configured for DB-88F6500-BP"; \
2751 elif [ "$(findstring rd88f6510sfu_config,$(RULE))" ] ; then \
2752 echo "#define RD_88F6510" >> $(obj)include/config.h ; \
2753 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2754 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2755 echo "MV_DDR_FREQ=266rd_kw2" >> $(obj)include/config.mk ; \
2756 echo "NAND_TECH=M" >> $(obj)include/config.mk ; \
2757 echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \
2758 echo " * Configured for RD-88F6510-SFU"; \
2759 elif [ "$(findstring rd88f6560gw_config,$(RULE))" ] ; then \
2760 echo "#define RD_88F6560" >> $(obj)include/config.h ; \
2761 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2762 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2763 echo "MV_DDR_FREQ=533rd_kw2" >> $(obj)include/config.mk ; \
2764 echo "NAND_TECH=M" >> $(obj)include/config.mk ; \
2765 echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \
2766 echo " * Configured for RD-88F6560-GW"; \
2767 elif [ "$(findstring db88f6560pcac_config,$(RULE))" ] ; then \
2768 echo "#define DB_88F6560_PCAC" >> $(obj)include/config.h ; \
2769 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2770 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2771 echo "#define MV_PEX_END_POINT_MODE" >> $(obj)include/config.h ;\
2772 echo "MV_DDR_FREQ=533db_pcac_kw2" >> $(obj)include/config.mk ; \
2773 echo "NAND_TECH=M" >> $(obj)include/config.mk ; \
2774 echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \
2775 echo " * Configured for DB-88F6560-PCAC"; \
2776 elif [ "$(findstring rd88f6530mdu_config,$(RULE))" ] ; then \
2777 echo "#define RD_88F6530" >> $(obj)include/config.h ; \
2778 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2779 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2780 echo "MV_DDR_FREQ=400rdmdu_kw2" >> $(obj)include/config.mk ; \
2781 echo "NAND_TECH=S" >> $(obj)include/config.mk ; \
2782 echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \
2783 echo " * Configured for RD-88F6530-MDU"; \
2784 elif [ "$(findstring db88f6601bp_config,$(RULE))" ] ; then\
2785 echo "#define DB_88F6601" >> $(obj)include/config.h ; \
2786 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2787 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2788 echo "MV_DDR_FREQ=400db_A-MC" >> $(obj)include/config.mk ;\
2789 echo " * Configured for DB-88F6601-BP"; \
2790 elif [ "$(findstring rd88f6601mc_config,$(RULE))" ] ; then\
2791 echo "#define RD_88F6601" >> $(obj)include/config.h ; \
2792 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2793 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2794 echo "MV_DDR_FREQ=400rd_A-MC" >> $(obj)include/config.mk ;\
2795 echo " * Configured for RD-88F6601-MC"; \
2796 elif [ "$(findstring kw2_test,$(RULE))" ] ; then \
2797 echo "#define DB_88F6192A" >> $(obj)include/config.h ; \
2798 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2799 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
2800 echo "MV_DDR_FREQ=400rd_kw2" >> $(obj)include/config.mk ; \
2801 echo " * Configured for DB-88F6192A-BP"; \
Sean Howarthb17130e2013-03-07 14:45:46 -08002802 elif [ "$(findstring gflt200_config,$(RULE))" ] ; then\
2803 echo "#define GFLT200" >> $(obj)include/config.h ; \
2804 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2805 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
Sean Howarth5b1bce02013-04-12 18:17:50 -07002806 echo "MV_DDR_FREQ=256mb_400mhz" >> $(obj)include/config.mk ;\
Sean Howarthb17130e2013-03-07 14:45:46 -08002807 echo " * Configured for GFLT200"; \
John Newlinac5fab52013-05-28 10:18:42 -07002808 elif [ "$(findstring gflt110_config,$(RULE))" ] ; then\
2809 echo "#define GFLT110" >> $(obj)include/config.h ; \
2810 echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \
2811 echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \
John Newlinafaa4122013-06-10 10:02:01 -07002812 echo "MV_DDR_FREQ=256mb_400mhz_gflt110" >> $(obj)include/config.mk ;\
John Newlinac5fab52013-05-28 10:18:42 -07002813 echo " * Configured for GFLT110"; \
Ke Dong286f5142012-09-11 00:15:54 -07002814 else \
2815 echo " * Error no board was configured"; \
2816 fi;
2817
2818#==============================
2819# Little Endian Cross Compiler
2820#==============================
2821ifeq ($(BE),)
2822 @echo " * Little Endian byte ordering ";
2823endif
2824#==============================
2825# Big Endian Cross Compiler
2826#==============================
2827ifeq ($(BE),1)
2828 @echo "#define __BE" >> include/config.h;
2829 @echo "#define MV_KW2_BE_ETH_WA" >> include/config.h;
2830 @echo "BIG_ENDIAN =y" >> include/config.mk;
2831 @echo "LDFLAGS += -EB" >> include/config.mk;
2832 @echo " * Big Endian byte ordering ";
2833endif
2834
2835#================
2836# CPU DDR Access
2837#================
2838 @if [ x$(DDR_XBAR) == x1 ]; then \
2839 echo "DDR_ACCESS=_xbar" >> $(obj)include/config.mk ; \
2840 echo " * CPU DRAM access through XBAR " ; \
2841 fi;
2842
2843#=================
2844# DDR3 support
2845#=================
2846ifeq ($(DDR3),1)
2847 @echo "DDR_TYPE=ddr3" >> $(obj)include/config.mk;
2848 @echo " * DDR3 Support";
2849else
2850 @echo "DDR_TYPE=ddr2" >> $(obj)include/config.mk;
2851 @echo " * DDR2 Support";
2852endif
2853
2854#=================
2855# USB support
2856#=================
2857ifeq ($(USB),1)
2858 @echo "#define MV_USB" >> $(obj)include/config.h;
2859 @echo " * With USB support";
2860endif
2861
2862#=================
2863# NAND support
2864#=================
2865# Boot from NAND support
2866ifeq ($(NANDBOOT),1)
2867 @echo " * Boot from NAND support";
2868 @echo "#define MV_NAND_BOOT" >> $(obj)include/config.h ;
2869 @echo "NAND_BOOT = y" >> $(obj)include/config.mk ;
2870 cp board/mv_feroceon/config_kw2/u-boot-sec256k.lds cpu/arm926ejs/u-boot.lds;
2871endif
2872
2873ifeq ($(NAND),1)
2874 @echo " * NAND support";
2875 @echo "#define MV_NAND" >> $(obj)include/config.h;
2876
2877##NFC @echo " + NAND PIO Mode support";
2878##NFC @echo "#define MV_NAND_PIO_MODE" >> $(obj)include/config.h;
2879##NFC @echo " + 1 CS NAND support" ;
2880##NFC @echo "#define MV_NAND_1CS_MODE" >> $(obj)include/config.h ;
2881##NFC @echo " + 4 bit ECC NAND support" ;
2882##NFC @echo "#define MV_NAND_4BIT_MODE" >> $(obj)include/config.h ;
2883
2884# NAND Small Page support
2885
2886ifeq ($(NANDSP),1)
2887 @echo " * Small Page NAND support";
2888 @echo "#define MV_SMALL_PAGE" >> $(obj)include/config.h ;
2889 @echo "CONFIG_NAND_SP = y" >> $(obj)include/config.mk
2890else
2891 @echo " * Large Page NAND support";
2892 @echo "#define MV_LARGE_PAGE" >> $(obj)include/config.h ;
2893 @echo "CONFIG_NAND_LP = y" >> $(obj)include/config.mk
2894endif
2895
2896#=================
2897# NFC support
2898#=================
2899ifeq ($(NFC),1)
2900 @echo " * NAND Flash Controller Support";
2901 @echo "#define CONFIG_MV_NFC_SUPPORT" >> $(obj)include/config.h
2902else
2903 @echo " * Legacy NAND Flash Controller Support";
2904 @echo "#define CONFIG_MV_LEGACY_NAND" >> $(obj)include/config.h
2905endif
2906endif
2907
2908#=================
2909# SPI support
2910#=================
2911ifeq ($(SPI),1)
2912 @echo " * SPI support";
2913 @echo "#define MV_SEC_256K" >> $(obj)include/config.h ;
2914 @echo "#define MV_SPI" >> $(obj)include/config.h;
2915endif
2916# Boot from SPI support
2917ifeq ($(SPIBOOT),1)
2918 @echo " * Boot from SPI support";
2919 @echo "#define MV_SEC_256K" >> $(obj)include/config.h ;
2920 @echo "#define MV_SPI" >> $(obj)include/config.h;
2921 @echo "#define MV_SPI_BOOT" >> $(obj)include/config.h;
2922 @echo "SPI_BOOT = y" >> $(obj)include/config.mk;
2923 cp board/mv_feroceon/config_kw2/u-boot-sec256k.lds cpu/arm926ejs/u-boot.lds;
2924endif
2925
2926#=================
2927# NOR support
2928#=================
2929# Boot from NOR support
2930ifeq ($(NORBOOT),1)
2931 @echo " * Boot from NOR support";
2932 @echo "#define MV_SEC_128K" >> $(obj)include/config.h ;
2933 @echo "#define MV_NOR_BOOT" >> $(obj)include/config.h;
2934 @echo "NOR_BOOT = y" >> $(obj)include/config.mk;
2935 cp board/mv_feroceon/config_kw2/u-boot-sec128k.lds cpu/arm926ejs/u-boot.lds;
2936endif
2937ifeq ($(NOR),1)
2938 @echo " * NOR support";
2939 @echo "#define MV_SEC_128K" >> $(obj)include/config.h ;
2940 @echo "#define MV_NOR" >> $(obj)include/config.h;
2941endif
2942
2943#=================
Ke Dong192fe0b2012-10-01 23:38:59 -07002944# LARGEKERNEL support
2945#=================
2946ifeq ($(LARGEKERNEL),1)
2947 @echo " * LARGEKERNEL support";
2948 @echo "#define LARGEKERNEL" >> $(obj)include/config.h ;
2949endif
2950
2951#=================
Ke Dong286f5142012-09-11 00:15:54 -07002952# BOOTROM support
2953#=================
2954ifeq ($(BOOTROM),1)
2955 @echo " * BOOTROM support";
2956 @echo "#define MV_BOOTROM" >> $(obj)include/config.h ;
2957ifeq ($(NBOOT),1)
2958 @cp board/mv_feroceon/config_kw2/u-boot-sec64k-header-nand.lds board/mv_feroceon/config_kw2/u-boot.lds;
2959else
2960 @cp board/mv_feroceon/config_kw2/u-boot-sec64k-header.lds board/mv_feroceon/config_kw2/u-boot.lds;
2961endif
2962endif
2963
Sean Howarth4a3bbc42013-04-24 14:47:50 -07002964 @if [ "$(findstring gflt200_config,$(RULE))" ] ; then \
2965 echo "#include <configs/gflt200.h>" >> $(obj)include/config.h ; \
John Newlinac5fab52013-05-28 10:18:42 -07002966 elif [ "$(findstring gflt110_config,$(RULE))" ] ; then \
2967 echo "#include <configs/gflt110.h>" >> $(obj)include/config.h ; \
Sean Howarth4a3bbc42013-04-24 14:47:50 -07002968 else \
2969 echo "#include <configs/mv_kw2.h>" >> $(obj)include/config.h ; \
2970 fi ;
Ke Dong286f5142012-09-11 00:15:54 -07002971
2972#=================
2973# JFFS2 support
2974#=================
2975ifeq ($(JFFS2),1)
2976 @echo " * JFFS2 support";
2977 @echo "#define MV_JFFS2" >> $(obj)include/config.h
2978 @echo "MV_JFFS2_SUPPORT = y" >> $(obj)include/config.mk
2979endif
2980
2981#########################################################################
2982## END of Marvell KW2 based Socs
2983#########################################################################
2984#########################################################################
Ke Dong0e9e0c92012-09-11 00:12:54 -07002985## 74xx/7xx Systems
2986#########################################################################
2987
2988AmigaOneG3SE_config: unconfig
2989 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2990
2991BAB7xx_config: unconfig
2992 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2993
2994CPCI750_config: unconfig
2995 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2996
2997DB64360_config: unconfig
2998 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2999
3000DB64460_config: unconfig
3001 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
3002
3003ELPPC_config: unconfig
3004 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
3005
3006EVB64260_config \
3007EVB64260_750CX_config: unconfig
3008 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
3009
3010mpc7448hpc2_config: unconfig
3011 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
3012
3013P3G4_config: unconfig
3014 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
3015
3016p3m750_config \
3017p3m7448_config: unconfig
3018 @mkdir -p $(obj)include
3019 @if [ "$(findstring 750_,$@)" ] ; then \
3020 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
3021 else \
3022 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
3023 fi
3024 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
3025
3026PCIPPC2_config \
3027PCIPPC6_config: unconfig
3028 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
3029
3030ppmc7xx_config: unconfig
3031 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
3032
3033ZUMA_config: unconfig
3034 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
3035
3036#========================================================================
3037# ARM
3038#========================================================================
3039#########################################################################
3040## StrongARM Systems
3041#########################################################################
3042
3043assabet_config : unconfig
3044 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
3045
3046dnp1110_config : unconfig
3047 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
3048
3049gcplus_config : unconfig
3050 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
3051
3052lart_config : unconfig
3053 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
3054
3055shannon_config : unconfig
3056 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
3057
3058#########################################################################
3059## ARM92xT Systems
3060#########################################################################
3061
3062#########################################################################
3063## Atmel AT91RM9200 Systems
3064#########################################################################
3065
3066at91rm9200dk_config : unconfig
3067 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
3068
3069at91rm9200ek_config : unconfig
3070 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
3071
3072cmc_pu2_config : unconfig
3073 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
3074
3075csb637_config : unconfig
3076 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
3077
3078kb9202_config : unconfig
3079 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
3080
3081m501sk_config : unconfig
3082 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
3083
3084mp2usb_config : unconfig
3085 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
3086
3087#########################################################################
3088## Atmel ARM926EJ-S Systems
3089#########################################################################
3090
3091afeb9260_config: unconfig
3092 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
3093
3094at91cap9adk_config : unconfig
3095 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
3096
3097at91sam9260ek_nandflash_config \
3098at91sam9260ek_dataflash_cs0_config \
3099at91sam9260ek_dataflash_cs1_config \
3100at91sam9260ek_config \
3101at91sam9g20ek_nandflash_config \
3102at91sam9g20ek_dataflash_cs0_config \
3103at91sam9g20ek_dataflash_cs1_config \
3104at91sam9g20ek_config : unconfig
3105 @mkdir -p $(obj)include
3106 @if [ "$(findstring 9g20,$@)" ] ; then \
3107 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
3108 $(XECHO) "... 9G20 Variant" ; \
3109 else \
3110 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
3111 fi;
3112 @if [ "$(findstring _nandflash,$@)" ] ; then \
3113 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3114 $(XECHO) "... with environment variable in NAND FLASH" ; \
3115 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
3116 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
3117 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3118 else \
3119 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
3120 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
3121 fi;
3122 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
3123
3124at91sam9xeek_nandflash_config \
3125at91sam9xeek_dataflash_cs0_config \
3126at91sam9xeek_dataflash_cs1_config \
3127at91sam9xeek_config : unconfig
3128 @mkdir -p $(obj)include
3129 @if [ "$(findstring _nandflash,$@)" ] ; then \
3130 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3131 $(XECHO) "... with environment variable in NAND FLASH" ; \
3132 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
3133 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
3134 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3135 else \
3136 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
3137 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
3138 fi;
3139 @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
3140
3141at91sam9261ek_nandflash_config \
3142at91sam9261ek_dataflash_cs0_config \
3143at91sam9261ek_dataflash_cs3_config \
3144at91sam9261ek_config \
3145at91sam9g10ek_nandflash_config \
3146at91sam9g10ek_dataflash_cs0_config \
3147at91sam9g10ek_dataflash_cs3_config \
3148at91sam9g10ek_config : unconfig
3149 @mkdir -p $(obj)include
3150 @if [ "$(findstring 9g10,$@)" ] ; then \
3151 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
3152 $(XECHO) "... 9G10 Variant" ; \
3153 else \
3154 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
3155 fi;
3156 @if [ "$(findstring _nandflash,$@)" ] ; then \
3157 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3158 $(XECHO) "... with environment variable in NAND FLASH" ; \
3159 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
3160 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
3161 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
3162 else \
3163 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
3164 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3165 fi;
3166 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
3167
3168at91sam9263ek_norflash_config \
3169at91sam9263ek_norflash_boot_config \
3170at91sam9263ek_nandflash_config \
3171at91sam9263ek_dataflash_config \
3172at91sam9263ek_dataflash_cs0_config \
3173at91sam9263ek_config : unconfig
3174 @mkdir -p $(obj)include
3175 @if [ "$(findstring _nandflash,$@)" ] ; then \
3176 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3177 $(XECHO) "... with environment variable in NAND FLASH" ; \
3178 elif [ "$(findstring norflash,$@)" ] ; then \
3179 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
3180 $(XECHO) "... with environment variable in NOR FLASH" ; \
3181 else \
3182 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
3183 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3184 fi;
3185 @if [ "$(findstring norflash_boot,$@)" ] ; then \
3186 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
3187 $(XECHO) "... and boot from NOR FLASH" ; \
3188 fi;
3189 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
3190
3191at91sam9rlek_nandflash_config \
3192at91sam9rlek_dataflash_config \
3193at91sam9rlek_dataflash_cs0_config \
3194at91sam9rlek_config : unconfig
3195 @mkdir -p $(obj)include
3196 @if [ "$(findstring _nandflash,$@)" ] ; then \
3197 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3198 $(XECHO) "... with environment variable in NAND FLASH" ; \
3199 else \
3200 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
3201 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3202 fi;
3203 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
3204
3205meesc_config : unconfig
3206 @$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
3207
3208pm9261_config : unconfig
3209 @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
3210
3211at91sam9m10g45ek_nandflash_config \
3212at91sam9m10g45ek_dataflash_config \
3213at91sam9m10g45ek_dataflash_cs0_config \
3214at91sam9m10g45ek_config \
3215at91sam9g45ekes_nandflash_config \
3216at91sam9g45ekes_dataflash_config \
3217at91sam9g45ekes_dataflash_cs0_config \
3218at91sam9g45ekes_config : unconfig
3219 @mkdir -p $(obj)include
3220 @if [ "$(findstring 9m10,$@)" ] ; then \
3221 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
3222 $(XECHO) "... 9M10G45 Variant" ; \
3223 else \
3224 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
3225 fi;
3226
3227 @if [ "$(findstring _nandflash,$@)" ] ; then \
3228 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
3229 $(XECHO) "... with environment variable in NAND FLASH" ; \
3230 else \
3231 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
3232 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
3233 fi;
3234 @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
3235
3236pm9263_config : unconfig
3237 @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
3238
3239########################################################################
3240## ARM Integrator boards - see doc/README-integrator for more info.
3241integratorap_config \
3242ap_config \
3243ap966_config \
3244ap922_config \
3245ap922_XA10_config \
3246ap7_config \
3247ap720t_config \
3248ap920t_config \
3249ap926ejs_config \
3250ap946es_config: unconfig
3251 @board/armltd/integrator/split_by_variant.sh ap $@
3252
3253integratorcp_config \
3254cp_config \
3255cp920t_config \
3256cp926ejs_config \
3257cp946es_config \
3258cp1136_config \
3259cp966_config \
3260cp922_config \
3261cp922_XA10_config \
3262cp1026_config: unconfig
3263 @board/armltd/integrator/split_by_variant.sh cp $@
3264
3265davinci_dvevm_config : unconfig
3266 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
3267
3268davinci_schmoogie_config : unconfig
3269 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
3270
3271davinci_sffsdr_config : unconfig
3272 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
3273
3274davinci_sonata_config : unconfig
3275 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
3276
3277davinci_dm355evm_config : unconfig
3278 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
3279
3280lpd7a400_config \
3281lpd7a404_config: unconfig
3282 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
3283
3284mv88f6281gtw_ge_config: unconfig
3285 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3286
3287mx1ads_config : unconfig
3288 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
3289
3290mx1fs2_config : unconfig
3291 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
3292
3293netstar_config: unconfig
3294 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
3295
3296nhk8815_config \
3297nhk8815_onenand_config: unconfig
3298 @mkdir -p $(obj)include
3299 @ > $(obj)include/config.h
3300 @if [ "$(findstring _onenand, $@)" ] ; then \
3301 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
3302 $(XECHO) "... configured to boot from OneNand Flash"; \
3303 else \
3304 $(XECHO) "... configured to boot from Nand Flash"; \
3305 fi
3306 @$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik
3307
3308omap1510inn_config : unconfig
3309 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
3310
3311xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
3312
3313omap1610inn_config \
3314omap1610inn_cs0boot_config \
3315omap1610inn_cs3boot_config \
3316omap1610inn_cs_autoboot_config \
3317omap1610h2_config \
3318omap1610h2_cs0boot_config \
3319omap1610h2_cs3boot_config \
3320omap1610h2_cs_autoboot_config: unconfig
3321 @mkdir -p $(obj)include
3322 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
3323 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
3324 $(XECHO) "... configured for CS0 boot"; \
3325 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
3326 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
3327 $(XECHO) "... configured for CS_AUTO boot"; \
3328 else \
3329 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3330 $(XECHO) "... configured for CS3 boot"; \
3331 fi;
3332 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
3333
3334omap5912osk_config : unconfig
3335 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
3336
3337xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
3338
3339omap730p2_config \
3340omap730p2_cs0boot_config \
3341omap730p2_cs3boot_config : unconfig
3342 @mkdir -p $(obj)include
3343 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
3344 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
3345 $(XECHO) "... configured for CS0 boot"; \
3346 else \
3347 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3348 $(XECHO) "... configured for CS3 boot"; \
3349 fi;
3350 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
3351
3352rd6281a_config: unconfig
3353 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3354
3355sbc2410x_config: unconfig
3356 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
3357
3358scb9328_config : unconfig
3359 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
3360
3361sheevaplug_config: unconfig
3362 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3363
3364smdk2400_config : unconfig
3365 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
3366
3367smdk2410_config : unconfig
3368 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
3369
3370SX1_stdout_serial_config \
3371SX1_config: unconfig
3372 @mkdir -p $(obj)include
3373 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
3374 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
3375 $(XECHO) "... configured for stdout serial"; \
3376 else \
3377 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
3378 $(XECHO) "... configured for stdout usbtty"; \
3379 fi;
3380 @$(MKCONFIG) SX1 arm arm925t sx1
3381
3382# TRAB default configuration: 8 MB Flash, 32 MB RAM
3383xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
3384
3385trab_config \
3386trab_bigram_config \
3387trab_bigflash_config \
3388trab_old_config: unconfig
3389 @mkdir -p $(obj)include
3390 @mkdir -p $(obj)board/trab
3391 @[ -z "$(findstring _bigram,$@)" ] || \
3392 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
3393 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
3394 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
3395 }
3396 @[ -z "$(findstring _bigflash,$@)" ] || \
3397 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
3398 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
3399 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
3400 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3401 }
3402 @[ -z "$(findstring _old,$@)" ] || \
3403 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
3404 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
3405 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
3406 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3407 }
3408 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
3409
3410VCMA9_config : unconfig
3411 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
3412
3413#########################################################################
3414# ARM supplied Versatile development boards
3415#########################################################################
3416
3417cm4008_config : unconfig
3418 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
3419
3420cm41xx_config : unconfig
3421 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
3422
3423versatile_config \
3424versatileab_config \
3425versatilepb_config : unconfig
3426 @board/armltd/versatile/split_by_variant.sh $@
3427
3428voiceblue_config: unconfig
3429 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
3430
3431#########################################################################
3432## S3C44B0 Systems
3433#########################################################################
3434
3435B2_config : unconfig
3436 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
3437
3438#########################################################################
3439## ARM720T Systems
3440#########################################################################
3441
3442armadillo_config: unconfig
3443 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
3444
3445ep7312_config : unconfig
3446 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
3447
3448impa7_config : unconfig
3449 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
3450
3451modnet50_config : unconfig
3452 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
3453
3454evb4510_config : unconfig
3455 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b
3456
3457lpc2292sodimm_config: unconfig
3458 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
3459
3460SMN42_config : unconfig
3461 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
3462
3463#########################################################################
3464## ARM CORTEX Systems
3465#########################################################################
3466
3467omap3_beagle_config : unconfig
3468 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
3469
3470omap3_overo_config : unconfig
3471 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
3472
3473omap3_evm_config : unconfig
3474 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
3475
3476omap3_pandora_config : unconfig
3477 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
3478
3479omap3_zoom1_config : unconfig
3480 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
3481
3482omap3_zoom2_config : unconfig
3483 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 omap3 omap3
3484
3485#########################################################################
3486## XScale Systems
3487#########################################################################
3488
3489actux1_config : unconfig
3490 @$(MKCONFIG) $(@:_config=) arm ixp actux1
3491
3492actux2_config : unconfig
3493 @$(MKCONFIG) $(@:_config=) arm ixp actux2
3494
3495actux3_config : unconfig
3496 @$(MKCONFIG) $(@:_config=) arm ixp actux3
3497
3498actux4_config : unconfig
3499 @$(MKCONFIG) $(@:_config=) arm ixp actux4
3500
3501cerf250_config : unconfig
3502 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
3503
3504cradle_config : unconfig
3505 @$(MKCONFIG) $(@:_config=) arm pxa cradle
3506
3507csb226_config : unconfig
3508 @$(MKCONFIG) $(@:_config=) arm pxa csb226
3509
3510delta_config : unconfig
3511 @$(MKCONFIG) $(@:_config=) arm pxa delta
3512
3513innokom_config : unconfig
3514 @$(MKCONFIG) $(@:_config=) arm pxa innokom
3515
3516ixdp425_config : unconfig
3517 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3518
3519ixdpg425_config : unconfig
3520 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3521
3522lubbock_config : unconfig
3523 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
3524
3525pleb2_config : unconfig
3526 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
3527
3528logodl_config : unconfig
3529 @$(MKCONFIG) $(@:_config=) arm pxa logodl
3530
3531pdnb3_config \
3532scpu_config: unconfig
3533 @mkdir -p $(obj)include
3534 @if [ "$(findstring scpu_,$@)" ] ; then \
3535 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
3536 $(XECHO) "... on SCPU board variant" ; \
3537 fi
3538 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3539
3540pxa255_idp_config: unconfig
3541 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3542
3543polaris_config \
3544trizepsiv_config : unconfig
3545 @mkdir -p $(obj)include
3546 @if [ "$(findstring polaris,$@)" ] ; then \
3547 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
3548 fi;
3549 @$(MKCONFIG) -a trizepsiv arm pxa trizepsiv
3550
3551wepep250_config : unconfig
3552 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
3553
3554xaeniax_config : unconfig
3555 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
3556
3557xm250_config : unconfig
3558 @$(MKCONFIG) $(@:_config=) arm pxa xm250
3559
3560xsengine_config : unconfig
3561 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
3562
3563zylonite_config :
3564 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
3565
3566#########################################################################
3567## ARM1136 Systems
3568#########################################################################
3569
3570apollon_config : unconfig
3571 @mkdir -p $(obj)include
3572 @mkdir -p $(obj)onenand_ipl/board/apollon
3573 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
3574 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3575 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
3576
3577imx31_litekit_config : unconfig
3578 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3579
3580imx31_phycore_eet_config \
3581imx31_phycore_config : unconfig
3582 @mkdir -p $(obj)include
3583 @if [ -n "$(findstring _eet_,$@)" ]; then \
3584 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
3585 fi
3586 @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
3587
3588mx31ads_config : unconfig
3589 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3590
3591mx31pdk_config \
3592mx31pdk_nand_config : unconfig
3593 @mkdir -p $(obj)include
3594 @if [ -n "$(findstring _nand_,$@)" ]; then \
3595 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
3596 else \
3597 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
3598 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
3599 fi
3600 @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
3601
3602omap2420h4_config : unconfig
3603 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3604
3605qong_config : unconfig
3606 @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
3607
3608#########################################################################
3609## ARM1176 Systems
3610#########################################################################
3611smdk6400_noUSB_config \
3612smdk6400_config : unconfig
3613 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
3614 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
3615 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
3616 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
3617 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3618 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3619 else \
3620 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3621 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3622 fi
3623 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
3624
3625#========================================================================
3626# i386
3627#========================================================================
3628#########################################################################
3629## AMD SC520 CDP
3630#########################################################################
3631eNET_config : unconfig
3632 @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3633
3634sc520_cdp_config : unconfig
3635 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3636
3637sc520_spunk_config : unconfig
3638 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3639
3640sc520_spunk_rel_config : unconfig
3641 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3642
3643#========================================================================
3644# MIPS
3645#========================================================================
3646#########################################################################
3647## MIPS32 4Kc
3648#########################################################################
3649
3650xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3651
3652incaip_100MHz_config \
3653incaip_133MHz_config \
3654incaip_150MHz_config \
3655incaip_config: unconfig
3656 @mkdir -p $(obj)include
3657 @[ -z "$(findstring _100MHz,$@)" ] || \
3658 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3659 $(XECHO) "... with 100MHz system clock" ; \
3660 }
3661 @[ -z "$(findstring _133MHz,$@)" ] || \
3662 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3663 $(XECHO) "... with 133MHz system clock" ; \
3664 }
3665 @[ -z "$(findstring _150MHz,$@)" ] || \
3666 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3667 $(XECHO) "... with 150MHz system clock" ; \
3668 }
3669 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3670
3671tb0229_config: unconfig
3672 @$(MKCONFIG) $(@:_config=) mips mips tb0229
3673
3674vct_premium_config \
3675vct_premium_small_config \
3676vct_premium_onenand_config \
3677vct_premium_onenand_small_config \
3678vct_platinum_config \
3679vct_platinum_small_config \
3680vct_platinum_onenand_config \
3681vct_platinum_onenand_small_config \
3682vct_platinumavc_config \
3683vct_platinumavc_small_config \
3684vct_platinumavc_onenand_config \
3685vct_platinumavc_onenand_small_config: unconfig
3686 @mkdir -p $(obj)include
3687 @if [ "$(findstring _premium,$@)" ] ; then \
3688 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
3689 $(XECHO) "... on Premium board variant" ; \
3690 fi
3691 @if [ "$(findstring _platinum_,$@)" ] ; then \
3692 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
3693 $(XECHO) "... on Platinum board variant" ; \
3694 fi
3695 @if [ "$(findstring _platinumavc,$@)" ] ; then \
3696 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
3697 $(XECHO) "... on PlatinumAVC board variant" ; \
3698 fi
3699 @if [ "$(findstring _onenand,$@)" ] ; then \
3700 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
3701 $(XECHO) "... on OneNAND board variant" ; \
3702 fi
3703 @if [ "$(findstring _small,$@)" ] ; then \
3704 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
3705 $(XECHO) "... stripped down image variant" ; \
3706 fi
3707 @$(MKCONFIG) -a vct mips mips vct micronas
3708
3709#########################################################################
3710## MIPS32 AU1X00
3711#########################################################################
3712
3713dbau1000_config : unconfig
3714 @mkdir -p $(obj)include
3715 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3716 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3717
3718dbau1100_config : unconfig
3719 @mkdir -p $(obj)include
3720 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3721 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3722
3723dbau1500_config : unconfig
3724 @mkdir -p $(obj)include
3725 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3726 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3727
3728dbau1550_config : unconfig
3729 @mkdir -p $(obj)include
3730 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3731 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3732
3733dbau1550_el_config : unconfig
3734 @mkdir -p $(obj)include
3735 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3736 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3737
3738gth2_config : unconfig
3739 @mkdir -p $(obj)include
3740 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3741 @$(MKCONFIG) -a gth2 mips mips gth2
3742
3743pb1000_config : unconfig
3744 @mkdir -p $(obj)include
3745 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3746 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3747
3748qemu_mips_config : unconfig
3749 @mkdir -p $(obj)include
3750 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3751 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3752
3753#########################################################################
3754## MIPS64 5Kc
3755#########################################################################
3756
3757purple_config : unconfig
3758 @$(MKCONFIG) $(@:_config=) mips mips purple
3759
3760#========================================================================
3761# Nios
3762#========================================================================
3763#########################################################################
3764## Nios32
3765#########################################################################
3766
3767ADNPESC1_DNPEVA2_base_32_config \
3768ADNPESC1_base_32_config \
3769ADNPESC1_config: unconfig
3770 @mkdir -p $(obj)include
3771 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
3772 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3773 $(XECHO) "... DNP/EVA2 configuration" ; \
3774 }
3775 @[ -z "$(findstring _base_32,$@)" ] || \
3776 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3777 $(XECHO) "... NIOS 'base_32' configuration" ; \
3778 }
3779 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3780 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3781 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3782 }
3783 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3784
3785DK1C20_safe_32_config \
3786DK1C20_standard_32_config \
3787DK1C20_config: unconfig
3788 @mkdir -p $(obj)include
3789 @[ -z "$(findstring _safe_32,$@)" ] || \
3790 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3791 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3792 }
3793 @[ -z "$(findstring _standard_32,$@)" ] || \
3794 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3795 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3796 }
3797 @[ -z "$(findstring DK1C20_config,$@)" ] || \
3798 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3799 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3800 }
3801 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3802
3803DK1S10_safe_32_config \
3804DK1S10_standard_32_config \
3805DK1S10_mtx_ldk_20_config \
3806DK1S10_config: unconfig
3807 @mkdir -p $(obj)include
3808 @[ -z "$(findstring _safe_32,$@)" ] || \
3809 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3810 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3811 }
3812 @[ -z "$(findstring _standard_32,$@)" ] || \
3813 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3814 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3815 }
3816 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3817 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3818 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3819 }
3820 @[ -z "$(findstring DK1S10_config,$@)" ] || \
3821 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3822 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3823 }
3824 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
3825
3826#########################################################################
3827## Nios-II
3828#########################################################################
3829
3830EP1C20_config : unconfig
3831 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3832
3833EP1S10_config : unconfig
3834 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3835
3836EP1S40_config : unconfig
3837 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3838
3839PK1C20_config : unconfig
3840 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3841
3842PCI5441_config : unconfig
3843 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3844
3845#========================================================================
3846## Microblaze
3847#========================================================================
3848
3849microblaze-generic_config: unconfig
3850 @mkdir -p $(obj)include
3851 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3852
3853suzaku_config: unconfig
3854 @mkdir -p $(obj)include
3855 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3856 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3857
3858#========================================================================
3859# Blackfin
3860#========================================================================
3861
3862# Analog Devices boards
3863BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
3864 bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
3865
3866# Bluetechnix tinyboards
3867BFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf548 cm-bf561 tcm-bf537
3868
3869# Misc third party boards
3870BFIN_BOARDS += bf537-minotaur bf537-srv1 blackstamp
3871
3872# I-SYST Micromodule
3873BFIN_BOARDS += ibf-dsp561
3874
3875$(BFIN_BOARDS:%=%_config) : unconfig
3876 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3877
3878$(BFIN_BOARDS):
3879 $(MAKE) $@_config
3880 $(MAKE)
3881
3882#========================================================================
3883# AVR32
3884#========================================================================
3885
3886atngw100_config : unconfig
3887 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3888
3889atstk1002_config : unconfig
3890 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3891
3892atstk1003_config : unconfig
3893 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3894
3895atstk1004_config : unconfig
3896 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3897
3898atstk1006_config : unconfig
3899 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3900
3901favr-32-ezkit_config : unconfig
3902 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3903
3904hammerhead_config : unconfig
3905 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3906
3907mimc200_config : unconfig
3908 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3909
3910#========================================================================
3911# SH3 (SuperH)
3912#========================================================================
3913
3914#########################################################################
3915## sh2 (Renesas SuperH)
3916#########################################################################
3917rsk7203_config: unconfig
3918 @mkdir -p $(obj)include
3919 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
3920 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3921
3922#########################################################################
3923## sh3 (Renesas SuperH)
3924#########################################################################
3925
3926mpr2_config: unconfig
3927 @mkdir -p $(obj)include
3928 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3929 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3930
3931ms7720se_config: unconfig
3932 @mkdir -p $(obj)include
3933 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3934 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3935
3936#########################################################################
3937## sh4 (Renesas SuperH)
3938#########################################################################
3939
3940MigoR_config : unconfig
3941 @mkdir -p $(obj)include
3942 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3943 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3944
3945ms7750se_config: unconfig
3946 @mkdir -p $(obj)include
3947 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3948 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3949
3950ms7722se_config : unconfig
3951 @mkdir -p $(obj)include
3952 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3953 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3954
3955r2dplus_config : unconfig
3956 @mkdir -p $(obj)include
3957 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3958 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3959
3960r7780mp_config: unconfig
3961 @mkdir -p $(obj)include
3962 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3963 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3964
3965sh7763rdp_config : unconfig
3966 @mkdir -p $(obj)include
3967 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3968 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3969
3970xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3971sh7785lcr_32bit_config \
3972sh7785lcr_config : unconfig
3973 @mkdir -p $(obj)include
3974 @mkdir -p $(obj)board/renesas/sh7785lcr
3975 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
3976 @if [ "$(findstring 32bit, $@)" ] ; then \
3977 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3978 echo "TEXT_BASE = 0x8ff80000" > \
3979 $(obj)board/renesas/sh7785lcr/config.tmp ; \
3980 $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3981 fi
3982 @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
3983
3984ap325rxa_config : unconfig
3985 @mkdir -p $(obj)include
3986 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3987 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3988
3989espt_config : unconfig
3990 @mkdir -p $(obj)include
3991 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
3992 @$(MKCONFIG) -a $(@:_config=) sh sh4 espt
3993
3994#========================================================================
3995# SPARC
3996#========================================================================
3997
3998#########################################################################
3999## LEON3
4000#########################################################################
4001
4002# Gaisler GR-XC3S-1500 board
4003gr_xc3s_1500_config : unconfig
4004 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
4005
4006# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
4007gr_cpci_ax2000_config : unconfig
4008 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
4009
4010# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
4011# Development board Stratix II edition, FPGA Device EP2S60.
4012gr_ep2s60_config: unconfig
4013 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
4014
4015# Gaisler LEON3 GRSIM simulator
4016grsim_config : unconfig
4017 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
4018
4019#########################################################################
4020## LEON2
4021#########################################################################
4022
4023# Gaisler LEON2 GRSIM simulator
4024grsim_leon2_config : unconfig
4025 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
4026
4027#########################################################################
4028#########################################################################
4029#########################################################################
4030
4031clean:
4032 @rm -f $(obj)examples/standalone/82559_eeprom \
4033 $(obj)examples/standalone/eepro100_eeprom \
4034 $(obj)examples/standalone/hello_world \
4035 $(obj)examples/standalone/interrupt \
4036 $(obj)examples/standalone/mem_to_mem_idma2intr \
4037 $(obj)examples/standalone/sched \
4038 $(obj)examples/standalone/smc91111_eeprom \
4039 $(obj)examples/standalone/test_burst \
4040 $(obj)examples/standalone/timer
4041 @rm -f $(obj)examples/api/demo{,.bin}
4042 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
Ke Dong286f5142012-09-11 00:15:54 -07004043 $(obj)tools/env/{fw_printenv,fw_setenv} \
4044 $(obj)tools/envcrc \
4045 $(obj)tools/doimage \
Ke Dong0e9e0c92012-09-11 00:12:54 -07004046 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
4047 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
4048 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
4049 $(obj)tools/ncb $(obj)tools/ubsha1
4050 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
4051 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
4052 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
4053 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
4054 $(obj)lib_blackfin/u-boot.lds \
4055 $(obj)u-boot.lds \
4056 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
4057 @rm -f $(obj)include/bmp_logo.h
4058 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
4059 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
4060 @rm -f $(obj)onenand_ipl/u-boot.lds
4061 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
4062 @find $(OBJTREE) -type f \
4063 \( -name 'core' -o -name '*.bak' -o -name '*~' \
4064 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
4065 | xargs rm -f
4066
4067clobber: clean
4068 @find $(OBJTREE) -type f \( -name .depend \
4069 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
4070 -print0 \
4071 | xargs -0 rm -f
4072 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
4073 $(obj)cscope.* $(obj)*.*~
4074 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
4075 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
Ke Dong286f5142012-09-11 00:15:54 -07004076 @rm -f u-boot-${MV_OUTPUT}
Ke Dong0e9e0c92012-09-11 00:12:54 -07004077 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
4078 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
4079 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
4080 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
4081
4082ifeq ($(OBJTREE),$(SRCTREE))
4083mrproper \
4084distclean: clobber unconfig
4085else
4086mrproper \
4087distclean: clobber unconfig
4088 rm -rf $(obj)*
4089endif
4090
4091backup:
4092 F=`basename $(TOPDIR)` ; cd .. ; \
4093 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
4094
4095#########################################################################