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
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,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
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.
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
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'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
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.
79 ifeq ("$(origin O)", "command line")
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))
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
104 ifneq ($(OBJTREE),$(SRCTREE))
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))
121 # Make sure CDPATH settings don't interfere
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
133 ifeq ($(HOSTARCH),$(ARCH))
137 CROSS_COMPILE = ppc_8xx-
140 CROSS_COMPILE = arm-linux-
143 CROSS_COMPILE = i386-linux-
146 CROSS_COMPILE = mips_4KC-
149 CROSS_COMPILE = nios-elf-
152 CROSS_COMPILE = nios2-elf-
155 CROSS_COMPILE = m68k-elf-
157 ifeq ($(ARCH),microblaze)
160 ifeq ($(ARCH),blackfin)
161 CROSS_COMPILE = bfin-uclinux-
164 CROSS_COMPILE = avr32-linux-
167 CROSS_COMPILE = sh4-linux-
169 endif # HOSTARCH,ARCH
170 endif # 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
182 OBJS += cpu/$(CPU)/start16.o
183 OBJS += cpu/$(CPU)/reset.o
186 OBJS += cpu/$(CPU)/resetvec.o
188 ifeq ($(CPU),mpc85xx)
189 OBJS += cpu/$(CPU)/resetvec.o
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
200 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
203 LIBS += cpu/ixp/npe/libnpe.a
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
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
229 ifeq ($(CPU),mpc85xx)
230 LIBS += drivers/qe/qe.a
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
249 LIBS := $(addprefix $(obj),$(LIBS))
250 .PHONY : $(LIBS) $(VERSION_FILE)
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)
263 ifeq ($(CONFIG_NAND_U_BOOT),y)
265 U_BOOT_NAND = $(obj)u-boot-nand.bin
268 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
269 ONENAND_IPL = onenand_ipl
270 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
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
286 $(obj)u-boot.hex: $(obj)u-boot
287 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
289 $(obj)u-boot.srec: $(obj)u-boot
290 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
292 $(obj)u-boot.bin: $(obj)u-boot
293 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
295 $(obj)u-boot.ldr: $(obj)u-boot
296 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
298 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
299 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
301 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
302 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
304 $(obj)u-boot.img: $(obj)u-boot.bin
305 ./tools/mkimage -A $(ARCH) -T firmware -C none \
306 -a $(TEXT_BASE) -e 0 \
307 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
308 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
311 $(obj)u-boot.sha1: $(obj)u-boot.bin
312 $(obj)tools/ubsha1 $(obj)u-boot.bin
314 $(obj)u-boot.dis: $(obj)u-boot
315 $(OBJDUMP) -d $< > $@
317 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
318 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
319 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
320 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
321 -Map u-boot.map -o u-boot
323 $(OBJS): depend $(obj)include/autoconf.mk
324 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
326 $(LIBS): depend $(obj)include/autoconf.mk
327 $(MAKE) -C $(dir $(subst $(obj),,$@))
329 $(SUBDIRS): depend $(obj)include/autoconf.mk
332 $(LDSCRIPT): depend $(obj)include/autoconf.mk
333 $(MAKE) -C $(dir $@) $(notdir $@)
335 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
336 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
338 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
339 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
341 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
342 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
344 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
345 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
346 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
347 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
350 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
351 echo -n "$(U_BOOT_VERSION)" ; \
352 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
355 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
358 $(MAKE) -C tools/gdb all || exit 1
361 $(MAKE) -C tools/updater all || exit 1
364 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
366 depend dep: $(VERSION_FILE)
367 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
369 TAG_SUBDIRS += include
370 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
371 TAG_SUBDIRS += cpu/$(CPU)
372 TAG_SUBDIRS += lib_$(ARCH)
373 TAG_SUBDIRS += fs/cramfs
374 TAG_SUBDIRS += fs/fat
375 TAG_SUBDIRS += fs/fdos
376 TAG_SUBDIRS += fs/jffs2
379 TAG_SUBDIRS += common
380 TAG_SUBDIRS += drivers/bios_emulator
381 TAG_SUBDIRS += drivers/block
382 TAG_SUBDIRS += drivers/hwmon
383 TAG_SUBDIRS += drivers/i2c
384 TAG_SUBDIRS += drivers/input
385 TAG_SUBDIRS += drivers/misc
386 TAG_SUBDIRS += drivers/mtd
387 TAG_SUBDIRS += drivers/mtd/nand
388 TAG_SUBDIRS += drivers/mtd/nand_legacy
389 TAG_SUBDIRS += drivers/mtd/onenand
390 TAG_SUBDIRS += drivers/net
391 TAG_SUBDIRS += drivers/net/sk98lin
392 TAG_SUBDIRS += drivers/pci
393 TAG_SUBDIRS += drivers/pcmcia
394 TAG_SUBDIRS += drivers/qe
395 TAG_SUBDIRS += drivers/rtc
396 TAG_SUBDIRS += drivers/serial
397 TAG_SUBDIRS += drivers/spi
398 TAG_SUBDIRS += drivers/usb
399 TAG_SUBDIRS += drivers/video
402 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
403 -name '*.[ch]' -print`
406 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
407 -name '*.[ch]' -print`
409 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
413 $(obj)System.map: $(obj)u-boot
415 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
416 sort > $(obj)System.map
419 # Auto-generate the autoconf.mk file (which is included by all makefiles)
421 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
422 # the dep file is only include in this top level makefile to determine when
423 # to regenerate the autoconf.mk file.
424 $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
425 @$(XECHO) Generating include/autoconf.mk ; \
427 : Generate the dependancies ; \
428 $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
429 : Extract the config macros ; \
430 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
432 sinclude $(obj)include/autoconf.mk.dep
434 #########################################################################
436 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
437 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
438 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
439 dep tags ctags etags cscope $(obj)System.map:
440 @echo "System not configured - see README" >&2
446 git log --no-merges U-Boot-1_1_5.. | \
447 unexpand -a | sed -e 's/\s\s*$$//' > $@
449 #########################################################################
452 @rm -f $(obj)include/config.h $(obj)include/config.mk \
453 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
454 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
456 #========================================================================
458 #========================================================================
460 #########################################################################
462 #########################################################################
464 canmb_config: unconfig
465 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
467 cmi_mpc5xx_config: unconfig
468 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
470 PATI_config: unconfig
471 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
473 #########################################################################
475 #########################################################################
478 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
480 BC3450_config: unconfig
481 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
483 cpci5200_config: unconfig
484 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
486 hmi1001_config: unconfig
487 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
490 Lite5200_LOWBOOT_config \
491 Lite5200_LOWBOOT08_config \
492 icecube_5200_config \
493 icecube_5200_LOWBOOT_config \
494 icecube_5200_LOWBOOT08_config \
495 icecube_5200_DDR_config \
496 icecube_5200_DDR_LOWBOOT_config \
497 icecube_5200_DDR_LOWBOOT08_config \
498 icecube_5100_config: unconfig
499 @mkdir -p $(obj)include
500 @mkdir -p $(obj)board/icecube
501 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
502 { if [ "$(findstring DDR,$@)" ] ; \
503 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
504 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
506 $(XECHO) "... with LOWBOOT configuration" ; \
508 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
509 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
510 echo "... with 8 MB flash only" ; \
511 $(XECHO) "... with LOWBOOT configuration" ; \
513 @[ -z "$(findstring DDR,$@)" ] || \
514 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
515 $(XECHO) "... DDR memory revision" ; \
517 @[ -z "$(findstring 5200,$@)" ] || \
518 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
519 $(XECHO) "... with MPC5200 processor" ; \
521 @[ -z "$(findstring 5100,$@)" ] || \
522 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
523 $(XECHO) "... with MGT5100 processor" ; \
525 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
527 jupiter_config: unconfig
528 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
530 v38b_config: unconfig
531 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
533 inka4x0_config: unconfig
534 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
537 lite5200b_PM_config \
538 lite5200b_LOWBOOT_config: unconfig
539 @mkdir -p $(obj)include
540 @mkdir -p $(obj)board/icecube
541 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
542 @ $(XECHO) "... DDR memory revision"
543 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
544 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
545 @[ -z "$(findstring _PM_,$@)" ] || \
546 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
547 $(XECHO) "... with power management (low-power mode) support" ; \
549 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
550 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
551 $(XECHO) "... with LOWBOOT configuration" ; \
553 @ $(XECHO) "... with MPC5200B processor"
554 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
557 mcc200_SDRAM_config \
558 mcc200_highboot_config \
559 mcc200_COM12_config \
560 mcc200_COM12_SDRAM_config \
561 mcc200_COM12_highboot_config \
562 mcc200_COM12_highboot_SDRAM_config \
563 mcc200_highboot_SDRAM_config \
566 prs200_highboot_config \
567 prs200_highboot_DDR_config: unconfig
568 @mkdir -p $(obj)include
569 @mkdir -p $(obj)board/mcc200
570 @[ -n "$(findstring highboot,$@)" ] || \
571 { $(XECHO) "... with lowboot configuration" ; \
573 @[ -z "$(findstring highboot,$@)" ] || \
574 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
575 $(XECHO) "... with highboot configuration" ; \
577 @[ -n "$(findstring _SDRAM,$@)" ] || \
578 { if [ -n "$(findstring mcc200,$@)" ]; \
580 $(XECHO) "... with DDR" ; \
582 if [ -n "$(findstring _DDR,$@)" ];\
584 $(XECHO) "... with DDR" ; \
586 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
587 $(XECHO) "... with SDRAM" ; \
591 @[ -z "$(findstring _SDRAM,$@)" ] || \
592 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
593 $(XECHO) "... with SDRAM" ; \
595 @[ -z "$(findstring COM12,$@)" ] || \
596 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
597 $(XECHO) "... with console on COM12" ; \
599 @[ -z "$(findstring prs200,$@)" ] || \
600 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
602 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
604 mecp5200_config: unconfig
605 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
607 munices_config: unconfig
608 @$(MKCONFIG) munices ppc mpc5xxx munices
610 o2dnt_config: unconfig
611 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
613 pf5200_config: unconfig
614 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
618 PM520_ROMBOOT_config \
619 PM520_ROMBOOT_DDR_config: unconfig
620 @mkdir -p $(obj)include
621 @[ -z "$(findstring DDR,$@)" ] || \
622 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
623 $(XECHO) "... DDR memory revision" ; \
625 @[ -z "$(findstring ROMBOOT,$@)" ] || \
626 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
627 $(XECHO) "... booting from 8-bit flash" ; \
629 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
631 smmaco4_config: unconfig
632 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
634 cm5200_config: unconfig
635 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
637 spieval_config: unconfig
638 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
641 TB5200_config: unconfig
642 @mkdir -p $(obj)include
643 @[ -z "$(findstring _B,$@)" ] || \
644 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
645 $(XECHO) "... with MPC5200B processor" ; \
647 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
651 TOP5200_config: unconfig
652 @mkdir -p $(obj)include
653 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
654 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
658 Total5200_lowboot_config \
659 Total5200_Rev2_config \
660 Total5200_Rev2_lowboot_config: unconfig
661 @mkdir -p $(obj)include
662 @mkdir -p $(obj)board/total5200
663 @[ -z "$(findstring 5100,$@)" ] || \
664 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
665 $(XECHO) "... with MGT5100 processor" ; \
667 @[ -z "$(findstring 5200,$@)" ] || \
668 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
669 $(XECHO) "... with MPC5200 processor" ; \
671 @[ -n "$(findstring Rev,$@)" ] || \
672 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
673 $(XECHO) "... revision 1 board" ; \
675 @[ -z "$(findstring Rev2_,$@)" ] || \
676 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
677 $(XECHO) "... revision 2 board" ; \
679 @[ -z "$(findstring lowboot_,$@)" ] || \
680 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
681 $(XECHO) "... with lowboot configuration" ; \
683 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
686 cam5200_niosflash_config \
690 TQM5200S_HIGHBOOT_config \
692 TQM5200_B_HIGHBOOT_config \
694 TQM5200_STK100_config: unconfig
695 @mkdir -p $(obj)include
696 @mkdir -p $(obj)board/tqm5200
697 @[ -z "$(findstring cam5200,$@)" ] || \
698 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
699 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
700 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
701 $(XECHO) "... TQM5200S on Cam5200" ; \
703 @[ -z "$(findstring niosflash,$@)" ] || \
704 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
705 $(XECHO) "... with NIOS flash driver" ; \
707 @[ -z "$(findstring fo300,$@)" ] || \
708 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
709 $(XECHO) "... TQM5200 on FO300" ; \
711 @[ -z "$(findstring MiniFAP,$@)" ] || \
712 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
713 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
715 @[ -z "$(findstring STK100,$@)" ] || \
716 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
717 $(XECHO) "... on a STK52XX.100 base board" ; \
719 @[ -z "$(findstring TQM5200_B,$@)" ] || \
720 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
722 @[ -z "$(findstring TQM5200S,$@)" ] || \
723 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
724 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
726 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
727 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
729 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
730 uc101_config: unconfig
731 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
732 motionpro_config: unconfig
733 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
736 #########################################################################
738 #########################################################################
742 @mkdir -p $(obj)include
743 @if [ "$(findstring _PCI_,$@)" ] ; then \
744 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
745 $(XECHO) "... with PCI enabled" ; \
747 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
750 #########################################################################
752 #########################################################################
758 @mkdir -p $(obj)include
759 $(if $(findstring AdderII,$@), \
760 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
761 @$(MKCONFIG) -a Adder ppc mpc8xx adder
763 AdderUSB_config: unconfig
764 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
771 FADS860T_config: unconfig
772 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
774 AMX860_config : unconfig
775 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
777 c2mon_config: unconfig
778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
783 cogent_mpc8xx_config: unconfig
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
786 ELPT860_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
789 EP88x_config: unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
792 ESTEEM192E_config: unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
795 ETX094_config : unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
798 FLAGADM_config: unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
801 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
804 GEN860T_config: unconfig
805 @mkdir -p $(obj)include
806 @[ -z "$(findstring _SC,$@)" ] || \
807 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
808 $(XECHO) "With reduced H/W feature set (SC)..." ; \
810 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
812 GENIETV_config: unconfig
813 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
816 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
818 hermes_config : unconfig
819 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
821 HMI10_config : unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
824 IAD210_config: unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
827 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
829 ICU862_100MHz_config \
830 ICU862_config: unconfig
831 @mkdir -p $(obj)include
832 @[ -z "$(findstring _100MHz,$@)" ] || \
833 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
834 $(XECHO) "... with 100MHz system clock" ; \
836 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
838 IP860_config : unconfig
839 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
843 IVML24_config: unconfig
844 @mkdir -p $(obj)include
845 @[ -z "$(findstring IVML24_config,$@)" ] || \
846 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
848 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
849 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
851 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
852 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
854 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
858 IVMS8_config: unconfig
859 @mkdir -p $(obj)include
860 @[ -z "$(findstring IVMS8_config,$@)" ] || \
861 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
863 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
864 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
867 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
869 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
871 KUP4K_config : unconfig
872 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
874 KUP4X_config : unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
877 LANTEC_config : unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
880 lwmon_config: unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
884 MBX860T_config: unconfig
885 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
887 mgsuvd_config: unconfig
888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
890 MHPC_config: unconfig
891 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
893 MVS1_config : unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
896 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
899 NETVIA_config: unconfig
900 @mkdir -p $(obj)include
901 @[ -z "$(findstring NETVIA_config,$@)" ] || \
902 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
903 $(XECHO) "... Version 1" ; \
905 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
906 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
907 $(XECHO) "... Version 2" ; \
909 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
911 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
914 NETPHONE_config: unconfig
915 @mkdir -p $(obj)include
916 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
917 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
919 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
920 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
922 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
924 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
926 NETTA_ISDN_6412_SWAPHOOK_config \
927 NETTA_ISDN_SWAPHOOK_config \
928 NETTA_6412_SWAPHOOK_config \
929 NETTA_SWAPHOOK_config \
930 NETTA_ISDN_6412_config \
933 NETTA_config: unconfig
934 @mkdir -p $(obj)include
935 @[ -z "$(findstring ISDN_,$@)" ] || \
936 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
938 @[ -n "$(findstring ISDN_,$@)" ] || \
939 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
941 @[ -z "$(findstring 6412_,$@)" ] || \
942 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
944 @[ -n "$(findstring 6412_,$@)" ] || \
945 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
947 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
948 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
950 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
951 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
953 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
955 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
958 NETTA2_config: unconfig
959 @mkdir -p $(obj)include
960 @[ -z "$(findstring NETTA2_config,$@)" ] || \
961 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
963 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
964 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
966 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
970 CP850_config: unconfig
971 @mkdir -p $(obj)include
972 @[ -z "$(findstring CP850,$@)" ] || \
973 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
974 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
976 @[ -z "$(findstring Rev1,$@)" ] || \
977 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
979 @[ -z "$(findstring Rev2,$@)" ] || \
980 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
982 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
984 NX823_config: unconfig
985 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
987 pcu_e_config: unconfig
988 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
990 QS850_config: unconfig
991 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
993 QS823_config: unconfig
994 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
996 QS860T_config: unconfig
997 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
999 quantum_config: unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1002 R360MPI_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1005 RBC823_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1008 RPXClassic_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1011 RPXlite_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1014 RPXlite_DW_64_config \
1015 RPXlite_DW_LCD_config \
1016 RPXlite_DW_64_LCD_config \
1017 RPXlite_DW_NVRAM_config \
1018 RPXlite_DW_NVRAM_64_config \
1019 RPXlite_DW_NVRAM_LCD_config \
1020 RPXlite_DW_NVRAM_64_LCD_config \
1021 RPXlite_DW_config: unconfig
1022 @mkdir -p $(obj)include
1023 @[ -z "$(findstring _64,$@)" ] || \
1024 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1025 $(XECHO) "... with 64MHz system clock ..."; \
1027 @[ -z "$(findstring _LCD,$@)" ] || \
1028 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1029 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1030 $(XECHO) "... with LCD display ..."; \
1032 @[ -z "$(findstring _NVRAM,$@)" ] || \
1033 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1034 $(XECHO) "... with ENV in NVRAM ..."; \
1036 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1038 rmu_config: unconfig
1039 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1041 RRvision_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1044 RRvision_LCD_config: unconfig
1045 @mkdir -p $(obj)include
1046 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1047 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1048 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1050 SM850_config : unconfig
1051 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1053 spc1920_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1056 SPD823TS_config: unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1059 stxxtc_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1062 svm_sc8xx_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1065 SXNI855T_config: unconfig
1066 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1068 # EMK MPC8xx based modules
1069 TOP860_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1072 # Play some tricks for configuration selection
1073 # Only 855 and 860 boards may come with FEC
1074 # and only 823 boards may have LCD support
1075 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1081 TQM823L_LCD_config \
1094 virtlab2_config: unconfig
1095 @mkdir -p $(obj)include
1096 @[ -z "$(findstring _LCD,$@)" ] || \
1097 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1098 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1099 $(XECHO) "... with LCD display" ; \
1101 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1103 TTTech_config: unconfig
1104 @mkdir -p $(obj)include
1105 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1106 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1107 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1109 uc100_config : unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1112 v37_config: unconfig
1113 @mkdir -p $(obj)include
1114 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1115 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1116 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1118 wtk_config: unconfig
1119 @mkdir -p $(obj)include
1120 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1121 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1122 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1124 #########################################################################
1126 #########################################################################
1127 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1129 acadia_config: unconfig
1130 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1132 acadia_nand_config: unconfig
1133 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1134 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1135 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1136 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1137 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1138 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1140 ADCIOP_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1143 alpr_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1146 AP1000_config:unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1149 APC405_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1152 AR405_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1155 ASH405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1158 bamboo_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1161 bamboo_nand_config: unconfig
1162 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1163 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1164 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1165 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1166 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1167 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1169 bubinga_config: unconfig
1170 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1172 CANBT_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1175 # Canyonlands & Glacier use different U-Boot images
1176 canyonlands_config \
1177 glacier_config: unconfig
1178 @mkdir -p $(obj)include
1179 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1180 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1181 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1183 canyonlands_nand_config: unconfig
1184 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1185 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1186 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1187 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1188 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1189 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1192 CATcenter_25_config \
1193 CATcenter_33_config: unconfig
1194 @mkdir -p $(obj)include
1195 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1196 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1197 @[ -z "$(findstring _25,$@)" ] || \
1198 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1199 $(XECHO) "SysClk = 25MHz" ; \
1201 @[ -z "$(findstring _33,$@)" ] || \
1202 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1203 $(XECHO) "SysClk = 33MHz" ; \
1205 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1207 CPCI2DP_config: unconfig
1208 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1213 CPCI405AB_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1215 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1217 CPCIISER4_config: unconfig
1218 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1220 CRAYL1_config: unconfig
1221 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1223 csb272_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1226 csb472_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1229 DASA_SIM_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1232 DP405_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1235 DU405_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1238 DU440_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1241 ebony_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1244 ERIC_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1247 EXBITGEN_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1250 G2000_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1253 hcu4_config: unconfig
1254 @mkdir -p $(obj)board/netstal/common
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1257 hcu5_config: unconfig
1258 @mkdir -p $(obj)board/netstal/common
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1261 HH405_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1264 HUB405_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1267 JSE_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1270 KAREF_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1273 katmai_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1276 # Kilauea & Haleakala images are identical (recognized via PVR)
1278 haleakala_config: unconfig
1279 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1281 kilauea_nand_config \
1282 haleakala_nand_config: unconfig
1283 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1284 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1285 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1286 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1287 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1288 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1290 korat_config: unconfig
1291 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1293 luan_config: unconfig
1294 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1296 lwmon5_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1299 makalu_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1302 mcu25_config: unconfig
1303 @mkdir -p $(obj)board/netstal/common
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1306 METROBOX_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1309 MIP405_config: unconfig
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1312 MIP405T_config: unconfig
1313 @mkdir -p $(obj)include
1314 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1315 @$(XECHO) "Enable subset config for MIP405T"
1316 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1318 ML2_config: unconfig
1319 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1321 ml300_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1324 ocotea_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1328 ORSG_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1331 p3p440_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1334 PCI405_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1337 pcs440ep_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1340 PIP405_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1343 PLU405_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1346 PMC405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1349 PMC440_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1352 PPChameleonEVB_config \
1353 PPChameleonEVB_BA_25_config \
1354 PPChameleonEVB_ME_25_config \
1355 PPChameleonEVB_HI_25_config \
1356 PPChameleonEVB_BA_33_config \
1357 PPChameleonEVB_ME_33_config \
1358 PPChameleonEVB_HI_33_config: unconfig
1359 @mkdir -p $(obj)include
1360 @[ -z "$(findstring EVB_BA,$@)" ] || \
1361 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1362 $(XECHO) "... BASIC model" ; \
1364 @[ -z "$(findstring EVB_ME,$@)" ] || \
1365 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1366 $(XECHO) "... MEDIUM model" ; \
1368 @[ -z "$(findstring EVB_HI,$@)" ] || \
1369 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1370 $(XECHO) "... HIGH-END model" ; \
1372 @[ -z "$(findstring _25,$@)" ] || \
1373 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1374 $(XECHO) "SysClk = 25MHz" ; \
1376 @[ -z "$(findstring _33,$@)" ] || \
1377 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1378 $(XECHO) "SysClk = 33MHz" ; \
1380 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1382 sbc405_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1386 rainier_config: unconfig
1387 @mkdir -p $(obj)include
1388 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1389 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1390 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1392 sequoia_nand_config \
1393 rainier_nand_config: unconfig
1394 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1395 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1396 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1397 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1398 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1399 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1400 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1401 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1404 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1406 taihu_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1409 taishan_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1412 VOH405_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1415 VOM405_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1418 CMS700_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1422 W7OLMG_config: unconfig
1423 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1425 # Walnut & Sycamore images are identical (recognized via PVR)
1427 sycamore_config: unconfig
1428 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1430 WUH405_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1433 XPEDITE1K_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1437 yellowstone_config: unconfig
1438 @mkdir -p $(obj)include
1439 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1440 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1441 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1443 yucca_config: unconfig
1444 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1446 zeus_config: unconfig
1447 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1449 #########################################################################
1451 #########################################################################
1454 Yukon8220_config: unconfig
1455 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1457 sorcery_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1460 #########################################################################
1462 #########################################################################
1463 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1465 A3000_config: unconfig
1466 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1468 barco_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1471 BMW_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1475 CPC45_ROMBOOT_config: unconfig
1476 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1477 @cd $(obj)include ; \
1478 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1479 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1480 $(XECHO) "... booting from 8-bit flash" ; \
1482 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1483 $(XECHO) "... booting from 64-bit flash" ; \
1485 echo "export CONFIG_BOOT_ROM" >> config.mk;
1487 CU824_config: unconfig
1488 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1490 debris_config: unconfig
1491 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1493 eXalion_config: unconfig
1494 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1496 HIDDEN_DRAGON_config: unconfig
1497 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1499 kvme080_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1502 MOUSSE_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1505 MUSENKI_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1508 MVBLUE_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1511 OXC_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1514 PN62_config: unconfig
1515 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1517 Sandpoint8240_config: unconfig
1518 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1520 Sandpoint8245_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1523 sbc8240_config: unconfig
1524 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1526 SL8245_config: unconfig
1527 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1529 utx8245_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1532 #########################################################################
1534 #########################################################################
1536 atc_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1539 cogent_mpc8260_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1543 CPU86_ROMBOOT_config: unconfig
1544 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1545 @cd $(obj)include ; \
1546 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1547 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1548 $(XECHO) "... booting from 8-bit flash" ; \
1550 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1551 $(XECHO) "... booting from 64-bit flash" ; \
1553 echo "export CONFIG_BOOT_ROM" >> config.mk;
1556 CPU87_ROMBOOT_config: unconfig
1557 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1558 @cd $(obj)include ; \
1559 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1560 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1561 $(XECHO) "... booting from 8-bit flash" ; \
1563 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1564 $(XECHO) "... booting from 64-bit flash" ; \
1566 echo "export CONFIG_BOOT_ROM" >> config.mk;
1569 ep8248E_config : unconfig
1570 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1572 ep8260_config: unconfig
1573 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1575 ep82xxm_config: unconfig
1576 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1578 gw8260_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1581 hymod_config: unconfig
1582 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1584 IDS8247_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1587 IPHASE4539_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1591 ISPAN_REVB_config: unconfig
1592 @mkdir -p $(obj)include
1593 @if [ "$(findstring _REVB_,$@)" ] ; then \
1594 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1596 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1598 mgcoge_config : unconfig
1599 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1602 MPC8260ADS_lowboot_config \
1603 MPC8260ADS_33MHz_config \
1604 MPC8260ADS_33MHz_lowboot_config \
1605 MPC8260ADS_40MHz_config \
1606 MPC8260ADS_40MHz_lowboot_config \
1608 MPC8272ADS_lowboot_config \
1610 PQ2FADS_lowboot_config \
1612 PQ2FADS-VR_lowboot_config \
1614 PQ2FADS-ZU_lowboot_config \
1615 PQ2FADS-ZU_66MHz_config \
1616 PQ2FADS-ZU_66MHz_lowboot_config \
1618 @mkdir -p $(obj)include
1619 @mkdir -p $(obj)board/freescale/mpc8260ads
1620 $(if $(findstring PQ2FADS,$@), \
1621 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1622 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1623 $(if $(findstring MHz,$@), \
1624 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1625 $(if $(findstring VR,$@), \
1626 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1627 @[ -z "$(findstring lowboot_,$@)" ] || \
1628 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1629 $(XECHO) "... with lowboot configuration" ; \
1631 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1633 MPC8266ADS_config: unconfig
1634 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1636 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1638 PM825_ROMBOOT_config \
1639 PM825_BIGFLASH_config \
1640 PM825_ROMBOOT_BIGFLASH_config \
1642 PM826_ROMBOOT_config \
1643 PM826_BIGFLASH_config \
1644 PM826_ROMBOOT_BIGFLASH_config: unconfig
1645 @mkdir -p $(obj)include
1646 @mkdir -p $(obj)board/pm826
1647 @if [ "$(findstring PM825_,$@)" ] ; then \
1648 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1650 >$(obj)include/config.h ; \
1652 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1653 $(XECHO) "... booting from 8-bit flash" ; \
1654 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1655 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1656 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1657 $(XECHO) "... with 32 MB Flash" ; \
1658 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1661 $(XECHO) "... booting from 64-bit flash" ; \
1662 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1663 $(XECHO) "... with 32 MB Flash" ; \
1664 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1665 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1667 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1670 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1674 PM828_ROMBOOT_config \
1675 PM828_ROMBOOT_PCI_config: unconfig
1676 @mkdir -p $(obj)include
1677 @mkdir -p $(obj)board/pm826
1678 @if [ "$(findstring _PCI_,$@)" ] ; then \
1679 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1680 $(XECHO) "... with PCI enabled" ; \
1682 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1683 $(XECHO) "... booting from 8-bit flash" ; \
1684 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1685 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1687 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1689 ppmc8260_config: unconfig
1690 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1692 Rattler8248_config \
1693 Rattler_config: unconfig
1694 @mkdir -p $(obj)include
1695 $(if $(findstring 8248,$@), \
1696 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1697 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1699 RPXsuper_config: unconfig
1700 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1702 rsdproto_config: unconfig
1703 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1705 sacsng_config: unconfig
1706 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1708 sbc8260_config: unconfig
1709 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1711 SCM_config: unconfig
1712 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1724 TQM8265_AA_config: unconfig
1725 @mkdir -p $(obj)include
1727 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1728 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1729 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1730 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1731 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1732 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1733 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1734 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1735 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1736 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1737 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1739 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1740 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1742 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1743 echo "... with $${CFREQ}MHz system clock" ; \
1744 if [ "$${CACHE}" = "yes" ] ; then \
1745 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1746 $(XECHO) "... with L2 Cache support" ; \
1748 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1749 $(XECHO) "... without L2 Cache support" ; \
1751 if [ "$${BMODE}" = "60x" ] ; then \
1752 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1753 $(XECHO) "... with 60x Bus Mode" ; \
1755 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1756 $(XECHO) "... without 60x Bus Mode" ; \
1758 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1760 TQM8272_config: unconfig
1761 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1763 VoVPN-GW_66MHz_config \
1764 VoVPN-GW_100MHz_config: unconfig
1765 @mkdir -p $(obj)include
1766 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1767 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1769 ZPC1900_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1772 #########################################################################
1774 #########################################################################
1776 M52277EVB_config: unconfig
1777 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1780 M5235EVB_Flash16_config \
1781 M5235EVB_Flash32_config: unconfig
1783 M5235EVB_config) FLASH=16;; \
1784 M5235EVB_Flash16_config) FLASH=16;; \
1785 M5235EVB_Flash32_config) FLASH=32;; \
1787 if [ "$${FLASH}" != "16" ] ; then \
1788 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1789 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1790 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1792 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1793 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1795 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1797 M5249EVB_config : unconfig
1798 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1800 M5253EVBE_config : unconfig
1801 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1803 cobra5272_config : unconfig
1804 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1806 EB+MCF-EV123_config : unconfig
1807 @mkdir -p $(obj)include
1808 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1809 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1810 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1812 EB+MCF-EV123_internal_config : unconfig
1813 @mkdir -p $(obj)include
1814 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1815 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1816 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1818 idmr_config : unconfig
1819 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1821 M5271EVB_config : unconfig
1822 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1824 M5272C3_config : unconfig
1825 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1827 M5275EVB_config : unconfig
1828 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1830 M5282EVB_config : unconfig
1831 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1833 TASREG_config : unconfig
1834 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1837 M5329BFEE_config : unconfig
1839 M5329AFEE_config) NAND=0;; \
1840 M5329BFEE_config) NAND=16;; \
1842 if [ "$${NAND}" != "0" ] ; then \
1843 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1845 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1847 M5373EVB_config : unconfig
1849 M5373EVB_config) NAND=16;; \
1851 if [ "$${NAND}" != "0" ] ; then \
1852 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1854 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1857 M54455EVB_atmel_config \
1858 M54455EVB_intel_config \
1859 M54455EVB_a33_config \
1860 M54455EVB_a66_config \
1861 M54455EVB_i33_config \
1862 M54455EVB_i66_config : unconfig
1864 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1865 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1866 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1867 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1868 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1869 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1870 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1872 if [ "$${FLASH}" = "INTEL" ] ; then \
1873 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1874 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1875 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1876 $(XECHO) "... with INTEL boot..." ; \
1878 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1879 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1880 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1881 $(XECHO) "... with ATMEL boot..." ; \
1883 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1884 $(XECHO) "... with $${FREQ}Hz input clock"
1885 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1893 M5475GFE_config : unconfig
1895 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1896 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1897 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1898 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1899 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1900 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1901 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1903 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1904 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1905 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1906 if [ "$${RAM1}" != "0" ] ; then \
1907 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1909 if [ "$${CODE}" != "0" ] ; then \
1910 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1912 if [ "$${VID}" == "1" ] ; then \
1913 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1915 if [ "$${USB}" == "1" ] ; then \
1916 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1918 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1927 M5485HFE_config : unconfig
1929 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1930 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1931 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1932 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1933 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1934 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1935 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1936 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1938 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1939 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1940 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1941 if [ "$${RAM1}" != "0" ] ; then \
1942 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1944 if [ "$${CODE}" != "0" ] ; then \
1945 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1947 if [ "$${VID}" == "1" ] ; then \
1948 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1950 if [ "$${USB}" == "1" ] ; then \
1951 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1953 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1955 #########################################################################
1957 #########################################################################
1959 MPC8313ERDB_33_config \
1960 MPC8313ERDB_66_config: unconfig
1961 @mkdir -p $(obj)include
1962 @if [ "$(findstring _33_,$@)" ] ; then \
1963 $(XECHO) -n "...33M ..." ; \
1964 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1966 if [ "$(findstring _66_,$@)" ] ; then \
1967 $(XECHO) -n "...66M..." ; \
1968 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1970 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1972 MPC8315ERDB_config: unconfig
1973 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1975 MPC8323ERDB_config: unconfig
1976 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1978 MPC832XEMDS_config \
1979 MPC832XEMDS_HOST_33_config \
1980 MPC832XEMDS_HOST_66_config \
1981 MPC832XEMDS_SLAVE_config \
1982 MPC832XEMDS_ATM_config: unconfig
1983 @mkdir -p $(obj)include
1984 @if [ "$(findstring _HOST_,$@)" ] ; then \
1985 $(XECHO) -n "... PCI HOST " ; \
1986 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1988 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1989 $(XECHO) "...PCI SLAVE 66M" ; \
1990 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1991 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1993 if [ "$(findstring _33_,$@)" ] ; then \
1994 $(XECHO) -n "...33M ..." ; \
1995 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1996 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1998 if [ "$(findstring _66_,$@)" ] ; then \
1999 $(XECHO) -n "...66M..." ; \
2000 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2001 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2003 if [ "$(findstring _ATM_,$@)" ] ; then \
2004 $(XECHO) -n "...ATM..." ; \
2005 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2006 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2008 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2010 MPC8349EMDS_config: unconfig
2011 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2014 MPC8349ITX_LOWBOOT_config \
2015 MPC8349ITXGP_config: unconfig
2016 @mkdir -p $(obj)include
2017 @mkdir -p $(obj)board/freescale/mpc8349itx
2018 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2019 @if [ "$(findstring GP,$@)" ] ; then \
2020 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2022 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2023 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2025 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2027 MPC8360EMDS_config \
2028 MPC8360EMDS_HOST_33_config \
2029 MPC8360EMDS_HOST_66_config \
2030 MPC8360EMDS_SLAVE_config \
2031 MPC8360EMDS_ATM_config: unconfig
2032 @mkdir -p $(obj)include
2033 @if [ "$(findstring _HOST_,$@)" ] ; then \
2034 $(XECHO) -n "... PCI HOST " ; \
2035 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2037 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2038 $(XECHO) "...PCI SLAVE 66M" ; \
2039 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2040 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2042 if [ "$(findstring _33_,$@)" ] ; then \
2043 $(XECHO) -n "...33M ..." ; \
2044 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2045 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2047 if [ "$(findstring _66_,$@)" ] ; then \
2048 $(XECHO) -n "...66M..." ; \
2049 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2050 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2052 if [ "$(findstring _ATM_,$@)" ] ; then \
2053 $(XECHO) -n "...ATM..." ; \
2054 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2055 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2057 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2059 MPC8360ERDK_33_config \
2060 MPC8360ERDK_66_config \
2061 MPC8360ERDK_config: unconfig
2062 @mkdir -p $(obj)include
2063 @if [ "$(findstring _33_,$@)" ] ; then \
2064 $(XECHO) -n "... CLKIN 33MHz " ; \
2065 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2067 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2069 MPC837XEMDS_config \
2070 MPC837XEMDS_HOST_config: unconfig
2071 @mkdir -p $(obj)include
2072 @if [ "$(findstring _HOST_,$@)" ] ; then \
2073 $(XECHO) -n "... PCI HOST " ; \
2074 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2076 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2078 MPC837XERDB_config: unconfig
2079 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2081 sbc8349_config: unconfig
2082 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2084 TQM834x_config: unconfig
2085 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2088 #########################################################################
2090 #########################################################################
2092 ATUM8548_config: unconfig
2093 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2095 MPC8540ADS_config: unconfig
2096 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2098 MPC8540EVAL_config \
2099 MPC8540EVAL_33_config \
2100 MPC8540EVAL_66_config \
2101 MPC8540EVAL_33_slave_config \
2102 MPC8540EVAL_66_slave_config: unconfig
2103 @mkdir -p $(obj)include
2104 @if [ "$(findstring _33_,$@)" ] ; then \
2105 $(XECHO) "... 33 MHz PCI" ; \
2107 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2108 $(XECHO) "... 66 MHz PCI" ; \
2110 if [ "$(findstring _slave_,$@)" ] ; then \
2111 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2112 $(XECHO) " slave" ; \
2114 $(XECHO) " host" ; \
2116 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2118 MPC8560ADS_config: unconfig
2119 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2121 MPC8541CDS_legacy_config \
2122 MPC8541CDS_config: unconfig
2123 @mkdir -p $(obj)include
2124 @if [ "$(findstring _legacy_,$@)" ] ; then \
2125 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2126 $(XECHO) "... legacy" ; \
2128 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2130 MPC8544DS_config: unconfig
2131 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2133 MPC8548CDS_legacy_config \
2134 MPC8548CDS_config: unconfig
2135 @mkdir -p $(obj)include
2136 @if [ "$(findstring _legacy_,$@)" ] ; then \
2137 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2138 $(XECHO) "... legacy" ; \
2140 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2142 MPC8555CDS_legacy_config \
2143 MPC8555CDS_config: unconfig
2144 @mkdir -p $(obj)include
2145 @if [ "$(findstring _legacy_,$@)" ] ; then \
2146 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2147 $(XECHO) "... legacy" ; \
2149 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2151 MPC8568MDS_config: unconfig
2152 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2154 PM854_config: unconfig
2155 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2157 PM856_config: unconfig
2158 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2162 sbc8540_66_config: unconfig
2163 @mkdir -p $(obj)include
2164 @if [ "$(findstring _66_,$@)" ] ; then \
2165 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2166 $(XECHO) "... 66 MHz PCI" ; \
2168 $(XECHO) "... 33 MHz PCI" ; \
2170 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2172 sbc8548_config: unconfig
2173 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2177 sbc8560_66_config: unconfig
2178 @mkdir -p $(obj)include
2179 @if [ "$(findstring _66_,$@)" ] ; then \
2180 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2181 $(XECHO) "... 66 MHz PCI" ; \
2183 $(XECHO) "... 33 MHz PCI" ; \
2185 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2187 stxgp3_config: unconfig
2188 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2191 stxssa_4M_config: unconfig
2192 @mkdir -p $(obj)include
2193 @if [ "$(findstring _4M_,$@)" ] ; then \
2194 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2195 $(XECHO) "... with 4 MiB flash memory" ; \
2197 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2202 TQM8560_config: unconfig
2203 @mkdir -p $(obj)include
2204 @CTYPE=$(subst TQM,,$(@:_config=)); \
2205 $(XECHO) "... TQM"$${CTYPE}; \
2206 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2207 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2208 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2209 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2210 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2211 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2213 #########################################################################
2215 #########################################################################
2217 MPC8610HPCD_config: unconfig
2218 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2220 MPC8641HPCN_config: unconfig
2221 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2223 sbc8641d_config: unconfig
2224 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2226 #########################################################################
2228 #########################################################################
2230 AmigaOneG3SE_config: unconfig
2231 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2233 BAB7xx_config: unconfig
2234 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2236 CPCI750_config: unconfig
2237 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2239 DB64360_config: unconfig
2240 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2242 DB64460_config: unconfig
2243 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2245 ELPPC_config: unconfig
2246 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2249 EVB64260_750CX_config: unconfig
2250 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2252 mpc7448hpc2_config: unconfig
2253 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2255 P3G4_config: unconfig
2256 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2259 p3m7448_config: unconfig
2260 @mkdir -p $(obj)include
2261 @if [ "$(findstring 750_,$@)" ] ; then \
2262 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2264 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2266 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2269 PCIPPC6_config: unconfig
2270 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2272 ZUMA_config: unconfig
2273 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2275 ppmc7xx_config: unconfig
2276 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2278 #========================================================================
2280 #========================================================================
2281 #########################################################################
2282 ## StrongARM Systems
2283 #########################################################################
2285 assabet_config : unconfig
2286 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2288 dnp1110_config : unconfig
2289 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2291 gcplus_config : unconfig
2292 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2294 lart_config : unconfig
2295 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2297 shannon_config : unconfig
2298 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2300 #########################################################################
2302 #########################################################################
2304 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2306 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2308 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2310 at91cap9adk_config : unconfig
2311 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91cap9
2313 at91rm9200dk_config : unconfig
2314 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2316 cmc_pu2_config : unconfig
2317 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2319 csb637_config : unconfig
2320 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2322 mp2usb_config : unconfig
2323 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2325 m501sk_config : unconfig
2326 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2328 ########################################################################
2329 ## ARM Integrator boards - see doc/README-integrator for more info.
2330 integratorap_config \
2339 ap946es_config: unconfig
2340 @board/integratorap/split_by_variant.sh $@
2342 integratorcp_config \
2351 cp1026_config: unconfig
2352 @board/integratorcp/split_by_variant.sh $@
2354 kb9202_config : unconfig
2355 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2358 lpd7a404_config: unconfig
2359 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2361 mx1ads_config : unconfig
2362 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2364 mx1fs2_config : unconfig
2365 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2367 netstar_config: unconfig
2368 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2370 omap1510inn_config : unconfig
2371 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2373 omap5912osk_config : unconfig
2374 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2376 davinci_dvevm_config : unconfig
2377 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2379 davinci_schmoogie_config : unconfig
2380 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2382 davinci_sonata_config : unconfig
2383 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2385 pmdra_config : unconfig
2386 @$(MKCONFIG) $(@:_config=) arm arm926ejs pmdra prodrive davinci
2388 omap1610inn_config \
2389 omap1610inn_cs0boot_config \
2390 omap1610inn_cs3boot_config \
2391 omap1610inn_cs_autoboot_config \
2393 omap1610h2_cs0boot_config \
2394 omap1610h2_cs3boot_config \
2395 omap1610h2_cs_autoboot_config: unconfig
2396 @mkdir -p $(obj)include
2397 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2398 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2399 $(XECHO) "... configured for CS0 boot"; \
2400 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2401 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2402 $(XECHO) "... configured for CS_AUTO boot"; \
2404 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2405 $(XECHO) "... configured for CS3 boot"; \
2407 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2410 omap730p2_cs0boot_config \
2411 omap730p2_cs3boot_config : unconfig
2412 @mkdir -p $(obj)include
2413 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2414 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2415 $(XECHO) "... configured for CS0 boot"; \
2417 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2418 $(XECHO) "... configured for CS3 boot"; \
2420 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2422 sbc2410x_config: unconfig
2423 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2425 scb9328_config : unconfig
2426 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2428 smdk2400_config : unconfig
2429 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2431 smdk2410_config : unconfig
2432 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2434 SX1_config : unconfig
2435 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2437 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2439 trab_bigram_config \
2440 trab_bigflash_config \
2441 trab_old_config: unconfig
2442 @mkdir -p $(obj)include
2443 @mkdir -p $(obj)board/trab
2444 @[ -z "$(findstring _bigram,$@)" ] || \
2445 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2446 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2447 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2449 @[ -z "$(findstring _bigflash,$@)" ] || \
2450 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2451 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2452 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2453 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2455 @[ -z "$(findstring _old,$@)" ] || \
2456 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2457 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2458 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2459 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2461 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2463 VCMA9_config : unconfig
2464 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2466 #========================================================================
2467 # ARM supplied Versatile development boards
2468 #========================================================================
2470 versatileab_config \
2471 versatilepb_config : unconfig
2472 @board/versatile/split_by_variant.sh $@
2474 voiceblue_config: unconfig
2475 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2477 cm4008_config : unconfig
2478 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2480 cm41xx_config : unconfig
2481 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2483 #########################################################################
2485 #########################################################################
2487 B2_config : unconfig
2488 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2490 #########################################################################
2492 #########################################################################
2494 armadillo_config: unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2497 ep7312_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2500 impa7_config : unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2503 modnet50_config : unconfig
2504 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2506 evb4510_config : unconfig
2507 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2509 lpc2292sodimm_config: unconfig
2510 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2512 SMN42_config : unconfig
2513 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2515 #########################################################################
2517 #########################################################################
2519 actux1_config : unconfig
2520 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2522 actux2_config : unconfig
2523 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2525 actux3_config : unconfig
2526 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2528 actux4_config : unconfig
2529 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2531 adsvix_config : unconfig
2532 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2534 cerf250_config : unconfig
2535 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2537 cradle_config : unconfig
2538 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2540 csb226_config : unconfig
2541 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2543 delta_config : unconfig
2544 @$(MKCONFIG) $(@:_config=) arm pxa delta
2546 innokom_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2549 ixdp425_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2552 ixdpg425_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2555 lubbock_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2558 pleb2_config : unconfig
2559 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2561 logodl_config : unconfig
2562 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2565 scpu_config: unconfig
2566 @mkdir -p $(obj)include
2567 @if [ "$(findstring scpu_,$@)" ] ; then \
2568 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2569 $(XECHO) "... on SCPU board variant" ; \
2571 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2573 pxa255_idp_config: unconfig
2574 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2576 trizepsiv_config : unconfig
2577 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2579 wepep250_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2582 xaeniax_config : unconfig
2583 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2585 xm250_config : unconfig
2586 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2588 xsengine_config : unconfig
2589 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2592 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2594 #########################################################################
2596 #########################################################################
2597 omap2420h4_config : unconfig
2598 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2600 apollon_config : unconfig
2601 @mkdir -p $(obj)include
2602 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2603 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2604 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2606 imx31_litekit_config : unconfig
2607 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2609 imx31_phycore_config : unconfig
2610 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2612 mx31ads_config : unconfig
2613 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2615 #========================================================================
2617 #========================================================================
2618 #########################################################################
2620 #########################################################################
2621 sc520_cdp_config : unconfig
2622 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2624 sc520_spunk_config : unconfig
2625 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2627 sc520_spunk_rel_config : unconfig
2628 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2630 #========================================================================
2632 #========================================================================
2633 #########################################################################
2635 #########################################################################
2637 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2639 incaip_100MHz_config \
2640 incaip_133MHz_config \
2641 incaip_150MHz_config \
2642 incaip_config: unconfig
2643 @mkdir -p $(obj)include
2644 @[ -z "$(findstring _100MHz,$@)" ] || \
2645 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2646 $(XECHO) "... with 100MHz system clock" ; \
2648 @[ -z "$(findstring _133MHz,$@)" ] || \
2649 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2650 $(XECHO) "... with 133MHz system clock" ; \
2652 @[ -z "$(findstring _150MHz,$@)" ] || \
2653 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2654 $(XECHO) "... with 150MHz system clock" ; \
2656 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2658 tb0229_config: unconfig
2659 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2661 #########################################################################
2663 #########################################################################
2664 dbau1000_config : unconfig
2665 @mkdir -p $(obj)include
2666 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2667 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2669 dbau1100_config : unconfig
2670 @mkdir -p $(obj)include
2671 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2672 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2674 dbau1500_config : unconfig
2675 @mkdir -p $(obj)include
2676 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2677 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2679 dbau1550_config : unconfig
2680 @mkdir -p $(obj)include
2681 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2682 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2684 dbau1550_el_config : unconfig
2685 @mkdir -p $(obj)include
2686 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2687 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2689 pb1000_config : unconfig
2690 @mkdir -p $(obj)include
2691 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2692 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2694 gth2_config: unconfig
2695 @mkdir -p $(obj)include
2696 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2697 @$(MKCONFIG) -a gth2 mips mips gth2
2699 qemu_mips_config: unconfig
2700 @mkdir -p $(obj)include
2701 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2702 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2704 #########################################################################
2706 #########################################################################
2708 purple_config : unconfig
2709 @$(MKCONFIG) $(@:_config=) mips mips purple
2711 #========================================================================
2713 #========================================================================
2714 #########################################################################
2716 #########################################################################
2718 DK1C20_safe_32_config \
2719 DK1C20_standard_32_config \
2720 DK1C20_config: unconfig
2721 @mkdir -p $(obj)include
2722 @[ -z "$(findstring _safe_32,$@)" ] || \
2723 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2724 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2726 @[ -z "$(findstring _standard_32,$@)" ] || \
2727 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2728 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2730 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2731 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2732 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2734 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2736 DK1S10_safe_32_config \
2737 DK1S10_standard_32_config \
2738 DK1S10_mtx_ldk_20_config \
2739 DK1S10_config: unconfig
2740 @mkdir -p $(obj)include
2741 @[ -z "$(findstring _safe_32,$@)" ] || \
2742 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2743 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2745 @[ -z "$(findstring _standard_32,$@)" ] || \
2746 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2747 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2749 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2750 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2751 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2753 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2754 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2755 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2757 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2759 ADNPESC1_DNPEVA2_base_32_config \
2760 ADNPESC1_base_32_config \
2761 ADNPESC1_config: unconfig
2762 @mkdir -p $(obj)include
2763 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2764 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2765 $(XECHO) "... DNP/EVA2 configuration" ; \
2767 @[ -z "$(findstring _base_32,$@)" ] || \
2768 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2769 $(XECHO) "... NIOS 'base_32' configuration" ; \
2771 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2772 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2773 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2775 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2777 #########################################################################
2779 #########################################################################
2781 EP1C20_config : unconfig
2782 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2784 EP1S10_config : unconfig
2785 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2787 EP1S40_config : unconfig
2788 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2790 PK1C20_config : unconfig
2791 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2793 PCI5441_config : unconfig
2794 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2796 #========================================================================
2798 #========================================================================
2799 #########################################################################
2801 #########################################################################
2802 suzaku_config: unconfig
2803 @mkdir -p $(obj)include
2804 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2805 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2807 ml401_config: unconfig
2808 @mkdir -p $(obj)include
2809 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2810 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2812 xupv2p_config: unconfig
2813 @mkdir -p $(obj)include
2814 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2815 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2817 #========================================================================
2819 #========================================================================
2821 # Analog Devices boards
2822 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2824 $(BFIN_BOARDS:%=%_config) : unconfig
2825 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2831 #========================================================================
2833 #========================================================================
2834 #########################################################################
2836 #########################################################################
2838 atstk1002_config : unconfig
2839 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2841 atstk1003_config : unconfig
2842 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2844 atstk1004_config : unconfig
2845 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2847 atngw100_config : unconfig
2848 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2850 #########################################################################
2851 #########################################################################
2852 #########################################################################
2854 #########################################################################
2855 ## sh3 (Renesas SuperH)
2856 #########################################################################
2857 mpr2_config: unconfig
2859 @echo "#define CONFIG_MPR2 1" >> include/config.h
2860 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2862 ms7720se_config: unconfig
2863 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2864 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2866 #########################################################################
2867 ## sh4 (Renesas SuperH)
2868 #########################################################################
2869 ms7750se_config: unconfig
2870 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2871 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2873 ms7722se_config : unconfig
2874 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2875 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2877 MigoR_config : unconfig
2879 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2880 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2882 r7780mp_config: unconfig
2884 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2885 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2887 r2dplus_config : unconfig
2889 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2890 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2892 #########################################################################
2893 #########################################################################
2894 #########################################################################
2897 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2898 $(obj)examples/hello_world $(obj)examples/interrupt \
2899 $(obj)examples/mem_to_mem_idma2intr \
2900 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2901 $(obj)examples/test_burst $(obj)examples/timer
2902 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2903 $(obj)tools/env/{fw_printenv,fw_setenv} \
2904 $(obj)tools/envcrc \
2905 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2906 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2907 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2908 $(obj)tools/ncb $(obj)tools/ubsha1
2909 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2910 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2911 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2912 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2913 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2914 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2915 @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
2916 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2917 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2918 @find $(OBJTREE) -type f \
2919 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2920 -o -name '*.o' -o -name '*.a' \) -print \
2924 @find $(OBJTREE) -type f \( -name .depend \
2925 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2928 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2929 $(obj)cscope.* $(obj)*.*~
2930 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2931 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2932 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
2933 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
2934 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2935 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2936 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2937 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2938 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2940 ifeq ($(OBJTREE),$(SRCTREE))
2942 distclean: clobber unconfig
2945 distclean: clobber unconfig
2950 F=`basename $(TOPDIR)` ; cd .. ; \
2951 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2953 #########################################################################