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_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canyonlands amcc
1178 canyonlands_nand_config: unconfig
1179 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1180 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1181 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1182 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1183 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1184 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1187 CATcenter_25_config \
1188 CATcenter_33_config: unconfig
1189 @mkdir -p $(obj)include
1190 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1191 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1192 @[ -z "$(findstring _25,$@)" ] || \
1193 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1194 $(XECHO) "SysClk = 25MHz" ; \
1196 @[ -z "$(findstring _33,$@)" ] || \
1197 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1198 $(XECHO) "SysClk = 33MHz" ; \
1200 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1202 CPCI2DP_config: unconfig
1203 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1208 CPCI405AB_config: unconfig
1209 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1210 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1212 CPCIISER4_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1215 CRAYL1_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1218 csb272_config: unconfig
1219 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1221 csb472_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1224 DASA_SIM_config: unconfig
1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1227 DP405_config: unconfig
1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1230 DU405_config: unconfig
1231 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1233 DU440_config: unconfig
1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1236 ebony_config: unconfig
1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1239 ERIC_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1242 EXBITGEN_config: unconfig
1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1245 G2000_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1248 hcu4_config: unconfig
1249 @mkdir -p $(obj)board/netstal/common
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1252 hcu5_config: unconfig
1253 @mkdir -p $(obj)board/netstal/common
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1256 HH405_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1259 HUB405_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1262 JSE_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1265 KAREF_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1268 katmai_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1271 # Kilauea & Haleakala images are identical (recognized via PVR)
1273 haleakala_config: unconfig
1274 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1276 kilauea_nand_config \
1277 haleakala_nand_config: unconfig
1278 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1279 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1280 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1281 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1282 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1283 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1285 korat_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1288 luan_config: unconfig
1289 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1291 lwmon5_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1294 makalu_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1297 mcu25_config: unconfig
1298 @mkdir -p $(obj)board/netstal/common
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1301 METROBOX_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1304 MIP405_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1307 MIP405T_config: unconfig
1308 @mkdir -p $(obj)include
1309 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1310 @$(XECHO) "Enable subset config for MIP405T"
1311 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1313 ML2_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1316 ml300_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1319 ocotea_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1323 ORSG_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1326 p3p440_config: unconfig
1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1329 PCI405_config: unconfig
1330 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1332 pcs440ep_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1335 PIP405_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1338 PLU405_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1341 PMC405_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1344 PMC440_config: unconfig
1345 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1347 PPChameleonEVB_config \
1348 PPChameleonEVB_BA_25_config \
1349 PPChameleonEVB_ME_25_config \
1350 PPChameleonEVB_HI_25_config \
1351 PPChameleonEVB_BA_33_config \
1352 PPChameleonEVB_ME_33_config \
1353 PPChameleonEVB_HI_33_config: unconfig
1354 @mkdir -p $(obj)include
1355 @[ -z "$(findstring EVB_BA,$@)" ] || \
1356 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1357 $(XECHO) "... BASIC model" ; \
1359 @[ -z "$(findstring EVB_ME,$@)" ] || \
1360 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1361 $(XECHO) "... MEDIUM model" ; \
1363 @[ -z "$(findstring EVB_HI,$@)" ] || \
1364 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1365 $(XECHO) "... HIGH-END model" ; \
1367 @[ -z "$(findstring _25,$@)" ] || \
1368 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1369 $(XECHO) "SysClk = 25MHz" ; \
1371 @[ -z "$(findstring _33,$@)" ] || \
1372 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1373 $(XECHO) "SysClk = 33MHz" ; \
1375 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1377 sbc405_config: unconfig
1378 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1381 rainier_config: unconfig
1382 @mkdir -p $(obj)include
1383 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1384 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1385 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1387 sequoia_nand_config \
1388 rainier_nand_config: unconfig
1389 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1390 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1391 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1392 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1393 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1394 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1395 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1396 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1399 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1401 taihu_config: unconfig
1402 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1404 taishan_config: unconfig
1405 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1407 VOH405_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1410 VOM405_config: unconfig
1411 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1413 CMS700_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1417 W7OLMG_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1420 # Walnut & Sycamore images are identical (recognized via PVR)
1422 sycamore_config: unconfig
1423 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1425 WUH405_config: unconfig
1426 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1428 XPEDITE1K_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1432 yellowstone_config: unconfig
1433 @mkdir -p $(obj)include
1434 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1435 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1436 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1438 yucca_config: unconfig
1439 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1441 zeus_config: unconfig
1442 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1444 #########################################################################
1446 #########################################################################
1449 Yukon8220_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1452 sorcery_config: unconfig
1453 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1455 #########################################################################
1457 #########################################################################
1458 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1460 A3000_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1463 barco_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1466 BMW_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1470 CPC45_ROMBOOT_config: unconfig
1471 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1472 @cd $(obj)include ; \
1473 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1474 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1475 $(XECHO) "... booting from 8-bit flash" ; \
1477 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1478 $(XECHO) "... booting from 64-bit flash" ; \
1480 echo "export CONFIG_BOOT_ROM" >> config.mk;
1482 CU824_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1485 debris_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1488 eXalion_config: unconfig
1489 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1491 HIDDEN_DRAGON_config: unconfig
1492 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1494 kvme080_config: unconfig
1495 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1497 MOUSSE_config: unconfig
1498 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1500 MUSENKI_config: unconfig
1501 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1503 MVBLUE_config: unconfig
1504 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1506 OXC_config: unconfig
1507 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1509 PN62_config: unconfig
1510 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1512 Sandpoint8240_config: unconfig
1513 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1515 Sandpoint8245_config: unconfig
1516 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1518 sbc8240_config: unconfig
1519 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1521 SL8245_config: unconfig
1522 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1524 utx8245_config: unconfig
1525 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1527 #########################################################################
1529 #########################################################################
1531 atc_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1534 cogent_mpc8260_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1538 CPU86_ROMBOOT_config: unconfig
1539 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1540 @cd $(obj)include ; \
1541 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1542 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1543 $(XECHO) "... booting from 8-bit flash" ; \
1545 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1546 $(XECHO) "... booting from 64-bit flash" ; \
1548 echo "export CONFIG_BOOT_ROM" >> config.mk;
1551 CPU87_ROMBOOT_config: unconfig
1552 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1553 @cd $(obj)include ; \
1554 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1555 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1556 $(XECHO) "... booting from 8-bit flash" ; \
1558 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1559 $(XECHO) "... booting from 64-bit flash" ; \
1561 echo "export CONFIG_BOOT_ROM" >> config.mk;
1564 ep8248E_config : unconfig
1565 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1567 ep8260_config: unconfig
1568 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1570 ep82xxm_config: unconfig
1571 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1573 gw8260_config: unconfig
1574 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1576 hymod_config: unconfig
1577 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1579 IDS8247_config: unconfig
1580 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1582 IPHASE4539_config: unconfig
1583 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1586 ISPAN_REVB_config: unconfig
1587 @mkdir -p $(obj)include
1588 @if [ "$(findstring _REVB_,$@)" ] ; then \
1589 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1591 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1593 mgcoge_config : unconfig
1594 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1597 MPC8260ADS_lowboot_config \
1598 MPC8260ADS_33MHz_config \
1599 MPC8260ADS_33MHz_lowboot_config \
1600 MPC8260ADS_40MHz_config \
1601 MPC8260ADS_40MHz_lowboot_config \
1603 MPC8272ADS_lowboot_config \
1605 PQ2FADS_lowboot_config \
1607 PQ2FADS-VR_lowboot_config \
1609 PQ2FADS-ZU_lowboot_config \
1610 PQ2FADS-ZU_66MHz_config \
1611 PQ2FADS-ZU_66MHz_lowboot_config \
1613 @mkdir -p $(obj)include
1614 @mkdir -p $(obj)board/freescale/mpc8260ads
1615 $(if $(findstring PQ2FADS,$@), \
1616 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1617 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1618 $(if $(findstring MHz,$@), \
1619 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1620 $(if $(findstring VR,$@), \
1621 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1622 @[ -z "$(findstring lowboot_,$@)" ] || \
1623 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1624 $(XECHO) "... with lowboot configuration" ; \
1626 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1628 MPC8266ADS_config: unconfig
1629 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1631 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1633 PM825_ROMBOOT_config \
1634 PM825_BIGFLASH_config \
1635 PM825_ROMBOOT_BIGFLASH_config \
1637 PM826_ROMBOOT_config \
1638 PM826_BIGFLASH_config \
1639 PM826_ROMBOOT_BIGFLASH_config: unconfig
1640 @mkdir -p $(obj)include
1641 @mkdir -p $(obj)board/pm826
1642 @if [ "$(findstring PM825_,$@)" ] ; then \
1643 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1645 >$(obj)include/config.h ; \
1647 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1648 $(XECHO) "... booting from 8-bit flash" ; \
1649 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1650 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1651 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1652 $(XECHO) "... with 32 MB Flash" ; \
1653 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1656 $(XECHO) "... booting from 64-bit flash" ; \
1657 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1658 $(XECHO) "... with 32 MB Flash" ; \
1659 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1660 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1662 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1665 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1669 PM828_ROMBOOT_config \
1670 PM828_ROMBOOT_PCI_config: unconfig
1671 @mkdir -p $(obj)include
1672 @mkdir -p $(obj)board/pm826
1673 @if [ "$(findstring _PCI_,$@)" ] ; then \
1674 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1675 $(XECHO) "... with PCI enabled" ; \
1677 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1678 $(XECHO) "... booting from 8-bit flash" ; \
1679 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1680 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1682 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1684 ppmc8260_config: unconfig
1685 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1687 Rattler8248_config \
1688 Rattler_config: unconfig
1689 @mkdir -p $(obj)include
1690 $(if $(findstring 8248,$@), \
1691 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1692 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1694 RPXsuper_config: unconfig
1695 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1697 rsdproto_config: unconfig
1698 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1700 sacsng_config: unconfig
1701 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1703 sbc8260_config: unconfig
1704 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1706 SCM_config: unconfig
1707 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1719 TQM8265_AA_config: unconfig
1720 @mkdir -p $(obj)include
1722 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1723 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1724 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1725 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1726 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1727 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1728 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1729 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1730 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1731 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1732 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1734 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1735 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1737 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1738 echo "... with $${CFREQ}MHz system clock" ; \
1739 if [ "$${CACHE}" = "yes" ] ; then \
1740 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1741 $(XECHO) "... with L2 Cache support" ; \
1743 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1744 $(XECHO) "... without L2 Cache support" ; \
1746 if [ "$${BMODE}" = "60x" ] ; then \
1747 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1748 $(XECHO) "... with 60x Bus Mode" ; \
1750 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1751 $(XECHO) "... without 60x Bus Mode" ; \
1753 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1755 TQM8272_config: unconfig
1756 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1758 VoVPN-GW_66MHz_config \
1759 VoVPN-GW_100MHz_config: unconfig
1760 @mkdir -p $(obj)include
1761 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1762 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1764 ZPC1900_config: unconfig
1765 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1767 #########################################################################
1769 #########################################################################
1771 M52277EVB_config: unconfig
1772 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1775 M5235EVB_Flash16_config \
1776 M5235EVB_Flash32_config: unconfig
1778 M5235EVB_config) FLASH=16;; \
1779 M5235EVB_Flash16_config) FLASH=16;; \
1780 M5235EVB_Flash32_config) FLASH=32;; \
1782 if [ "$${FLASH}" != "16" ] ; then \
1783 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1784 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1785 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1787 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1788 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1790 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1792 M5249EVB_config : unconfig
1793 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1795 M5253EVBE_config : unconfig
1796 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1798 cobra5272_config : unconfig
1799 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1801 EB+MCF-EV123_config : unconfig
1802 @mkdir -p $(obj)include
1803 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1804 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1805 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1807 EB+MCF-EV123_internal_config : unconfig
1808 @mkdir -p $(obj)include
1809 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1810 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1811 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1813 idmr_config : unconfig
1814 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1816 M5271EVB_config : unconfig
1817 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1819 M5272C3_config : unconfig
1820 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1822 M5282EVB_config : unconfig
1823 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1825 TASREG_config : unconfig
1826 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1828 r5200_config : unconfig
1829 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1832 M5329BFEE_config : unconfig
1834 M5329AFEE_config) NAND=0;; \
1835 M5329BFEE_config) NAND=16;; \
1837 if [ "$${NAND}" != "0" ] ; then \
1838 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1840 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1842 M5373EVB_config : unconfig
1844 M5373EVB_config) NAND=16;; \
1846 if [ "$${NAND}" != "0" ] ; then \
1847 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1849 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1852 M54455EVB_atmel_config \
1853 M54455EVB_intel_config \
1854 M54455EVB_a33_config \
1855 M54455EVB_a66_config \
1856 M54455EVB_i33_config \
1857 M54455EVB_i66_config : unconfig
1859 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1860 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1861 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1862 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1863 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1864 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1865 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1867 if [ "$${FLASH}" = "INTEL" ] ; then \
1868 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1869 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1870 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1871 $(XECHO) "... with INTEL boot..." ; \
1873 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1874 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1875 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1876 $(XECHO) "... with ATMEL boot..." ; \
1878 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1879 $(XECHO) "... with $${FREQ}Hz input clock"
1880 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1888 M5475GFE_config : unconfig
1890 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1891 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1892 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1893 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1894 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1895 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1896 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1898 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1899 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1900 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1901 if [ "$${RAM1}" != "0" ] ; then \
1902 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1904 if [ "$${CODE}" != "0" ] ; then \
1905 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1907 if [ "$${VID}" == "1" ] ; then \
1908 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1910 if [ "$${USB}" == "1" ] ; then \
1911 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1913 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1922 M5485HFE_config : unconfig
1924 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1925 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1926 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1927 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1928 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1929 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1930 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1931 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1933 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1934 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1935 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1936 if [ "$${RAM1}" != "0" ] ; then \
1937 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1939 if [ "$${CODE}" != "0" ] ; then \
1940 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1942 if [ "$${VID}" == "1" ] ; then \
1943 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1945 if [ "$${USB}" == "1" ] ; then \
1946 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1948 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1950 #########################################################################
1952 #########################################################################
1954 MPC8313ERDB_33_config \
1955 MPC8313ERDB_66_config: unconfig
1956 @mkdir -p $(obj)include
1957 @if [ "$(findstring _33_,$@)" ] ; then \
1958 $(XECHO) -n "...33M ..." ; \
1959 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1961 if [ "$(findstring _66_,$@)" ] ; then \
1962 $(XECHO) -n "...66M..." ; \
1963 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1965 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1967 MPC8315ERDB_config: unconfig
1968 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1970 MPC8323ERDB_config: unconfig
1971 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1973 MPC832XEMDS_config \
1974 MPC832XEMDS_HOST_33_config \
1975 MPC832XEMDS_HOST_66_config \
1976 MPC832XEMDS_SLAVE_config \
1977 MPC832XEMDS_ATM_config: unconfig
1978 @mkdir -p $(obj)include
1979 @if [ "$(findstring _HOST_,$@)" ] ; then \
1980 $(XECHO) -n "... PCI HOST " ; \
1981 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1983 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1984 $(XECHO) "...PCI SLAVE 66M" ; \
1985 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1986 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1988 if [ "$(findstring _33_,$@)" ] ; then \
1989 $(XECHO) -n "...33M ..." ; \
1990 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1991 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1993 if [ "$(findstring _66_,$@)" ] ; then \
1994 $(XECHO) -n "...66M..." ; \
1995 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1996 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1998 if [ "$(findstring _ATM_,$@)" ] ; then \
1999 $(XECHO) -n "...ATM..." ; \
2000 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2001 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2003 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2005 MPC8349EMDS_config: unconfig
2006 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2009 MPC8349ITX_LOWBOOT_config \
2010 MPC8349ITXGP_config: unconfig
2011 @mkdir -p $(obj)include
2012 @mkdir -p $(obj)board/freescale/mpc8349itx
2013 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2014 @if [ "$(findstring GP,$@)" ] ; then \
2015 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2017 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2018 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2020 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2022 MPC8360EMDS_config \
2023 MPC8360EMDS_HOST_33_config \
2024 MPC8360EMDS_HOST_66_config \
2025 MPC8360EMDS_SLAVE_config \
2026 MPC8360EMDS_ATM_config: unconfig
2027 @mkdir -p $(obj)include
2028 @if [ "$(findstring _HOST_,$@)" ] ; then \
2029 $(XECHO) -n "... PCI HOST " ; \
2030 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2032 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2033 $(XECHO) "...PCI SLAVE 66M" ; \
2034 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2035 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2037 if [ "$(findstring _33_,$@)" ] ; then \
2038 $(XECHO) -n "...33M ..." ; \
2039 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2040 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2042 if [ "$(findstring _66_,$@)" ] ; then \
2043 $(XECHO) -n "...66M..." ; \
2044 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2045 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2047 if [ "$(findstring _ATM_,$@)" ] ; then \
2048 $(XECHO) -n "...ATM..." ; \
2049 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2050 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2052 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2054 MPC8360ERDK_33_config \
2055 MPC8360ERDK_66_config \
2056 MPC8360ERDK_config: unconfig
2057 @mkdir -p $(obj)include
2058 @if [ "$(findstring _33_,$@)" ] ; then \
2059 $(XECHO) -n "... CLKIN 33MHz " ; \
2060 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2062 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2064 MPC837XEMDS_config \
2065 MPC837XEMDS_HOST_config: unconfig
2066 @mkdir -p $(obj)include
2067 @if [ "$(findstring _HOST_,$@)" ] ; then \
2068 $(XECHO) -n "... PCI HOST " ; \
2069 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2071 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2073 MPC837XERDB_config: unconfig
2074 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2076 sbc8349_config: unconfig
2077 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2079 TQM834x_config: unconfig
2080 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2083 #########################################################################
2085 #########################################################################
2087 ATUM8548_config: unconfig
2088 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2090 MPC8540ADS_config: unconfig
2091 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2093 MPC8540EVAL_config \
2094 MPC8540EVAL_33_config \
2095 MPC8540EVAL_66_config \
2096 MPC8540EVAL_33_slave_config \
2097 MPC8540EVAL_66_slave_config: unconfig
2098 @mkdir -p $(obj)include
2099 @if [ "$(findstring _33_,$@)" ] ; then \
2100 $(XECHO) "... 33 MHz PCI" ; \
2102 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2103 $(XECHO) "... 66 MHz PCI" ; \
2105 if [ "$(findstring _slave_,$@)" ] ; then \
2106 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2107 $(XECHO) " slave" ; \
2109 $(XECHO) " host" ; \
2111 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2113 MPC8560ADS_config: unconfig
2114 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2116 MPC8541CDS_legacy_config \
2117 MPC8541CDS_config: unconfig
2118 @mkdir -p $(obj)include
2119 @if [ "$(findstring _legacy_,$@)" ] ; then \
2120 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2121 $(XECHO) "... legacy" ; \
2123 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2125 MPC8544DS_config: unconfig
2126 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2128 MPC8548CDS_legacy_config \
2129 MPC8548CDS_config: unconfig
2130 @mkdir -p $(obj)include
2131 @if [ "$(findstring _legacy_,$@)" ] ; then \
2132 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2133 $(XECHO) "... legacy" ; \
2135 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2137 MPC8555CDS_legacy_config \
2138 MPC8555CDS_config: unconfig
2139 @mkdir -p $(obj)include
2140 @if [ "$(findstring _legacy_,$@)" ] ; then \
2141 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2142 $(XECHO) "... legacy" ; \
2144 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2146 MPC8568MDS_config: unconfig
2147 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2149 PM854_config: unconfig
2150 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2152 PM856_config: unconfig
2153 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2157 sbc8540_66_config: unconfig
2158 @mkdir -p $(obj)include
2159 @if [ "$(findstring _66_,$@)" ] ; then \
2160 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2161 $(XECHO) "... 66 MHz PCI" ; \
2163 $(XECHO) "... 33 MHz PCI" ; \
2165 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2167 sbc8548_config: unconfig
2168 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2172 sbc8560_66_config: unconfig
2173 @mkdir -p $(obj)include
2174 @if [ "$(findstring _66_,$@)" ] ; then \
2175 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2176 $(XECHO) "... 66 MHz PCI" ; \
2178 $(XECHO) "... 33 MHz PCI" ; \
2180 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2182 stxgp3_config: unconfig
2183 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2186 stxssa_4M_config: unconfig
2187 @mkdir -p $(obj)include
2188 @if [ "$(findstring _4M_,$@)" ] ; then \
2189 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2190 $(XECHO) "... with 4 MiB flash memory" ; \
2192 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2197 TQM8560_config: unconfig
2198 @mkdir -p $(obj)include
2199 @CTYPE=$(subst TQM,,$(@:_config=)); \
2200 $(XECHO) "... TQM"$${CTYPE}; \
2201 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2202 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2203 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2204 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2205 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2206 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2208 #########################################################################
2210 #########################################################################
2212 MPC8610HPCD_config: unconfig
2213 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2215 MPC8641HPCN_config: unconfig
2216 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2218 sbc8641d_config: unconfig
2219 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2221 #########################################################################
2223 #########################################################################
2225 AmigaOneG3SE_config: unconfig
2226 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2228 BAB7xx_config: unconfig
2229 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2231 CPCI750_config: unconfig
2232 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2234 DB64360_config: unconfig
2235 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2237 DB64460_config: unconfig
2238 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2240 ELPPC_config: unconfig
2241 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2244 EVB64260_750CX_config: unconfig
2245 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2247 mpc7448hpc2_config: unconfig
2248 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2250 P3G4_config: unconfig
2251 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2254 p3m7448_config: unconfig
2255 @mkdir -p $(obj)include
2256 @if [ "$(findstring 750_,$@)" ] ; then \
2257 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2259 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2261 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2264 PCIPPC6_config: unconfig
2265 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2267 ZUMA_config: unconfig
2268 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2270 ppmc7xx_config: unconfig
2271 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2273 #========================================================================
2275 #========================================================================
2276 #########################################################################
2277 ## StrongARM Systems
2278 #########################################################################
2280 assabet_config : unconfig
2281 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2283 dnp1110_config : unconfig
2284 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2286 gcplus_config : unconfig
2287 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2289 lart_config : unconfig
2290 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2292 shannon_config : unconfig
2293 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2295 #########################################################################
2297 #########################################################################
2299 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2301 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2303 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2305 at91cap9adk_config : unconfig
2306 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91cap9
2308 at91rm9200dk_config : unconfig
2309 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2311 cmc_pu2_config : unconfig
2312 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2314 csb637_config : unconfig
2315 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2317 mp2usb_config : unconfig
2318 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2320 m501sk_config : unconfig
2321 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2323 ########################################################################
2324 ## ARM Integrator boards - see doc/README-integrator for more info.
2325 integratorap_config \
2334 ap946es_config: unconfig
2335 @board/integratorap/split_by_variant.sh $@
2337 integratorcp_config \
2346 cp1026_config: unconfig
2347 @board/integratorcp/split_by_variant.sh $@
2349 kb9202_config : unconfig
2350 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2353 lpd7a404_config: unconfig
2354 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2356 mx1ads_config : unconfig
2357 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2359 mx1fs2_config : unconfig
2360 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2362 netstar_config: unconfig
2363 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2365 omap1510inn_config : unconfig
2366 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2368 omap5912osk_config : unconfig
2369 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2371 davinci_dvevm_config : unconfig
2372 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2374 davinci_schmoogie_config : unconfig
2375 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2377 davinci_sonata_config : unconfig
2378 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2380 pmdra_config : unconfig
2381 @$(MKCONFIG) $(@:_config=) arm arm926ejs pmdra prodrive davinci
2383 omap1610inn_config \
2384 omap1610inn_cs0boot_config \
2385 omap1610inn_cs3boot_config \
2386 omap1610inn_cs_autoboot_config \
2388 omap1610h2_cs0boot_config \
2389 omap1610h2_cs3boot_config \
2390 omap1610h2_cs_autoboot_config: unconfig
2391 @mkdir -p $(obj)include
2392 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2393 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2394 $(XECHO) "... configured for CS0 boot"; \
2395 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2396 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2397 $(XECHO) "... configured for CS_AUTO boot"; \
2399 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2400 $(XECHO) "... configured for CS3 boot"; \
2402 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2405 omap730p2_cs0boot_config \
2406 omap730p2_cs3boot_config : unconfig
2407 @mkdir -p $(obj)include
2408 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2409 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2410 $(XECHO) "... configured for CS0 boot"; \
2412 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2413 $(XECHO) "... configured for CS3 boot"; \
2415 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2417 sbc2410x_config: unconfig
2418 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2420 scb9328_config : unconfig
2421 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2423 smdk2400_config : unconfig
2424 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2426 smdk2410_config : unconfig
2427 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2429 SX1_config : unconfig
2430 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2432 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2434 trab_bigram_config \
2435 trab_bigflash_config \
2436 trab_old_config: unconfig
2437 @mkdir -p $(obj)include
2438 @mkdir -p $(obj)board/trab
2439 @[ -z "$(findstring _bigram,$@)" ] || \
2440 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2441 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2442 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2444 @[ -z "$(findstring _bigflash,$@)" ] || \
2445 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2446 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2447 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2448 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2450 @[ -z "$(findstring _old,$@)" ] || \
2451 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2452 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2453 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2454 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2456 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2458 VCMA9_config : unconfig
2459 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2461 #========================================================================
2462 # ARM supplied Versatile development boards
2463 #========================================================================
2465 versatileab_config \
2466 versatilepb_config : unconfig
2467 @board/versatile/split_by_variant.sh $@
2469 voiceblue_config: unconfig
2470 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2472 cm4008_config : unconfig
2473 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2475 cm41xx_config : unconfig
2476 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2478 #########################################################################
2480 #########################################################################
2482 B2_config : unconfig
2483 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2485 #########################################################################
2487 #########################################################################
2489 armadillo_config: unconfig
2490 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2492 ep7312_config : unconfig
2493 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2495 impa7_config : unconfig
2496 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2498 modnet50_config : unconfig
2499 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2501 evb4510_config : unconfig
2502 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2504 lpc2292sodimm_config: unconfig
2505 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2507 SMN42_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2510 #########################################################################
2512 #########################################################################
2514 actux1_config : unconfig
2515 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2517 actux2_config : unconfig
2518 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2520 actux3_config : unconfig
2521 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2523 actux4_config : unconfig
2524 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2526 adsvix_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2529 cerf250_config : unconfig
2530 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2532 cradle_config : unconfig
2533 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2535 csb226_config : unconfig
2536 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2538 delta_config : unconfig
2539 @$(MKCONFIG) $(@:_config=) arm pxa delta
2541 innokom_config : unconfig
2542 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2544 ixdp425_config : unconfig
2545 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2547 ixdpg425_config : unconfig
2548 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2550 lubbock_config : unconfig
2551 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2553 pleb2_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2556 logodl_config : unconfig
2557 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2560 scpu_config: unconfig
2561 @mkdir -p $(obj)include
2562 @if [ "$(findstring scpu_,$@)" ] ; then \
2563 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2564 $(XECHO) "... on SCPU board variant" ; \
2566 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2568 pxa255_idp_config: unconfig
2569 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2571 trizepsiv_config : unconfig
2572 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2574 wepep250_config : unconfig
2575 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2577 xaeniax_config : unconfig
2578 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2580 xm250_config : unconfig
2581 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2583 xsengine_config : unconfig
2584 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2587 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2589 #########################################################################
2591 #########################################################################
2592 omap2420h4_config : unconfig
2593 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2595 apollon_config : unconfig
2596 @mkdir -p $(obj)include
2597 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2598 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2599 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2601 imx31_litekit_config : unconfig
2602 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2604 imx31_phycore_config : unconfig
2605 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2607 #========================================================================
2609 #========================================================================
2610 #########################################################################
2612 #########################################################################
2613 sc520_cdp_config : unconfig
2614 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2616 sc520_spunk_config : unconfig
2617 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2619 sc520_spunk_rel_config : unconfig
2620 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2622 #========================================================================
2624 #========================================================================
2625 #########################################################################
2627 #########################################################################
2629 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2631 incaip_100MHz_config \
2632 incaip_133MHz_config \
2633 incaip_150MHz_config \
2634 incaip_config: unconfig
2635 @mkdir -p $(obj)include
2636 @[ -z "$(findstring _100MHz,$@)" ] || \
2637 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2638 $(XECHO) "... with 100MHz system clock" ; \
2640 @[ -z "$(findstring _133MHz,$@)" ] || \
2641 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2642 $(XECHO) "... with 133MHz system clock" ; \
2644 @[ -z "$(findstring _150MHz,$@)" ] || \
2645 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2646 $(XECHO) "... with 150MHz system clock" ; \
2648 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2650 tb0229_config: unconfig
2651 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2653 #########################################################################
2655 #########################################################################
2656 dbau1000_config : unconfig
2657 @mkdir -p $(obj)include
2658 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2659 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2661 dbau1100_config : unconfig
2662 @mkdir -p $(obj)include
2663 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2664 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2666 dbau1500_config : unconfig
2667 @mkdir -p $(obj)include
2668 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2669 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2671 dbau1550_config : unconfig
2672 @mkdir -p $(obj)include
2673 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2674 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2676 dbau1550_el_config : unconfig
2677 @mkdir -p $(obj)include
2678 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2679 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2681 pb1000_config : unconfig
2682 @mkdir -p $(obj)include
2683 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2684 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2686 gth2_config: unconfig
2687 @mkdir -p $(obj)include
2688 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2689 @$(MKCONFIG) -a gth2 mips mips gth2
2691 qemu_mips_config: unconfig
2692 @mkdir -p $(obj)include
2693 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2694 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2696 #########################################################################
2698 #########################################################################
2700 purple_config : unconfig
2701 @$(MKCONFIG) $(@:_config=) mips mips purple
2703 #========================================================================
2705 #========================================================================
2706 #########################################################################
2708 #########################################################################
2710 DK1C20_safe_32_config \
2711 DK1C20_standard_32_config \
2712 DK1C20_config: unconfig
2713 @mkdir -p $(obj)include
2714 @[ -z "$(findstring _safe_32,$@)" ] || \
2715 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2716 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2718 @[ -z "$(findstring _standard_32,$@)" ] || \
2719 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2720 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2722 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2723 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2724 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2726 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2728 DK1S10_safe_32_config \
2729 DK1S10_standard_32_config \
2730 DK1S10_mtx_ldk_20_config \
2731 DK1S10_config: unconfig
2732 @mkdir -p $(obj)include
2733 @[ -z "$(findstring _safe_32,$@)" ] || \
2734 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2735 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2737 @[ -z "$(findstring _standard_32,$@)" ] || \
2738 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2739 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2741 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2742 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2743 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2745 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2746 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2747 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2749 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2751 ADNPESC1_DNPEVA2_base_32_config \
2752 ADNPESC1_base_32_config \
2753 ADNPESC1_config: unconfig
2754 @mkdir -p $(obj)include
2755 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2756 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2757 $(XECHO) "... DNP/EVA2 configuration" ; \
2759 @[ -z "$(findstring _base_32,$@)" ] || \
2760 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2761 $(XECHO) "... NIOS 'base_32' configuration" ; \
2763 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2764 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2765 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2767 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2769 #########################################################################
2771 #########################################################################
2773 EP1C20_config : unconfig
2774 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2776 EP1S10_config : unconfig
2777 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2779 EP1S40_config : unconfig
2780 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2782 PK1C20_config : unconfig
2783 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2785 PCI5441_config : unconfig
2786 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2788 #========================================================================
2790 #========================================================================
2791 #########################################################################
2793 #########################################################################
2794 suzaku_config: unconfig
2795 @mkdir -p $(obj)include
2796 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2797 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2799 ml401_config: unconfig
2800 @mkdir -p $(obj)include
2801 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2802 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2804 xupv2p_config: unconfig
2805 @mkdir -p $(obj)include
2806 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2807 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2809 #========================================================================
2811 #========================================================================
2813 # Analog Devices boards
2814 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2816 $(BFIN_BOARDS:%=%_config) : unconfig
2817 @$(MKCONFIG) $(@:_config=) blackfin $(firstword $(subst -, ,$@)) $(@:_config=)
2823 #========================================================================
2825 #========================================================================
2826 #########################################################################
2828 #########################################################################
2830 atstk1002_config : unconfig
2831 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2833 atstk1003_config : unconfig
2834 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2836 atstk1004_config : unconfig
2837 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2839 atngw100_config : unconfig
2840 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2842 #########################################################################
2843 #########################################################################
2844 #########################################################################
2846 #########################################################################
2847 ## sh3 (Renesas SuperH)
2848 #########################################################################
2849 ms7720se_config: unconfig
2850 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2851 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2853 #########################################################################
2854 ## sh4 (Renesas SuperH)
2855 #########################################################################
2856 ms7750se_config: unconfig
2857 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2858 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2860 ms7722se_config : unconfig
2861 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2862 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2864 #########################################################################
2865 #########################################################################
2866 #########################################################################
2869 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2870 $(obj)examples/hello_world $(obj)examples/interrupt \
2871 $(obj)examples/mem_to_mem_idma2intr \
2872 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2873 $(obj)examples/test_burst $(obj)examples/timer
2874 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2875 $(obj)tools/env/{fw_printenv,fw_setenv} \
2876 $(obj)tools/envcrc \
2877 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2878 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2879 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2880 $(obj)tools/ncb $(obj)tools/ubsha1
2881 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2882 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2883 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2884 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2885 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds
2886 @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
2887 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2888 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2889 @find $(OBJTREE) -type f \
2890 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2891 -o -name '*.o' -o -name '*.a' \) -print \
2895 @find $(OBJTREE) -type f \( -name .depend \
2896 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2899 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2900 $(obj)cscope.* $(obj)*.*~
2901 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2902 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2903 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
2904 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
2905 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2906 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2907 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2908 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2909 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2911 ifeq ($(OBJTREE),$(SRCTREE))
2913 distclean: clobber unconfig
2916 distclean: clobber unconfig
2921 F=`basename $(TOPDIR)` ; cd .. ; \
2922 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2924 #########################################################################