add SDHC support in mmc driver
[u-boot-openmoko/mini2440.git] / Makefile
blob21c5f3fd35f2f8859efd7011f0470379f4bf45d7
2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
6 # project.
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.
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.
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
24 VERSION = 1
25 PATCHLEVEL = 3
26 SUBLEVEL = 2
27 EXTRAVERSION =
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \
37 -e s/ppc64/ppc/ \
38 -e s/macppc/ppc/)
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
46 VENDOR=
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
51 XECHO = echo
52 else
53 XECHO = :
54 endif
56 #########################################################################
58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported:
61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all'
64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build'
66 # 'make'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
70 # './MAKEALL'
72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory.
78 ifdef O
79 ifeq ("$(origin O)", "command line")
80 BUILD_DIR := $(O)
81 endif
82 endif
84 ifneq ($(BUILD_DIR),)
85 saved-output := $(BUILD_DIR)
87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),)
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96 SRCTREE := $(CURDIR)
97 TOPDIR := $(SRCTREE)
98 LNDIR := $(OBJTREE)
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
102 export MKCONFIG
104 ifneq ($(OBJTREE),$(SRCTREE))
105 REMOTE_BUILD := 1
106 export REMOTE_BUILD
107 endif
109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE))
113 obj := $(OBJTREE)/
114 src := $(SRCTREE)/
115 else
116 obj :=
117 src :=
118 endif
119 export obj src
121 # Make sure CDPATH settings don't interfere
122 unexport CDPATH
124 #########################################################################
126 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
128 # load ARCH, BOARD, and CPU configuration
129 include $(obj)include/config.mk
130 export ARCH CPU BOARD VENDOR SOC
132 ifndef CROSS_COMPILE
133 ifeq ($(HOSTARCH),$(ARCH))
134 CROSS_COMPILE =
135 else
136 ifeq ($(ARCH),ppc)
137 CROSS_COMPILE = ppc_8xx-
138 endif
139 ifeq ($(ARCH),arm)
140 CROSS_COMPILE = arm-linux-
141 endif
142 ifeq ($(ARCH),i386)
143 CROSS_COMPILE = i386-linux-
144 endif
145 ifeq ($(ARCH),mips)
146 CROSS_COMPILE = mips_4KC-
147 endif
148 ifeq ($(ARCH),nios)
149 CROSS_COMPILE = nios-elf-
150 endif
151 ifeq ($(ARCH),nios2)
152 CROSS_COMPILE = nios2-elf-
153 endif
154 ifeq ($(ARCH),m68k)
155 CROSS_COMPILE = m68k-elf-
156 endif
157 ifeq ($(ARCH),microblaze)
158 CROSS_COMPILE = mb-
159 endif
160 ifeq ($(ARCH),blackfin)
161 CROSS_COMPILE = bfin-uclinux-
162 endif
163 ifeq ($(ARCH),avr32)
164 CROSS_COMPILE = avr32-linux-
165 endif
166 ifeq ($(ARCH),sh)
167 CROSS_COMPILE = sh4-linux-
168 endif # sh
169 endif # HOSTARCH,ARCH
170 endif # CROSS_COMPILE
172 export CROSS_COMPILE
174 # load other configuration
175 include $(TOPDIR)/config.mk
177 #########################################################################
178 # U-Boot objects....order is important (i.e. start must be first)
180 OBJS = cpu/$(CPU)/start.o
181 ifeq ($(CPU),i386)
182 OBJS += cpu/$(CPU)/start16.o
183 OBJS += cpu/$(CPU)/reset.o
184 endif
185 ifeq ($(CPU),ppc4xx)
186 OBJS += cpu/$(CPU)/resetvec.o
187 endif
188 ifeq ($(CPU),mpc85xx)
189 OBJS += cpu/$(CPU)/resetvec.o
190 endif
192 OBJS := $(addprefix $(obj),$(OBJS))
194 LIBS = lib_generic/libgeneric.a
195 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
196 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
197 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
198 LIBS += cpu/$(CPU)/lib$(CPU).a
199 ifdef SOC
200 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
201 endif
202 ifeq ($(CPU),ixp)
203 LIBS += cpu/ixp/npe/libnpe.a
204 endif
205 LIBS += lib_$(ARCH)/lib$(ARCH).a
206 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
207 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
208 LIBS += net/libnet.a
209 LIBS += disk/libdisk.a
210 LIBS += drivers/bios_emulator/libatibiosemu.a
211 LIBS += drivers/block/libblock.a
212 LIBS += drivers/dma/libdma.a
213 LIBS += drivers/hwmon/libhwmon.a
214 LIBS += drivers/i2c/libi2c.a
215 LIBS += drivers/input/libinput.a
216 LIBS += drivers/misc/libmisc.a
217 LIBS += drivers/mtd/libmtd.a
218 LIBS += drivers/mtd/nand/libnand.a
219 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
220 LIBS += drivers/mtd/onenand/libonenand.a
221 LIBS += drivers/net/libnet.a
222 LIBS += drivers/net/sk98lin/libsk98lin.a
223 LIBS += drivers/pci/libpci.a
224 LIBS += drivers/pcmcia/libpcmcia.a
225 LIBS += drivers/spi/libspi.a
226 ifeq ($(CPU),mpc83xx)
227 LIBS += drivers/qe/qe.a
228 endif
229 ifeq ($(CPU),mpc85xx)
230 LIBS += drivers/qe/qe.a
231 endif
232 LIBS += drivers/rtc/librtc.a
233 LIBS += drivers/serial/libserial.a
234 LIBS += drivers/usb/libusb.a
235 LIBS += drivers/video/libvideo.a
236 LIBS += post/libpost.a post/drivers/libpostdrivers.a
237 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
238 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
239 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
240 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
241 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
242 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
243 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
244 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
245 LIBS += common/libcommon.a
246 LIBS += libfdt/libfdt.a
247 LIBS += api/libapi.a
249 LIBS := $(addprefix $(obj),$(LIBS))
250 .PHONY : $(LIBS) $(VERSION_FILE)
252 # Add GCC lib
253 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
255 # The "tools" are needed early, so put this first
256 # Don't include stuff already done in $(LIBS)
257 SUBDIRS = tools \
258 examples \
259 api_examples
261 .PHONY : $(SUBDIRS)
263 ifeq ($(CONFIG_NAND_U_BOOT),y)
264 NAND_SPL = nand_spl
265 U_BOOT_NAND = $(obj)u-boot-nand.bin
266 endif
268 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
269 ONENAND_IPL = onenand_ipl
270 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
271 endif
273 __OBJS := $(subst $(obj),,$(OBJS))
274 __LIBS := $(subst $(obj),,$(LIBS))
276 #########################################################################
277 #########################################################################
279 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
280 ifeq ($(ARCH),blackfin)
281 ALL += $(obj)u-boot.ldr
282 endif
283 ALL += $(obj)u-boot-nand2k.bin
284 ALL += $(obj)u-boot-nand16k.bin
286 all: $(ALL)
288 $(obj)u-boot.hex: $(obj)u-boot
289 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
291 $(obj)u-boot.srec: $(obj)u-boot
292 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
294 $(obj)u-boot.bin: $(obj)u-boot
295 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
297 $(obj)u-boot.ldr: $(obj)u-boot
298 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
300 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
301 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
303 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
304 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
306 $(obj)u-boot.udfu: $(obj)u-boot.bin
307 ./tools/mkudfu -v $(CONFIG_USB_DFU_VENDOR) \
308 -p $(CONFIG_USB_DFU_PRODUCT) \
309 -r $(CONFIG_USB_DFU_REVISION) \
310 -d $< $@
312 $(obj)u-boot.img: $(obj)u-boot.bin
313 ./tools/mkimage -A $(ARCH) -T firmware -C none \
314 -a $(TEXT_BASE) -e 0 \
315 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
316 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
317 -d $< $@
319 $(obj)u-boot.sha1: $(obj)u-boot.bin
320 $(obj)tools/ubsha1 $(obj)u-boot.bin
322 $(obj)u-boot.dis: $(obj)u-boot
323 $(OBJDUMP) -d $< > $@
325 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
326 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
327 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
328 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
329 -Map u-boot.map -o u-boot
331 # make a file that can be written using "nand write ..." on 512 & 2K block NAND
332 $(obj)u-boot-nand2k.bin: $(obj)u-boot.bin
333 dd if=$< of=$@ bs=2K conv=sync
334 $(obj)u-boot-nand16k.bin: $(obj)u-boot.bin
335 dd if=$< of=$@ bs=16K conv=sync
337 $(OBJS): depend $(obj)include/autoconf.mk
338 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
340 $(LIBS): depend $(obj)include/autoconf.mk
341 $(MAKE) -C $(dir $(subst $(obj),,$@))
343 $(SUBDIRS): depend $(obj)include/autoconf.mk
344 $(MAKE) -C $@ all
346 $(LDSCRIPT): depend $(obj)include/autoconf.mk
347 $(MAKE) -C $(dir $@) $(notdir $@)
349 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
350 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
352 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
353 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
355 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
356 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
358 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
359 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
360 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
361 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
363 $(VERSION_FILE):
364 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
365 echo -n "$(U_BOOT_VERSION)" ; \
366 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
367 $(TOPDIR)) ; \
368 echo "\"" ) > $@.tmp
369 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
371 gdbtools:
372 $(MAKE) -C tools/gdb all || exit 1
374 updater:
375 $(MAKE) -C tools/updater all || exit 1
377 env:
378 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
380 depend dep: $(VERSION_FILE)
381 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
383 TAG_SUBDIRS += include
384 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
385 TAG_SUBDIRS += cpu/$(CPU)
386 TAG_SUBDIRS += lib_$(ARCH)
387 TAG_SUBDIRS += fs/cramfs
388 TAG_SUBDIRS += fs/fat
389 TAG_SUBDIRS += fs/fdos
390 TAG_SUBDIRS += fs/jffs2
391 TAG_SUBDIRS += net
392 TAG_SUBDIRS += disk
393 TAG_SUBDIRS += common
394 TAG_SUBDIRS += drivers/bios_emulator
395 TAG_SUBDIRS += drivers/block
396 TAG_SUBDIRS += drivers/hwmon
397 TAG_SUBDIRS += drivers/i2c
398 TAG_SUBDIRS += drivers/input
399 TAG_SUBDIRS += drivers/misc
400 TAG_SUBDIRS += drivers/mtd
401 TAG_SUBDIRS += drivers/mtd/nand
402 TAG_SUBDIRS += drivers/mtd/nand_legacy
403 TAG_SUBDIRS += drivers/mtd/onenand
404 TAG_SUBDIRS += drivers/net
405 TAG_SUBDIRS += drivers/net/sk98lin
406 TAG_SUBDIRS += drivers/pci
407 TAG_SUBDIRS += drivers/pcmcia
408 TAG_SUBDIRS += drivers/qe
409 TAG_SUBDIRS += drivers/rtc
410 TAG_SUBDIRS += drivers/serial
411 TAG_SUBDIRS += drivers/spi
412 TAG_SUBDIRS += drivers/usb
413 TAG_SUBDIRS += drivers/video
415 tags ctags:
416 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
417 -name '*.[ch]' -print`
419 etags:
420 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
421 -name '*.[ch]' -print`
422 cscope:
423 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
424 > cscope.files
425 cscope -b -q -k
427 $(obj)System.map: $(obj)u-boot
428 @$(NM) $< | \
429 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
430 sort > $(obj)System.map
433 # Auto-generate the autoconf.mk file (which is included by all makefiles)
435 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
436 # the dep file is only include in this top level makefile to determine when
437 # to regenerate the autoconf.mk file.
438 $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
439 @$(XECHO) Generating include/autoconf.mk ; \
440 set -e ; \
441 : Generate the dependancies ; \
442 $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
443 : Extract the config macros ; \
444 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
446 sinclude $(obj)include/autoconf.mk.dep
448 #########################################################################
449 else # !config.mk
450 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
451 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
452 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
453 dep tags ctags etags cscope $(obj)System.map:
454 @echo "System not configured - see README" >&2
455 @ exit 1
456 endif # config.mk
458 .PHONY : CHANGELOG
459 CHANGELOG:
460 git log --no-merges U-Boot-1_1_5.. | \
461 unexpand -a | sed -e 's/\s\s*$$//' > $@
463 #########################################################################
465 unconfig:
466 @rm -f $(obj)include/config.h $(obj)include/config.mk \
467 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
468 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
470 #========================================================================
471 # PowerPC
472 #========================================================================
474 #########################################################################
475 ## MPC5xx Systems
476 #########################################################################
478 canmb_config: unconfig
479 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
481 cmi_mpc5xx_config: unconfig
482 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
484 PATI_config: unconfig
485 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
487 #########################################################################
488 ## MPC5xxx Systems
489 #########################################################################
491 aev_config: unconfig
492 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
494 BC3450_config: unconfig
495 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
497 cpci5200_config: unconfig
498 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
500 hmi1001_config: unconfig
501 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
503 Lite5200_config \
504 Lite5200_LOWBOOT_config \
505 Lite5200_LOWBOOT08_config \
506 icecube_5200_config \
507 icecube_5200_LOWBOOT_config \
508 icecube_5200_LOWBOOT08_config \
509 icecube_5200_DDR_config \
510 icecube_5200_DDR_LOWBOOT_config \
511 icecube_5200_DDR_LOWBOOT08_config \
512 icecube_5100_config: unconfig
513 @mkdir -p $(obj)include
514 @mkdir -p $(obj)board/icecube
515 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
516 { if [ "$(findstring DDR,$@)" ] ; \
517 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
518 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
519 fi ; \
520 $(XECHO) "... with LOWBOOT configuration" ; \
522 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
523 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
524 echo "... with 8 MB flash only" ; \
525 $(XECHO) "... with LOWBOOT configuration" ; \
527 @[ -z "$(findstring DDR,$@)" ] || \
528 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
529 $(XECHO) "... DDR memory revision" ; \
531 @[ -z "$(findstring 5200,$@)" ] || \
532 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
533 $(XECHO) "... with MPC5200 processor" ; \
535 @[ -z "$(findstring 5100,$@)" ] || \
536 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
537 $(XECHO) "... with MGT5100 processor" ; \
539 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
541 jupiter_config: unconfig
542 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
544 v38b_config: unconfig
545 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
547 inka4x0_config: unconfig
548 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
550 lite5200b_config \
551 lite5200b_PM_config \
552 lite5200b_LOWBOOT_config: unconfig
553 @mkdir -p $(obj)include
554 @mkdir -p $(obj)board/icecube
555 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
556 @ $(XECHO) "... DDR memory revision"
557 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
558 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
559 @[ -z "$(findstring _PM_,$@)" ] || \
560 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
561 $(XECHO) "... with power management (low-power mode) support" ; \
563 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
564 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
565 $(XECHO) "... with LOWBOOT configuration" ; \
567 @ $(XECHO) "... with MPC5200B processor"
568 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
570 mcc200_config \
571 mcc200_SDRAM_config \
572 mcc200_highboot_config \
573 mcc200_COM12_config \
574 mcc200_COM12_SDRAM_config \
575 mcc200_COM12_highboot_config \
576 mcc200_COM12_highboot_SDRAM_config \
577 mcc200_highboot_SDRAM_config \
578 prs200_config \
579 prs200_DDR_config \
580 prs200_highboot_config \
581 prs200_highboot_DDR_config: unconfig
582 @mkdir -p $(obj)include
583 @mkdir -p $(obj)board/mcc200
584 @[ -n "$(findstring highboot,$@)" ] || \
585 { $(XECHO) "... with lowboot configuration" ; \
587 @[ -z "$(findstring highboot,$@)" ] || \
588 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
589 $(XECHO) "... with highboot configuration" ; \
591 @[ -n "$(findstring _SDRAM,$@)" ] || \
592 { if [ -n "$(findstring mcc200,$@)" ]; \
593 then \
594 $(XECHO) "... with DDR" ; \
595 else \
596 if [ -n "$(findstring _DDR,$@)" ];\
597 then \
598 $(XECHO) "... with DDR" ; \
599 else \
600 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
601 $(XECHO) "... with SDRAM" ; \
602 fi; \
603 fi; \
605 @[ -z "$(findstring _SDRAM,$@)" ] || \
606 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
607 $(XECHO) "... with SDRAM" ; \
609 @[ -z "$(findstring COM12,$@)" ] || \
610 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
611 $(XECHO) "... with console on COM12" ; \
613 @[ -z "$(findstring prs200,$@)" ] || \
614 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
616 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
618 mecp5200_config: unconfig
619 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
621 munices_config: unconfig
622 @$(MKCONFIG) munices ppc mpc5xxx munices
624 o2dnt_config: unconfig
625 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
627 pf5200_config: unconfig
628 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
630 PM520_config \
631 PM520_DDR_config \
632 PM520_ROMBOOT_config \
633 PM520_ROMBOOT_DDR_config: unconfig
634 @mkdir -p $(obj)include
635 @[ -z "$(findstring DDR,$@)" ] || \
636 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
637 $(XECHO) "... DDR memory revision" ; \
639 @[ -z "$(findstring ROMBOOT,$@)" ] || \
640 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
641 $(XECHO) "... booting from 8-bit flash" ; \
643 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
645 smmaco4_config: unconfig
646 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
648 cm5200_config: unconfig
649 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
651 spieval_config: unconfig
652 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
654 TB5200_B_config \
655 TB5200_config: unconfig
656 @mkdir -p $(obj)include
657 @[ -z "$(findstring _B,$@)" ] || \
658 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
659 $(XECHO) "... with MPC5200B processor" ; \
661 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
663 MINI5200_config \
664 EVAL5200_config \
665 TOP5200_config: unconfig
666 @mkdir -p $(obj)include
667 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
668 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
670 Total5100_config \
671 Total5200_config \
672 Total5200_lowboot_config \
673 Total5200_Rev2_config \
674 Total5200_Rev2_lowboot_config: unconfig
675 @mkdir -p $(obj)include
676 @mkdir -p $(obj)board/total5200
677 @[ -z "$(findstring 5100,$@)" ] || \
678 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
679 $(XECHO) "... with MGT5100 processor" ; \
681 @[ -z "$(findstring 5200,$@)" ] || \
682 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
683 $(XECHO) "... with MPC5200 processor" ; \
685 @[ -n "$(findstring Rev,$@)" ] || \
686 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
687 $(XECHO) "... revision 1 board" ; \
689 @[ -z "$(findstring Rev2_,$@)" ] || \
690 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
691 $(XECHO) "... revision 2 board" ; \
693 @[ -z "$(findstring lowboot_,$@)" ] || \
694 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
695 $(XECHO) "... with lowboot configuration" ; \
697 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
699 cam5200_config \
700 cam5200_niosflash_config \
701 fo300_config \
702 MiniFAP_config \
703 TQM5200S_config \
704 TQM5200S_HIGHBOOT_config \
705 TQM5200_B_config \
706 TQM5200_B_HIGHBOOT_config \
707 TQM5200_config \
708 TQM5200_STK100_config: unconfig
709 @mkdir -p $(obj)include
710 @mkdir -p $(obj)board/tqm5200
711 @[ -z "$(findstring cam5200,$@)" ] || \
712 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
713 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
714 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
715 $(XECHO) "... TQM5200S on Cam5200" ; \
717 @[ -z "$(findstring niosflash,$@)" ] || \
718 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
719 $(XECHO) "... with NIOS flash driver" ; \
721 @[ -z "$(findstring fo300,$@)" ] || \
722 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
723 $(XECHO) "... TQM5200 on FO300" ; \
725 @[ -z "$(findstring MiniFAP,$@)" ] || \
726 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
727 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
729 @[ -z "$(findstring STK100,$@)" ] || \
730 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
731 $(XECHO) "... on a STK52XX.100 base board" ; \
733 @[ -z "$(findstring TQM5200_B,$@)" ] || \
734 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
736 @[ -z "$(findstring TQM5200S,$@)" ] || \
737 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
738 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
740 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
741 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
743 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
744 uc101_config: unconfig
745 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
746 motionpro_config: unconfig
747 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
750 #########################################################################
751 ## MPC512x Systems
752 #########################################################################
753 ads5121_config \
754 ads5121_PCI_config \
755 : unconfig
756 @mkdir -p $(obj)include
757 @if [ "$(findstring _PCI_,$@)" ] ; then \
758 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
759 $(XECHO) "... with PCI enabled" ; \
761 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
764 #########################################################################
765 ## MPC8xx Systems
766 #########################################################################
768 Adder_config \
769 Adder87x_config \
770 AdderII_config \
771 : unconfig
772 @mkdir -p $(obj)include
773 $(if $(findstring AdderII,$@), \
774 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
775 @$(MKCONFIG) -a Adder ppc mpc8xx adder
777 AdderUSB_config: unconfig
778 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
780 ADS860_config \
781 FADS823_config \
782 FADS850SAR_config \
783 MPC86xADS_config \
784 MPC885ADS_config \
785 FADS860T_config: unconfig
786 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
788 AMX860_config : unconfig
789 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
791 c2mon_config: unconfig
792 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
794 CCM_config: unconfig
795 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
797 cogent_mpc8xx_config: unconfig
798 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
800 ELPT860_config: unconfig
801 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
803 EP88x_config: unconfig
804 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
806 ESTEEM192E_config: unconfig
807 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
809 ETX094_config : unconfig
810 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
812 FLAGADM_config: unconfig
813 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
815 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
817 GEN860T_SC_config \
818 GEN860T_config: unconfig
819 @mkdir -p $(obj)include
820 @[ -z "$(findstring _SC,$@)" ] || \
821 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
822 $(XECHO) "With reduced H/W feature set (SC)..." ; \
824 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
826 GENIETV_config: unconfig
827 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
829 GTH_config: unconfig
830 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
832 hermes_config : unconfig
833 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
835 HMI10_config : unconfig
836 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
838 IAD210_config: unconfig
839 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
841 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
843 ICU862_100MHz_config \
844 ICU862_config: unconfig
845 @mkdir -p $(obj)include
846 @[ -z "$(findstring _100MHz,$@)" ] || \
847 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
848 $(XECHO) "... with 100MHz system clock" ; \
850 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
852 IP860_config : unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
855 IVML24_256_config \
856 IVML24_128_config \
857 IVML24_config: unconfig
858 @mkdir -p $(obj)include
859 @[ -z "$(findstring IVML24_config,$@)" ] || \
860 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
862 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
863 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
865 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
866 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
868 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
870 IVMS8_256_config \
871 IVMS8_128_config \
872 IVMS8_config: unconfig
873 @mkdir -p $(obj)include
874 @[ -z "$(findstring IVMS8_config,$@)" ] || \
875 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
877 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
878 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
880 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
881 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
883 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
885 KUP4K_config : unconfig
886 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
888 KUP4X_config : unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
891 LANTEC_config : unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
894 lwmon_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
897 MBX_config \
898 MBX860T_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
901 mgsuvd_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
904 MHPC_config: unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
907 MVS1_config : unconfig
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
910 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
912 NETVIA_V2_config \
913 NETVIA_config: unconfig
914 @mkdir -p $(obj)include
915 @[ -z "$(findstring NETVIA_config,$@)" ] || \
916 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
917 $(XECHO) "... Version 1" ; \
919 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
920 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
921 $(XECHO) "... Version 2" ; \
923 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
925 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
927 NETPHONE_V2_config \
928 NETPHONE_config: unconfig
929 @mkdir -p $(obj)include
930 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
931 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
933 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
934 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
936 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
938 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
940 NETTA_ISDN_6412_SWAPHOOK_config \
941 NETTA_ISDN_SWAPHOOK_config \
942 NETTA_6412_SWAPHOOK_config \
943 NETTA_SWAPHOOK_config \
944 NETTA_ISDN_6412_config \
945 NETTA_ISDN_config \
946 NETTA_6412_config \
947 NETTA_config: unconfig
948 @mkdir -p $(obj)include
949 @[ -z "$(findstring ISDN_,$@)" ] || \
950 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
952 @[ -n "$(findstring ISDN_,$@)" ] || \
953 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
955 @[ -z "$(findstring 6412_,$@)" ] || \
956 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
958 @[ -n "$(findstring 6412_,$@)" ] || \
959 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
961 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
962 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
964 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
965 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
967 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
969 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
971 NETTA2_V2_config \
972 NETTA2_config: unconfig
973 @mkdir -p $(obj)include
974 @[ -z "$(findstring NETTA2_config,$@)" ] || \
975 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
977 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
978 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
980 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
982 NC650_Rev1_config \
983 NC650_Rev2_config \
984 CP850_config: unconfig
985 @mkdir -p $(obj)include
986 @[ -z "$(findstring CP850,$@)" ] || \
987 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
988 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
990 @[ -z "$(findstring Rev1,$@)" ] || \
991 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
993 @[ -z "$(findstring Rev2,$@)" ] || \
994 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
996 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
998 NX823_config: unconfig
999 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1001 pcu_e_config: unconfig
1002 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1004 QS850_config: unconfig
1005 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1007 QS823_config: unconfig
1008 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1010 QS860T_config: unconfig
1011 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1013 quantum_config: unconfig
1014 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1016 R360MPI_config: unconfig
1017 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1019 RBC823_config: unconfig
1020 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1022 RPXClassic_config: unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1025 RPXlite_config: unconfig
1026 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1028 RPXlite_DW_64_config \
1029 RPXlite_DW_LCD_config \
1030 RPXlite_DW_64_LCD_config \
1031 RPXlite_DW_NVRAM_config \
1032 RPXlite_DW_NVRAM_64_config \
1033 RPXlite_DW_NVRAM_LCD_config \
1034 RPXlite_DW_NVRAM_64_LCD_config \
1035 RPXlite_DW_config: unconfig
1036 @mkdir -p $(obj)include
1037 @[ -z "$(findstring _64,$@)" ] || \
1038 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1039 $(XECHO) "... with 64MHz system clock ..."; \
1041 @[ -z "$(findstring _LCD,$@)" ] || \
1042 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1043 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1044 $(XECHO) "... with LCD display ..."; \
1046 @[ -z "$(findstring _NVRAM,$@)" ] || \
1047 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1048 $(XECHO) "... with ENV in NVRAM ..."; \
1050 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1052 rmu_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1055 RRvision_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1058 RRvision_LCD_config: unconfig
1059 @mkdir -p $(obj)include
1060 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1061 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1062 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1064 SM850_config : unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1067 spc1920_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1070 SPD823TS_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1073 stxxtc_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1076 svm_sc8xx_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1079 SXNI855T_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1082 # EMK MPC8xx based modules
1083 TOP860_config: unconfig
1084 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1086 # Play some tricks for configuration selection
1087 # Only 855 and 860 boards may come with FEC
1088 # and only 823 boards may have LCD support
1089 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1091 FPS850L_config \
1092 FPS860L_config \
1093 NSCU_config \
1094 TQM823L_config \
1095 TQM823L_LCD_config \
1096 TQM850L_config \
1097 TQM855L_config \
1098 TQM860L_config \
1099 TQM862L_config \
1100 TQM823M_config \
1101 TQM850M_config \
1102 TQM855M_config \
1103 TQM860M_config \
1104 TQM862M_config \
1105 TQM866M_config \
1106 TQM885D_config \
1107 TK885D_config \
1108 virtlab2_config: unconfig
1109 @mkdir -p $(obj)include
1110 @[ -z "$(findstring _LCD,$@)" ] || \
1111 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1112 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1113 $(XECHO) "... with LCD display" ; \
1115 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1117 TTTech_config: unconfig
1118 @mkdir -p $(obj)include
1119 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1120 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1121 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1123 uc100_config : unconfig
1124 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1126 v37_config: unconfig
1127 @mkdir -p $(obj)include
1128 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1129 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1130 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1132 wtk_config: unconfig
1133 @mkdir -p $(obj)include
1134 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1135 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1136 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1138 #########################################################################
1139 ## PPC4xx Systems
1140 #########################################################################
1141 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1143 acadia_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1146 acadia_nand_config: unconfig
1147 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1148 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1149 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1150 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1151 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1152 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1154 ADCIOP_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1157 alpr_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1160 AP1000_config:unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1163 APC405_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1166 AR405_config: unconfig
1167 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1169 ASH405_config: unconfig
1170 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1172 bamboo_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1175 bamboo_nand_config: unconfig
1176 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1177 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1178 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1179 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1180 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1181 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1183 bubinga_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1186 CANBT_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1189 # Canyonlands & Glacier use different U-Boot images
1190 canyonlands_config \
1191 glacier_config: unconfig
1192 @mkdir -p $(obj)include
1193 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1194 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1195 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1197 canyonlands_nand_config: unconfig
1198 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1199 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1200 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1201 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1202 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1203 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1205 CATcenter_config \
1206 CATcenter_25_config \
1207 CATcenter_33_config: unconfig
1208 @mkdir -p $(obj)include
1209 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1210 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1211 @[ -z "$(findstring _25,$@)" ] || \
1212 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1213 $(XECHO) "SysClk = 25MHz" ; \
1215 @[ -z "$(findstring _33,$@)" ] || \
1216 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1217 $(XECHO) "SysClk = 33MHz" ; \
1219 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1221 CPCI2DP_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1224 CPCI405_config \
1225 CPCI4052_config \
1226 CPCI405DT_config \
1227 CPCI405AB_config: unconfig
1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1229 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1231 CPCIISER4_config: unconfig
1232 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1234 CRAYL1_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1237 csb272_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1240 csb472_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1243 DASA_SIM_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1246 DP405_config: unconfig
1247 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1249 DU405_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1252 DU440_config: unconfig
1253 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1255 ebony_config: unconfig
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1258 ERIC_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1261 EXBITGEN_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1264 G2000_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1267 hcu4_config: unconfig
1268 @mkdir -p $(obj)board/netstal/common
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1271 hcu5_config: unconfig
1272 @mkdir -p $(obj)board/netstal/common
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1275 HH405_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1278 HUB405_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1281 JSE_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1284 KAREF_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1287 katmai_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1290 # Kilauea & Haleakala images are identical (recognized via PVR)
1291 kilauea_config \
1292 haleakala_config: unconfig
1293 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1295 kilauea_nand_config \
1296 haleakala_nand_config: unconfig
1297 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1298 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1299 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1300 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1301 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1302 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1304 korat_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1307 luan_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1310 lwmon5_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1313 makalu_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1316 mcu25_config: unconfig
1317 @mkdir -p $(obj)board/netstal/common
1318 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1320 METROBOX_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1323 MIP405_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1326 MIP405T_config: unconfig
1327 @mkdir -p $(obj)include
1328 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1329 @$(XECHO) "Enable subset config for MIP405T"
1330 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1332 ML2_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1335 ml300_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1338 ocotea_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1341 OCRTC_config \
1342 ORSG_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1345 p3p440_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1348 PCI405_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1351 pcs440ep_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1354 PIP405_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1357 PLU405_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1360 PMC405_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1363 PMC440_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1366 PPChameleonEVB_config \
1367 PPChameleonEVB_BA_25_config \
1368 PPChameleonEVB_ME_25_config \
1369 PPChameleonEVB_HI_25_config \
1370 PPChameleonEVB_BA_33_config \
1371 PPChameleonEVB_ME_33_config \
1372 PPChameleonEVB_HI_33_config: unconfig
1373 @mkdir -p $(obj)include
1374 @[ -z "$(findstring EVB_BA,$@)" ] || \
1375 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1376 $(XECHO) "... BASIC model" ; \
1378 @[ -z "$(findstring EVB_ME,$@)" ] || \
1379 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1380 $(XECHO) "... MEDIUM model" ; \
1382 @[ -z "$(findstring EVB_HI,$@)" ] || \
1383 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1384 $(XECHO) "... HIGH-END model" ; \
1386 @[ -z "$(findstring _25,$@)" ] || \
1387 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1388 $(XECHO) "SysClk = 25MHz" ; \
1390 @[ -z "$(findstring _33,$@)" ] || \
1391 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1392 $(XECHO) "SysClk = 33MHz" ; \
1394 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1396 sbc405_config: unconfig
1397 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1399 sequoia_config \
1400 rainier_config: unconfig
1401 @mkdir -p $(obj)include
1402 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1403 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1404 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1406 sequoia_nand_config \
1407 rainier_nand_config: unconfig
1408 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1409 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1410 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1411 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1412 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1413 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1414 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1415 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1417 sc3_config:unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1420 taihu_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1423 taishan_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1426 VOH405_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1429 VOM405_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1432 CMS700_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1435 W7OLMC_config \
1436 W7OLMG_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1439 # Walnut & Sycamore images are identical (recognized via PVR)
1440 walnut_config \
1441 sycamore_config: unconfig
1442 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1444 WUH405_config: unconfig
1445 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1447 XPEDITE1K_config: unconfig
1448 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1450 yosemite_config \
1451 yellowstone_config: unconfig
1452 @mkdir -p $(obj)include
1453 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1454 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1455 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1457 yucca_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1460 zeus_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1463 #########################################################################
1464 ## MPC8220 Systems
1465 #########################################################################
1467 Alaska8220_config \
1468 Yukon8220_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1471 sorcery_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1474 #########################################################################
1475 ## MPC824x Systems
1476 #########################################################################
1477 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1479 A3000_config: unconfig
1480 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1482 barco_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1485 BMW_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1488 CPC45_config \
1489 CPC45_ROMBOOT_config: unconfig
1490 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1491 @cd $(obj)include ; \
1492 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1493 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1494 $(XECHO) "... booting from 8-bit flash" ; \
1495 else \
1496 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1497 $(XECHO) "... booting from 64-bit flash" ; \
1498 fi; \
1499 echo "export CONFIG_BOOT_ROM" >> config.mk;
1501 CU824_config: unconfig
1502 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1504 debris_config: unconfig
1505 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1507 eXalion_config: unconfig
1508 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1510 HIDDEN_DRAGON_config: unconfig
1511 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1513 kvme080_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1516 MOUSSE_config: unconfig
1517 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1519 MUSENKI_config: unconfig
1520 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1522 MVBLUE_config: unconfig
1523 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1525 OXC_config: unconfig
1526 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1528 PN62_config: unconfig
1529 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1531 Sandpoint8240_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1534 Sandpoint8245_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1537 sbc8240_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1540 SL8245_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1543 utx8245_config: unconfig
1544 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1546 #########################################################################
1547 ## MPC8260 Systems
1548 #########################################################################
1550 atc_config: unconfig
1551 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1553 cogent_mpc8260_config: unconfig
1554 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1556 CPU86_config \
1557 CPU86_ROMBOOT_config: unconfig
1558 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1559 @cd $(obj)include ; \
1560 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1561 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1562 $(XECHO) "... booting from 8-bit flash" ; \
1563 else \
1564 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1565 $(XECHO) "... booting from 64-bit flash" ; \
1566 fi; \
1567 echo "export CONFIG_BOOT_ROM" >> config.mk;
1569 CPU87_config \
1570 CPU87_ROMBOOT_config: unconfig
1571 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1572 @cd $(obj)include ; \
1573 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1574 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1575 $(XECHO) "... booting from 8-bit flash" ; \
1576 else \
1577 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1578 $(XECHO) "... booting from 64-bit flash" ; \
1579 fi; \
1580 echo "export CONFIG_BOOT_ROM" >> config.mk;
1582 ep8248_config \
1583 ep8248E_config : unconfig
1584 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1586 ep8260_config: unconfig
1587 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1589 ep82xxm_config: unconfig
1590 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1592 gw8260_config: unconfig
1593 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1595 hymod_config: unconfig
1596 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1598 IDS8247_config: unconfig
1599 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1601 IPHASE4539_config: unconfig
1602 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1604 ISPAN_config \
1605 ISPAN_REVB_config: unconfig
1606 @mkdir -p $(obj)include
1607 @if [ "$(findstring _REVB_,$@)" ] ; then \
1608 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1610 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1612 mgcoge_config : unconfig
1613 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1615 MPC8260ADS_config \
1616 MPC8260ADS_lowboot_config \
1617 MPC8260ADS_33MHz_config \
1618 MPC8260ADS_33MHz_lowboot_config \
1619 MPC8260ADS_40MHz_config \
1620 MPC8260ADS_40MHz_lowboot_config \
1621 MPC8272ADS_config \
1622 MPC8272ADS_lowboot_config \
1623 PQ2FADS_config \
1624 PQ2FADS_lowboot_config \
1625 PQ2FADS-VR_config \
1626 PQ2FADS-VR_lowboot_config \
1627 PQ2FADS-ZU_config \
1628 PQ2FADS-ZU_lowboot_config \
1629 PQ2FADS-ZU_66MHz_config \
1630 PQ2FADS-ZU_66MHz_lowboot_config \
1631 : unconfig
1632 @mkdir -p $(obj)include
1633 @mkdir -p $(obj)board/freescale/mpc8260ads
1634 $(if $(findstring PQ2FADS,$@), \
1635 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1636 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1637 $(if $(findstring MHz,$@), \
1638 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1639 $(if $(findstring VR,$@), \
1640 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1641 @[ -z "$(findstring lowboot_,$@)" ] || \
1642 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1643 $(XECHO) "... with lowboot configuration" ; \
1645 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1647 MPC8266ADS_config: unconfig
1648 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1650 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1651 PM825_config \
1652 PM825_ROMBOOT_config \
1653 PM825_BIGFLASH_config \
1654 PM825_ROMBOOT_BIGFLASH_config \
1655 PM826_config \
1656 PM826_ROMBOOT_config \
1657 PM826_BIGFLASH_config \
1658 PM826_ROMBOOT_BIGFLASH_config: unconfig
1659 @mkdir -p $(obj)include
1660 @mkdir -p $(obj)board/pm826
1661 @if [ "$(findstring PM825_,$@)" ] ; then \
1662 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1663 else \
1664 >$(obj)include/config.h ; \
1666 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1667 $(XECHO) "... booting from 8-bit flash" ; \
1668 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1669 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1670 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1671 $(XECHO) "... with 32 MB Flash" ; \
1672 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1673 fi; \
1674 else \
1675 $(XECHO) "... booting from 64-bit flash" ; \
1676 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1677 $(XECHO) "... with 32 MB Flash" ; \
1678 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1679 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1680 else \
1681 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1682 fi; \
1684 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1686 PM828_config \
1687 PM828_PCI_config \
1688 PM828_ROMBOOT_config \
1689 PM828_ROMBOOT_PCI_config: unconfig
1690 @mkdir -p $(obj)include
1691 @mkdir -p $(obj)board/pm826
1692 @if [ "$(findstring _PCI_,$@)" ] ; then \
1693 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1694 $(XECHO) "... with PCI enabled" ; \
1696 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1697 $(XECHO) "... booting from 8-bit flash" ; \
1698 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1699 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1701 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1703 ppmc8260_config: unconfig
1704 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1706 Rattler8248_config \
1707 Rattler_config: unconfig
1708 @mkdir -p $(obj)include
1709 $(if $(findstring 8248,$@), \
1710 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1711 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1713 RPXsuper_config: unconfig
1714 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1716 rsdproto_config: unconfig
1717 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1719 sacsng_config: unconfig
1720 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1722 sbc8260_config: unconfig
1723 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1725 SCM_config: unconfig
1726 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1728 TQM8255_AA_config \
1729 TQM8260_AA_config \
1730 TQM8260_AB_config \
1731 TQM8260_AC_config \
1732 TQM8260_AD_config \
1733 TQM8260_AE_config \
1734 TQM8260_AF_config \
1735 TQM8260_AG_config \
1736 TQM8260_AH_config \
1737 TQM8260_AI_config \
1738 TQM8265_AA_config: unconfig
1739 @mkdir -p $(obj)include
1740 @case "$@" in \
1741 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1742 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1743 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1744 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1745 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1746 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1747 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1748 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1749 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1750 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1751 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1752 esac; \
1753 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1754 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1755 fi; \
1756 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1757 echo "... with $${CFREQ}MHz system clock" ; \
1758 if [ "$${CACHE}" = "yes" ] ; then \
1759 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1760 $(XECHO) "... with L2 Cache support" ; \
1761 else \
1762 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1763 $(XECHO) "... without L2 Cache support" ; \
1764 fi; \
1765 if [ "$${BMODE}" = "60x" ] ; then \
1766 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1767 $(XECHO) "... with 60x Bus Mode" ; \
1768 else \
1769 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1770 $(XECHO) "... without 60x Bus Mode" ; \
1772 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1774 TQM8272_config: unconfig
1775 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1777 VoVPN-GW_66MHz_config \
1778 VoVPN-GW_100MHz_config: unconfig
1779 @mkdir -p $(obj)include
1780 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1781 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1783 ZPC1900_config: unconfig
1784 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1786 #########################################################################
1787 ## Coldfire
1788 #########################################################################
1790 M52277EVB_config: unconfig
1791 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1793 M5235EVB_config \
1794 M5235EVB_Flash16_config \
1795 M5235EVB_Flash32_config: unconfig
1796 @case "$@" in \
1797 M5235EVB_config) FLASH=16;; \
1798 M5235EVB_Flash16_config) FLASH=16;; \
1799 M5235EVB_Flash32_config) FLASH=32;; \
1800 esac; \
1801 if [ "$${FLASH}" != "16" ] ; then \
1802 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1803 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1804 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1805 else \
1806 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1807 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1809 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1811 M5249EVB_config : unconfig
1812 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1814 M5253EVBE_config : unconfig
1815 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1817 cobra5272_config : unconfig
1818 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1820 EB+MCF-EV123_config : unconfig
1821 @mkdir -p $(obj)include
1822 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1823 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1824 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1826 EB+MCF-EV123_internal_config : unconfig
1827 @mkdir -p $(obj)include
1828 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1829 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1830 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1832 idmr_config : unconfig
1833 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1835 M5271EVB_config : unconfig
1836 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1838 M5272C3_config : unconfig
1839 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1841 M5275EVB_config : unconfig
1842 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1844 M5282EVB_config : unconfig
1845 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1847 TASREG_config : unconfig
1848 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1850 M5329AFEE_config \
1851 M5329BFEE_config : unconfig
1852 @case "$@" in \
1853 M5329AFEE_config) NAND=0;; \
1854 M5329BFEE_config) NAND=16;; \
1855 esac; \
1856 if [ "$${NAND}" != "0" ] ; then \
1857 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1859 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1861 M5373EVB_config : unconfig
1862 @case "$@" in \
1863 M5373EVB_config) NAND=16;; \
1864 esac; \
1865 if [ "$${NAND}" != "0" ] ; then \
1866 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1868 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1870 M54455EVB_config \
1871 M54455EVB_atmel_config \
1872 M54455EVB_intel_config \
1873 M54455EVB_a33_config \
1874 M54455EVB_a66_config \
1875 M54455EVB_i33_config \
1876 M54455EVB_i66_config : unconfig
1877 @case "$@" in \
1878 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1879 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1880 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1881 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1882 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1883 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1884 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1885 esac; \
1886 if [ "$${FLASH}" = "INTEL" ] ; then \
1887 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1888 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1889 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1890 $(XECHO) "... with INTEL boot..." ; \
1891 else \
1892 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1893 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1894 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1895 $(XECHO) "... with ATMEL boot..." ; \
1896 fi; \
1897 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1898 $(XECHO) "... with $${FREQ}Hz input clock"
1899 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1901 M5475AFE_config \
1902 M5475BFE_config \
1903 M5475CFE_config \
1904 M5475DFE_config \
1905 M5475EFE_config \
1906 M5475FFE_config \
1907 M5475GFE_config : unconfig
1908 @case "$@" in \
1909 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1910 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1911 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1912 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1913 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1914 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1915 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1916 esac; \
1917 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1918 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1919 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1920 if [ "$${RAM1}" != "0" ] ; then \
1921 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1922 fi; \
1923 if [ "$${CODE}" != "0" ] ; then \
1924 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1925 fi; \
1926 if [ "$${VID}" == "1" ] ; then \
1927 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1928 fi; \
1929 if [ "$${USB}" == "1" ] ; then \
1930 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1932 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1934 M5485AFE_config \
1935 M5485BFE_config \
1936 M5485CFE_config \
1937 M5485DFE_config \
1938 M5485EFE_config \
1939 M5485FFE_config \
1940 M5485GFE_config \
1941 M5485HFE_config : unconfig
1942 @case "$@" in \
1943 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1944 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1945 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1946 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1947 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1948 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1949 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1950 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1951 esac; \
1952 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1953 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1954 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1955 if [ "$${RAM1}" != "0" ] ; then \
1956 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1957 fi; \
1958 if [ "$${CODE}" != "0" ] ; then \
1959 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1960 fi; \
1961 if [ "$${VID}" == "1" ] ; then \
1962 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1963 fi; \
1964 if [ "$${USB}" == "1" ] ; then \
1965 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1967 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1969 #########################################################################
1970 ## MPC83xx Systems
1971 #########################################################################
1973 MPC8313ERDB_33_config \
1974 MPC8313ERDB_66_config: unconfig
1975 @mkdir -p $(obj)include
1976 @if [ "$(findstring _33_,$@)" ] ; then \
1977 $(XECHO) -n "...33M ..." ; \
1978 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1979 fi ; \
1980 if [ "$(findstring _66_,$@)" ] ; then \
1981 $(XECHO) -n "...66M..." ; \
1982 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1983 fi ;
1984 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1986 MPC8315ERDB_config: unconfig
1987 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1989 MPC8323ERDB_config: unconfig
1990 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1992 MPC832XEMDS_config \
1993 MPC832XEMDS_HOST_33_config \
1994 MPC832XEMDS_HOST_66_config \
1995 MPC832XEMDS_SLAVE_config \
1996 MPC832XEMDS_ATM_config: unconfig
1997 @mkdir -p $(obj)include
1998 @if [ "$(findstring _HOST_,$@)" ] ; then \
1999 $(XECHO) -n "... PCI HOST " ; \
2000 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2001 fi ; \
2002 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2003 $(XECHO) "...PCI SLAVE 66M" ; \
2004 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2005 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2006 fi ; \
2007 if [ "$(findstring _33_,$@)" ] ; then \
2008 $(XECHO) -n "...33M ..." ; \
2009 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2010 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2011 fi ; \
2012 if [ "$(findstring _66_,$@)" ] ; then \
2013 $(XECHO) -n "...66M..." ; \
2014 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2015 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2016 fi ; \
2017 if [ "$(findstring _ATM_,$@)" ] ; then \
2018 $(XECHO) -n "...ATM..." ; \
2019 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2020 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2021 fi ;
2022 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2024 MPC8349EMDS_config: unconfig
2025 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2027 MPC8349ITX_config \
2028 MPC8349ITX_LOWBOOT_config \
2029 MPC8349ITXGP_config: unconfig
2030 @mkdir -p $(obj)include
2031 @mkdir -p $(obj)board/freescale/mpc8349itx
2032 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2033 @if [ "$(findstring GP,$@)" ] ; then \
2034 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2036 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2037 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2039 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2041 MPC8360EMDS_config \
2042 MPC8360EMDS_HOST_33_config \
2043 MPC8360EMDS_HOST_66_config \
2044 MPC8360EMDS_SLAVE_config \
2045 MPC8360EMDS_ATM_config: unconfig
2046 @mkdir -p $(obj)include
2047 @if [ "$(findstring _HOST_,$@)" ] ; then \
2048 $(XECHO) -n "... PCI HOST " ; \
2049 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2050 fi ; \
2051 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2052 $(XECHO) "...PCI SLAVE 66M" ; \
2053 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2054 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2055 fi ; \
2056 if [ "$(findstring _33_,$@)" ] ; then \
2057 $(XECHO) -n "...33M ..." ; \
2058 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2059 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2060 fi ; \
2061 if [ "$(findstring _66_,$@)" ] ; then \
2062 $(XECHO) -n "...66M..." ; \
2063 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2064 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2065 fi ; \
2066 if [ "$(findstring _ATM_,$@)" ] ; then \
2067 $(XECHO) -n "...ATM..." ; \
2068 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2069 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2070 fi ;
2071 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2073 MPC8360ERDK_33_config \
2074 MPC8360ERDK_66_config \
2075 MPC8360ERDK_config: unconfig
2076 @mkdir -p $(obj)include
2077 @if [ "$(findstring _33_,$@)" ] ; then \
2078 $(XECHO) -n "... CLKIN 33MHz " ; \
2079 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2080 fi ;
2081 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2083 MPC837XEMDS_config \
2084 MPC837XEMDS_HOST_config: unconfig
2085 @mkdir -p $(obj)include
2086 @if [ "$(findstring _HOST_,$@)" ] ; then \
2087 $(XECHO) -n "... PCI HOST " ; \
2088 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2089 fi ;
2090 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2092 MPC837XERDB_config: unconfig
2093 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2095 sbc8349_config: unconfig
2096 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2098 TQM834x_config: unconfig
2099 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2102 #########################################################################
2103 ## MPC85xx Systems
2104 #########################################################################
2106 ATUM8548_config: unconfig
2107 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2109 MPC8540ADS_config: unconfig
2110 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2112 MPC8540EVAL_config \
2113 MPC8540EVAL_33_config \
2114 MPC8540EVAL_66_config \
2115 MPC8540EVAL_33_slave_config \
2116 MPC8540EVAL_66_slave_config: unconfig
2117 @mkdir -p $(obj)include
2118 @if [ "$(findstring _33_,$@)" ] ; then \
2119 $(XECHO) "... 33 MHz PCI" ; \
2120 else \
2121 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2122 $(XECHO) "... 66 MHz PCI" ; \
2123 fi ; \
2124 if [ "$(findstring _slave_,$@)" ] ; then \
2125 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2126 $(XECHO) " slave" ; \
2127 else \
2128 $(XECHO) " host" ; \
2130 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2132 MPC8560ADS_config: unconfig
2133 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2135 MPC8541CDS_legacy_config \
2136 MPC8541CDS_config: unconfig
2137 @mkdir -p $(obj)include
2138 @if [ "$(findstring _legacy_,$@)" ] ; then \
2139 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2140 $(XECHO) "... legacy" ; \
2142 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2144 MPC8544DS_config: unconfig
2145 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2147 MPC8548CDS_legacy_config \
2148 MPC8548CDS_config: unconfig
2149 @mkdir -p $(obj)include
2150 @if [ "$(findstring _legacy_,$@)" ] ; then \
2151 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2152 $(XECHO) "... legacy" ; \
2154 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2156 MPC8555CDS_legacy_config \
2157 MPC8555CDS_config: unconfig
2158 @mkdir -p $(obj)include
2159 @if [ "$(findstring _legacy_,$@)" ] ; then \
2160 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2161 $(XECHO) "... legacy" ; \
2163 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2165 MPC8568MDS_config: unconfig
2166 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2168 PM854_config: unconfig
2169 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2171 PM856_config: unconfig
2172 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2174 sbc8540_config \
2175 sbc8540_33_config \
2176 sbc8540_66_config: unconfig
2177 @mkdir -p $(obj)include
2178 @if [ "$(findstring _66_,$@)" ] ; then \
2179 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2180 $(XECHO) "... 66 MHz PCI" ; \
2181 else \
2182 $(XECHO) "... 33 MHz PCI" ; \
2184 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2186 sbc8548_config: unconfig
2187 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2189 sbc8560_config \
2190 sbc8560_33_config \
2191 sbc8560_66_config: unconfig
2192 @mkdir -p $(obj)include
2193 @if [ "$(findstring _66_,$@)" ] ; then \
2194 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2195 $(XECHO) "... 66 MHz PCI" ; \
2196 else \
2197 $(XECHO) "... 33 MHz PCI" ; \
2199 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2201 stxgp3_config: unconfig
2202 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2204 stxssa_config \
2205 stxssa_4M_config: unconfig
2206 @mkdir -p $(obj)include
2207 @if [ "$(findstring _4M_,$@)" ] ; then \
2208 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2209 $(XECHO) "... with 4 MiB flash memory" ; \
2211 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2213 TQM8540_config \
2214 TQM8541_config \
2215 TQM8555_config \
2216 TQM8560_config: unconfig
2217 @mkdir -p $(obj)include
2218 @CTYPE=$(subst TQM,,$(@:_config=)); \
2219 $(XECHO) "... TQM"$${CTYPE}; \
2220 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2221 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2222 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2223 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2224 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2225 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2227 #########################################################################
2228 ## MPC86xx Systems
2229 #########################################################################
2231 MPC8610HPCD_config: unconfig
2232 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2234 MPC8641HPCN_config: unconfig
2235 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2237 sbc8641d_config: unconfig
2238 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2240 #########################################################################
2241 ## 74xx/7xx Systems
2242 #########################################################################
2244 AmigaOneG3SE_config: unconfig
2245 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2247 BAB7xx_config: unconfig
2248 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2250 CPCI750_config: unconfig
2251 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2253 DB64360_config: unconfig
2254 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2256 DB64460_config: unconfig
2257 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2259 ELPPC_config: unconfig
2260 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2262 EVB64260_config \
2263 EVB64260_750CX_config: unconfig
2264 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2266 mpc7448hpc2_config: unconfig
2267 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2269 P3G4_config: unconfig
2270 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2272 p3m750_config \
2273 p3m7448_config: unconfig
2274 @mkdir -p $(obj)include
2275 @if [ "$(findstring 750_,$@)" ] ; then \
2276 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2277 else \
2278 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2280 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2282 PCIPPC2_config \
2283 PCIPPC6_config: unconfig
2284 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2286 ZUMA_config: unconfig
2287 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2289 ppmc7xx_config: unconfig
2290 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2292 #========================================================================
2293 # ARM
2294 #========================================================================
2295 #########################################################################
2296 ## StrongARM Systems
2297 #########################################################################
2299 assabet_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2302 dnp1110_config : unconfig
2303 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2305 gcplus_config : unconfig
2306 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2308 lart_config : unconfig
2309 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2311 shannon_config : unconfig
2312 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2314 #########################################################################
2315 ## ARM92xT Systems
2316 #########################################################################
2318 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2320 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2322 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2324 at91cap9adk_config : unconfig
2325 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2327 at91rm9200dk_config : unconfig
2328 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2330 at91sam9260ek_config : unconfig
2331 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2333 cmc_pu2_config : unconfig
2334 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2336 csb637_config : unconfig
2337 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2339 mp2usb_config : unconfig
2340 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2342 m501sk_config : unconfig
2343 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2345 ########################################################################
2346 ## ARM Integrator boards - see doc/README-integrator for more info.
2347 integratorap_config \
2348 ap_config \
2349 ap966_config \
2350 ap922_config \
2351 ap922_XA10_config \
2352 ap7_config \
2353 ap720t_config \
2354 ap920t_config \
2355 ap926ejs_config \
2356 ap946es_config: unconfig
2357 @board/integratorap/split_by_variant.sh $@
2359 integratorcp_config \
2360 cp_config \
2361 cp920t_config \
2362 cp926ejs_config \
2363 cp946es_config \
2364 cp1136_config \
2365 cp966_config \
2366 cp922_config \
2367 cp922_XA10_config \
2368 cp1026_config: unconfig
2369 @board/integratorcp/split_by_variant.sh $@
2371 kb9202_config : unconfig
2372 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2374 lpd7a400_config \
2375 lpd7a404_config: unconfig
2376 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2378 mx1ads_config : unconfig
2379 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2381 mx1fs2_config : unconfig
2382 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2384 netstar_config: unconfig
2385 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2387 omap1510inn_config : unconfig
2388 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2390 omap5912osk_config : unconfig
2391 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2393 davinci_dvevm_config : unconfig
2394 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2396 davinci_schmoogie_config : unconfig
2397 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2399 davinci_sonata_config : unconfig
2400 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2402 pmdra_config : unconfig
2403 @$(MKCONFIG) $(@:_config=) arm arm926ejs pmdra prodrive davinci
2405 omap1610inn_config \
2406 omap1610inn_cs0boot_config \
2407 omap1610inn_cs3boot_config \
2408 omap1610inn_cs_autoboot_config \
2409 omap1610h2_config \
2410 omap1610h2_cs0boot_config \
2411 omap1610h2_cs3boot_config \
2412 omap1610h2_cs_autoboot_config: unconfig
2413 @mkdir -p $(obj)include
2414 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2415 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2416 $(XECHO) "... configured for CS0 boot"; \
2417 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2418 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2419 $(XECHO) "... configured for CS_AUTO boot"; \
2420 else \
2421 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2422 $(XECHO) "... configured for CS3 boot"; \
2424 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2426 omap730p2_config \
2427 omap730p2_cs0boot_config \
2428 omap730p2_cs3boot_config : unconfig
2429 @mkdir -p $(obj)include
2430 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2431 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2432 $(XECHO) "... configured for CS0 boot"; \
2433 else \
2434 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2435 $(XECHO) "... configured for CS3 boot"; \
2437 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2439 sbc2410x_config: unconfig
2440 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2442 gta02_config \
2443 gta02v1_config \
2444 gta02v2_config \
2445 gta02v3_config \
2446 gta02v4_config \
2447 gta02v5_config \
2448 gta02v6_config: unconfig
2449 @sh board/neo1973/gta02/split_by_variant.sh $@
2451 gta01_config \
2452 gta01v3_config \
2453 gta01bv2_config \
2454 gta01bv3_config \
2455 gta01bv4_config \
2456 gta01v4_config : unconfig
2457 @sh board/neo1973/gta01/split_by_variant.sh $@
2459 qt2410_config : unconfig
2460 @./mkconfig $(@:_config=) arm arm920t qt2410 NULL s3c24x0
2462 hxd8_config : unconfig
2463 @$(MKCONFIG) $(@:_config=) arm arm920t hxd8 NULL s3c24x0
2465 scb9328_config : unconfig
2466 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2468 smdk2400_config : unconfig
2469 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2471 smdk2410_config : unconfig
2472 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2474 smdk2440_config : unconfig
2475 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2440 NULL s3c24x0
2477 smdk2443_config : unconfig
2478 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2443 NULL s3c24x0
2480 mini2440_config : unconfig
2481 @$(MKCONFIG) $(@:_config=) arm arm920t mini2440 NULL s3c24x0
2483 SX1_config : unconfig
2484 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2486 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2487 trab_config \
2488 trab_bigram_config \
2489 trab_bigflash_config \
2490 trab_old_config: unconfig
2491 @mkdir -p $(obj)include
2492 @mkdir -p $(obj)board/trab
2493 @[ -z "$(findstring _bigram,$@)" ] || \
2494 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2495 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2496 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2498 @[ -z "$(findstring _bigflash,$@)" ] || \
2499 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2500 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2501 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2502 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2504 @[ -z "$(findstring _old,$@)" ] || \
2505 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2506 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2507 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2508 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2510 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2512 VCMA9_config : unconfig
2513 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2515 #========================================================================
2516 # ARM supplied Versatile development boards
2517 #========================================================================
2518 versatile_config \
2519 versatileab_config \
2520 versatilepb_config : unconfig
2521 @board/versatile/split_by_variant.sh $@
2523 voiceblue_config: unconfig
2524 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2526 cm4008_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2529 cm41xx_config : unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2532 #########################################################################
2533 ## S3C44B0 Systems
2534 #########################################################################
2536 B2_config : unconfig
2537 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2539 #########################################################################
2540 ## ARM720T Systems
2541 #########################################################################
2543 armadillo_config: unconfig
2544 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2546 ep7312_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2549 impa7_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2552 modnet50_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2555 evb4510_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2558 lpc2292sodimm_config: unconfig
2559 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2561 SMN42_config : unconfig
2562 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2564 #########################################################################
2565 ## XScale Systems
2566 #########################################################################
2568 actux1_config : unconfig
2569 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2571 actux2_config : unconfig
2572 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2574 actux3_config : unconfig
2575 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2577 actux4_config : unconfig
2578 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2580 adsvix_config : unconfig
2581 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2583 cerf250_config : unconfig
2584 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2586 cradle_config : unconfig
2587 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2589 csb226_config : unconfig
2590 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2592 delta_config : unconfig
2593 @$(MKCONFIG) $(@:_config=) arm pxa delta
2595 innokom_config : unconfig
2596 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2598 ixdp425_config : unconfig
2599 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2601 ixdpg425_config : unconfig
2602 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2604 lubbock_config : unconfig
2605 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2607 pleb2_config : unconfig
2608 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2610 logodl_config : unconfig
2611 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2613 pdnb3_config \
2614 scpu_config: unconfig
2615 @mkdir -p $(obj)include
2616 @if [ "$(findstring scpu_,$@)" ] ; then \
2617 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2618 $(XECHO) "... on SCPU board variant" ; \
2620 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2622 pxa255_idp_config: unconfig
2623 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2625 trizepsiv_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2628 wepep250_config : unconfig
2629 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2631 xaeniax_config : unconfig
2632 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2634 xm250_config : unconfig
2635 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2637 xsengine_config : unconfig
2638 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2640 zylonite_config :
2641 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2643 #########################################################################
2644 ## ARM1136 Systems
2645 #########################################################################
2646 omap2420h4_config : unconfig
2647 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2649 apollon_config : unconfig
2650 @mkdir -p $(obj)include
2651 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2652 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2653 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2655 imx31_litekit_config : unconfig
2656 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2658 imx31_phycore_config : unconfig
2659 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2661 mx31ads_config : unconfig
2662 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2664 #========================================================================
2665 # i386
2666 #========================================================================
2667 #########################################################################
2668 ## AMD SC520 CDP
2669 #########################################################################
2670 sc520_cdp_config : unconfig
2671 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2673 sc520_spunk_config : unconfig
2674 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2676 sc520_spunk_rel_config : unconfig
2677 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2679 #========================================================================
2680 # MIPS
2681 #========================================================================
2682 #########################################################################
2683 ## MIPS32 4Kc
2684 #########################################################################
2686 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2688 incaip_100MHz_config \
2689 incaip_133MHz_config \
2690 incaip_150MHz_config \
2691 incaip_config: unconfig
2692 @mkdir -p $(obj)include
2693 @[ -z "$(findstring _100MHz,$@)" ] || \
2694 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2695 $(XECHO) "... with 100MHz system clock" ; \
2697 @[ -z "$(findstring _133MHz,$@)" ] || \
2698 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2699 $(XECHO) "... with 133MHz system clock" ; \
2701 @[ -z "$(findstring _150MHz,$@)" ] || \
2702 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2703 $(XECHO) "... with 150MHz system clock" ; \
2705 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2707 tb0229_config: unconfig
2708 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2710 #########################################################################
2711 ## MIPS32 AU1X00
2712 #########################################################################
2713 dbau1000_config : unconfig
2714 @mkdir -p $(obj)include
2715 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2716 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2718 dbau1100_config : unconfig
2719 @mkdir -p $(obj)include
2720 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2721 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2723 dbau1500_config : unconfig
2724 @mkdir -p $(obj)include
2725 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2726 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2728 dbau1550_config : unconfig
2729 @mkdir -p $(obj)include
2730 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2731 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2733 dbau1550_el_config : unconfig
2734 @mkdir -p $(obj)include
2735 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2736 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2738 pb1000_config : unconfig
2739 @mkdir -p $(obj)include
2740 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2741 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2743 gth2_config: unconfig
2744 @mkdir -p $(obj)include
2745 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2746 @$(MKCONFIG) -a gth2 mips mips gth2
2748 qemu_mips_config: unconfig
2749 @mkdir -p $(obj)include
2750 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2751 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2753 #########################################################################
2754 ## MIPS64 5Kc
2755 #########################################################################
2757 purple_config : unconfig
2758 @$(MKCONFIG) $(@:_config=) mips mips purple
2760 #========================================================================
2761 # Nios
2762 #========================================================================
2763 #########################################################################
2764 ## Nios32
2765 #########################################################################
2767 DK1C20_safe_32_config \
2768 DK1C20_standard_32_config \
2769 DK1C20_config: unconfig
2770 @mkdir -p $(obj)include
2771 @[ -z "$(findstring _safe_32,$@)" ] || \
2772 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2773 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2775 @[ -z "$(findstring _standard_32,$@)" ] || \
2776 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2777 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2779 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2780 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2781 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2783 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2785 DK1S10_safe_32_config \
2786 DK1S10_standard_32_config \
2787 DK1S10_mtx_ldk_20_config \
2788 DK1S10_config: unconfig
2789 @mkdir -p $(obj)include
2790 @[ -z "$(findstring _safe_32,$@)" ] || \
2791 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2792 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2794 @[ -z "$(findstring _standard_32,$@)" ] || \
2795 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2796 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2798 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2799 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2800 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2802 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2803 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2804 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2806 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2808 ADNPESC1_DNPEVA2_base_32_config \
2809 ADNPESC1_base_32_config \
2810 ADNPESC1_config: unconfig
2811 @mkdir -p $(obj)include
2812 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2813 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2814 $(XECHO) "... DNP/EVA2 configuration" ; \
2816 @[ -z "$(findstring _base_32,$@)" ] || \
2817 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2818 $(XECHO) "... NIOS 'base_32' configuration" ; \
2820 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2821 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2822 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2824 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2826 #########################################################################
2827 ## Nios-II
2828 #########################################################################
2830 EP1C20_config : unconfig
2831 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2833 EP1S10_config : unconfig
2834 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2836 EP1S40_config : unconfig
2837 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2839 PK1C20_config : unconfig
2840 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2842 PCI5441_config : unconfig
2843 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2845 #========================================================================
2846 # MicroBlaze
2847 #========================================================================
2848 #########################################################################
2849 ## Microblaze
2850 #########################################################################
2851 suzaku_config: unconfig
2852 @mkdir -p $(obj)include
2853 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2854 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2856 ml401_config: unconfig
2857 @mkdir -p $(obj)include
2858 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2859 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2861 xupv2p_config: unconfig
2862 @mkdir -p $(obj)include
2863 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2864 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2866 #========================================================================
2867 # Blackfin
2868 #========================================================================
2870 # Analog Devices boards
2871 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2873 $(BFIN_BOARDS:%=%_config) : unconfig
2874 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2876 $(BFIN_BOARDS):
2877 $(MAKE) $@_config
2878 $(MAKE)
2880 #========================================================================
2881 # AVR32
2882 #========================================================================
2883 #########################################################################
2884 ## AT32AP7xxx
2885 #########################################################################
2887 atstk1002_config : unconfig
2888 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2890 atstk1003_config : unconfig
2891 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2893 atstk1004_config : unconfig
2894 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2896 atngw100_config : unconfig
2897 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2899 #########################################################################
2900 #########################################################################
2901 #########################################################################
2903 #########################################################################
2904 ## sh3 (Renesas SuperH)
2905 #########################################################################
2906 mpr2_config: unconfig
2907 @ >include/config.h
2908 @echo "#define CONFIG_MPR2 1" >> include/config.h
2909 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2911 ms7720se_config: unconfig
2912 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2913 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2915 #########################################################################
2916 ## sh4 (Renesas SuperH)
2917 #########################################################################
2918 ms7750se_config: unconfig
2919 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2920 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2922 ms7722se_config : unconfig
2923 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2924 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2926 MigoR_config : unconfig
2927 @ >include/config.h
2928 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2929 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2931 r7780mp_config: unconfig
2932 @ >include/config.h
2933 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2934 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2936 r2dplus_config : unconfig
2937 @ >include/config.h
2938 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2939 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2941 #########################################################################
2942 #########################################################################
2943 #########################################################################
2945 clean:
2946 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2947 $(obj)examples/hello_world $(obj)examples/interrupt \
2948 $(obj)examples/mem_to_mem_idma2intr \
2949 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2950 $(obj)examples/test_burst $(obj)examples/timer
2951 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2952 $(obj)tools/env/{fw_printenv,fw_setenv} \
2953 $(obj)tools/envcrc \
2954 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2955 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2956 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2957 $(obj)tools/ncb $(obj)tools/ubsha1
2958 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2959 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2960 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2961 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2962 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2963 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2964 @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
2965 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2966 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2967 @find $(OBJTREE) -type f \
2968 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2969 -o -name '*.o' -o -name '*.a' \) -print \
2970 | xargs rm -f
2972 clobber: clean
2973 @find $(OBJTREE) -type f \( -name .depend \
2974 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2975 -print0 \
2976 | xargs -0 rm -f
2977 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2978 $(obj)cscope.* $(obj)*.*~
2979 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2980 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2981 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
2982 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
2983 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2984 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2985 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2986 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2987 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2989 ifeq ($(OBJTREE),$(SRCTREE))
2990 mrproper \
2991 distclean: clobber unconfig
2992 else
2993 mrproper \
2994 distclean: clobber unconfig
2995 rm -rf $(obj)*
2996 endif
2998 backup:
2999 F=`basename $(TOPDIR)` ; cd .. ; \
3000 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3002 #########################################################################