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 ($(ARCH),powerpc)
130 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
132 # load ARCH, BOARD, and CPU configuration
133 include $(obj)include/config.mk
134 export ARCH CPU BOARD VENDOR SOC
137 ifeq ($(HOSTARCH),$(ARCH))
141 CROSS_COMPILE = ppc_8xx-
144 CROSS_COMPILE = arm-linux-
147 CROSS_COMPILE = i386-linux-
150 CROSS_COMPILE = mips_4KC-
153 CROSS_COMPILE = nios-elf-
156 CROSS_COMPILE = nios2-elf-
159 CROSS_COMPILE = m68k-elf-
161 ifeq ($(ARCH),microblaze)
164 ifeq ($(ARCH),blackfin)
165 CROSS_COMPILE = bfin-uclinux-
168 CROSS_COMPILE = avr32-linux-
171 CROSS_COMPILE = sh4-linux-
174 CROSS_COMPILE = sparc-elf-
176 endif # HOSTARCH,ARCH
177 endif # CROSS_COMPILE
181 # load other configuration
182 include $(TOPDIR)/config.mk
184 #########################################################################
185 # U-Boot objects....order is important (i.e. start must be first)
187 OBJS = cpu/$(CPU)/start.o
189 OBJS += cpu/$(CPU)/start16.o
190 OBJS += cpu/$(CPU)/reset.o
193 OBJS += cpu/$(CPU)/resetvec.o
195 ifeq ($(CPU),mpc85xx)
196 OBJS += cpu/$(CPU)/resetvec.o
199 OBJS := $(addprefix $(obj),$(OBJS))
201 LIBS = lib_generic/libgeneric.a
202 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
203 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
204 LIBS += cpu/$(CPU)/lib$(CPU).a
206 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
209 LIBS += cpu/ixp/npe/libnpe.a
211 LIBS += lib_$(ARCH)/lib$(ARCH).a
212 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
213 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
215 LIBS += disk/libdisk.a
216 LIBS += drivers/bios_emulator/libatibiosemu.a
217 LIBS += drivers/block/libblock.a
218 LIBS += drivers/dma/libdma.a
219 LIBS += drivers/hwmon/libhwmon.a
220 LIBS += drivers/i2c/libi2c.a
221 LIBS += drivers/input/libinput.a
222 LIBS += drivers/misc/libmisc.a
223 LIBS += drivers/mtd/libmtd.a
224 LIBS += drivers/mtd/nand/libnand.a
225 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
226 LIBS += drivers/mtd/onenand/libonenand.a
227 LIBS += drivers/net/libnet.a
228 LIBS += drivers/net/sk98lin/libsk98lin.a
229 LIBS += drivers/pci/libpci.a
230 LIBS += drivers/pcmcia/libpcmcia.a
231 LIBS += drivers/spi/libspi.a
232 ifeq ($(CPU),mpc83xx)
233 LIBS += drivers/qe/qe.a
235 ifeq ($(CPU),mpc85xx)
236 LIBS += drivers/qe/qe.a
238 LIBS += drivers/rtc/librtc.a
239 LIBS += drivers/serial/libserial.a
240 LIBS += drivers/usb/libusb.a
241 LIBS += drivers/video/libvideo.a
242 LIBS += common/libcommon.a
243 LIBS += libfdt/libfdt.a
245 LIBS += post/libpost.a
247 LIBS := $(addprefix $(obj),$(LIBS))
248 .PHONY : $(LIBS) $(VERSION_FILE)
250 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
251 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
254 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
256 # The "tools" are needed early, so put this first
257 # Don't include stuff already done in $(LIBS)
264 ifeq ($(CONFIG_NAND_U_BOOT),y)
266 U_BOOT_NAND = $(obj)u-boot-nand.bin
269 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
270 ONENAND_IPL = onenand_ipl
271 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
274 __OBJS := $(subst $(obj),,$(OBJS))
275 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
277 #########################################################################
278 #########################################################################
280 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
281 ifeq ($(ARCH),blackfin)
282 ALL += $(obj)u-boot.ldr
287 $(obj)u-boot.hex: $(obj)u-boot
288 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
290 $(obj)u-boot.srec: $(obj)u-boot
291 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
293 $(obj)u-boot.bin: $(obj)u-boot
294 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
296 $(obj)u-boot.ldr: $(obj)u-boot
297 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
299 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
300 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
302 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
303 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
305 $(obj)u-boot.img: $(obj)u-boot.bin
306 ./tools/mkimage -A $(ARCH) -T firmware -C none \
307 -a $(TEXT_BASE) -e 0 \
308 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
309 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
312 $(obj)u-boot.sha1: $(obj)u-boot.bin
313 $(obj)tools/ubsha1 $(obj)u-boot.bin
315 $(obj)u-boot.dis: $(obj)u-boot
316 $(OBJDUMP) -d $< > $@
318 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
319 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
320 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
321 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
322 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
323 -Map u-boot.map -o u-boot
325 $(OBJS): depend $(obj)include/autoconf.mk
326 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
328 $(LIBS): depend $(obj)include/autoconf.mk
329 $(MAKE) -C $(dir $(subst $(obj),,$@))
331 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
332 $(MAKE) -C $(dir $(subst $(obj),,$@))
334 $(SUBDIRS): depend $(obj)include/autoconf.mk
337 $(LDSCRIPT): depend $(obj)include/autoconf.mk
338 $(MAKE) -C $(dir $@) $(notdir $@)
340 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
341 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
343 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
344 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
346 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
347 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
349 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
350 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
351 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
352 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
355 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
356 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
358 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
361 $(MAKE) -C tools/gdb all || exit 1
364 $(MAKE) -C tools/updater all || exit 1
367 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
369 depend dep: $(VERSION_FILE)
370 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
372 TAG_SUBDIRS += include
373 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
374 TAG_SUBDIRS += cpu/$(CPU)
375 TAG_SUBDIRS += lib_$(ARCH)
376 TAG_SUBDIRS += fs/cramfs
377 TAG_SUBDIRS += fs/fat
378 TAG_SUBDIRS += fs/fdos
379 TAG_SUBDIRS += fs/jffs2
382 TAG_SUBDIRS += common
383 TAG_SUBDIRS += drivers/bios_emulator
384 TAG_SUBDIRS += drivers/block
385 TAG_SUBDIRS += drivers/hwmon
386 TAG_SUBDIRS += drivers/i2c
387 TAG_SUBDIRS += drivers/input
388 TAG_SUBDIRS += drivers/misc
389 TAG_SUBDIRS += drivers/mtd
390 TAG_SUBDIRS += drivers/mtd/nand
391 TAG_SUBDIRS += drivers/mtd/nand_legacy
392 TAG_SUBDIRS += drivers/mtd/onenand
393 TAG_SUBDIRS += drivers/net
394 TAG_SUBDIRS += drivers/net/sk98lin
395 TAG_SUBDIRS += drivers/pci
396 TAG_SUBDIRS += drivers/pcmcia
397 TAG_SUBDIRS += drivers/qe
398 TAG_SUBDIRS += drivers/rtc
399 TAG_SUBDIRS += drivers/serial
400 TAG_SUBDIRS += drivers/spi
401 TAG_SUBDIRS += drivers/usb
402 TAG_SUBDIRS += drivers/video
405 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
406 -name '*.[ch]' -print`
409 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
410 -name '*.[ch]' -print`
412 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
416 $(obj)System.map: $(obj)u-boot
418 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
419 sort > $(obj)System.map
422 # Auto-generate the autoconf.mk file (which is included by all makefiles)
424 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
425 # the dep file is only include in this top level makefile to determine when
426 # to regenerate the autoconf.mk file.
427 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
428 @$(XECHO) Generating $@ ; \
430 : Generate the dependancies ; \
431 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
432 -MQ $(obj)include/autoconf.mk include/common.h > $@
434 $(obj)include/autoconf.mk: $(obj)include/config.h
435 @$(XECHO) Generating $@ ; \
437 : Extract the config macros ; \
438 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
439 sed -n -f tools/scripts/define2mk.sed > $@
441 sinclude $(obj)include/autoconf.mk.dep
443 #########################################################################
445 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
446 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
447 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
448 dep tags ctags etags cscope $(obj)System.map:
449 @echo "System not configured - see README" >&2
455 git log --no-merges U-Boot-1_1_5.. | \
456 unexpand -a | sed -e 's/\s\s*$$//' > $@
458 #########################################################################
461 @rm -f $(obj)include/config.h $(obj)include/config.mk \
462 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
463 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
465 #========================================================================
467 #========================================================================
469 #########################################################################
471 #########################################################################
473 canmb_config: unconfig
474 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
476 cmi_mpc5xx_config: unconfig
477 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
479 PATI_config: unconfig
480 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
482 #########################################################################
484 #########################################################################
487 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
489 BC3450_config: unconfig
490 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
492 cpci5200_config: unconfig
493 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
495 hmi1001_config: unconfig
496 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
499 Lite5200_LOWBOOT_config \
500 Lite5200_LOWBOOT08_config \
501 icecube_5200_config \
502 icecube_5200_LOWBOOT_config \
503 icecube_5200_LOWBOOT08_config \
504 icecube_5200_DDR_config \
505 icecube_5200_DDR_LOWBOOT_config \
506 icecube_5200_DDR_LOWBOOT08_config \
507 icecube_5100_config: unconfig
508 @mkdir -p $(obj)include
509 @mkdir -p $(obj)board/icecube
510 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
511 { if [ "$(findstring DDR,$@)" ] ; \
512 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
513 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
515 $(XECHO) "... with LOWBOOT configuration" ; \
517 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
518 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
519 echo "... with 8 MB flash only" ; \
520 $(XECHO) "... with LOWBOOT configuration" ; \
522 @[ -z "$(findstring DDR,$@)" ] || \
523 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
524 $(XECHO) "... DDR memory revision" ; \
526 @[ -z "$(findstring 5200,$@)" ] || \
527 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
528 $(XECHO) "... with MPC5200 processor" ; \
530 @[ -z "$(findstring 5100,$@)" ] || \
531 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
532 $(XECHO) "... with MGT5100 processor" ; \
534 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
536 jupiter_config: unconfig
537 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
539 v38b_config: unconfig
540 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
542 inka4x0_config: unconfig
543 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
546 lite5200b_PM_config \
547 lite5200b_LOWBOOT_config: unconfig
548 @mkdir -p $(obj)include
549 @mkdir -p $(obj)board/icecube
550 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
551 @ $(XECHO) "... DDR memory revision"
552 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
553 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
554 @[ -z "$(findstring _PM_,$@)" ] || \
555 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
556 $(XECHO) "... with power management (low-power mode) support" ; \
558 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
559 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
560 $(XECHO) "... with LOWBOOT configuration" ; \
562 @ $(XECHO) "... with MPC5200B processor"
563 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
566 mcc200_SDRAM_config \
567 mcc200_highboot_config \
568 mcc200_COM12_config \
569 mcc200_COM12_SDRAM_config \
570 mcc200_COM12_highboot_config \
571 mcc200_COM12_highboot_SDRAM_config \
572 mcc200_highboot_SDRAM_config \
575 prs200_highboot_config \
576 prs200_highboot_DDR_config: unconfig
577 @mkdir -p $(obj)include
578 @mkdir -p $(obj)board/mcc200
579 @[ -n "$(findstring highboot,$@)" ] || \
580 { $(XECHO) "... with lowboot configuration" ; \
582 @[ -z "$(findstring highboot,$@)" ] || \
583 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
584 $(XECHO) "... with highboot configuration" ; \
586 @[ -n "$(findstring _SDRAM,$@)" ] || \
587 { if [ -n "$(findstring mcc200,$@)" ]; \
589 $(XECHO) "... with DDR" ; \
591 if [ -n "$(findstring _DDR,$@)" ];\
593 $(XECHO) "... with DDR" ; \
595 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
596 $(XECHO) "... with SDRAM" ; \
600 @[ -z "$(findstring _SDRAM,$@)" ] || \
601 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
602 $(XECHO) "... with SDRAM" ; \
604 @[ -z "$(findstring COM12,$@)" ] || \
605 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
606 $(XECHO) "... with console on COM12" ; \
608 @[ -z "$(findstring prs200,$@)" ] || \
609 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
611 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
613 mecp5200_config: unconfig
614 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
616 munices_config: unconfig
617 @$(MKCONFIG) munices ppc mpc5xxx munices
619 o2dnt_config: unconfig
620 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
622 pf5200_config: unconfig
623 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
627 PM520_ROMBOOT_config \
628 PM520_ROMBOOT_DDR_config: unconfig
629 @mkdir -p $(obj)include
630 @[ -z "$(findstring DDR,$@)" ] || \
631 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
632 $(XECHO) "... DDR memory revision" ; \
634 @[ -z "$(findstring ROMBOOT,$@)" ] || \
635 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
636 $(XECHO) "... booting from 8-bit flash" ; \
638 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
640 smmaco4_config: unconfig
641 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
643 cm5200_config: unconfig
644 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
646 spieval_config: unconfig
647 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
650 TB5200_config: unconfig
651 @mkdir -p $(obj)include
652 @[ -z "$(findstring _B,$@)" ] || \
653 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
654 $(XECHO) "... with MPC5200B processor" ; \
656 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
660 TOP5200_config: unconfig
661 @mkdir -p $(obj)include
662 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
663 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
667 Total5200_lowboot_config \
668 Total5200_Rev2_config \
669 Total5200_Rev2_lowboot_config: unconfig
670 @mkdir -p $(obj)include
671 @mkdir -p $(obj)board/total5200
672 @[ -z "$(findstring 5100,$@)" ] || \
673 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
674 $(XECHO) "... with MGT5100 processor" ; \
676 @[ -z "$(findstring 5200,$@)" ] || \
677 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
678 $(XECHO) "... with MPC5200 processor" ; \
680 @[ -n "$(findstring Rev,$@)" ] || \
681 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
682 $(XECHO) "... revision 1 board" ; \
684 @[ -z "$(findstring Rev2_,$@)" ] || \
685 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
686 $(XECHO) "... revision 2 board" ; \
688 @[ -z "$(findstring lowboot_,$@)" ] || \
689 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
690 $(XECHO) "... with lowboot configuration" ; \
692 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
695 cam5200_niosflash_config \
699 TQM5200S_HIGHBOOT_config \
701 TQM5200_B_HIGHBOOT_config \
703 TQM5200_STK100_config: unconfig
704 @mkdir -p $(obj)include
705 @mkdir -p $(obj)board/tqm5200
706 @[ -z "$(findstring cam5200,$@)" ] || \
707 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
708 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
709 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
710 $(XECHO) "... TQM5200S on Cam5200" ; \
712 @[ -z "$(findstring niosflash,$@)" ] || \
713 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
714 $(XECHO) "... with NIOS flash driver" ; \
716 @[ -z "$(findstring fo300,$@)" ] || \
717 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
718 $(XECHO) "... TQM5200 on FO300" ; \
720 @[ -z "$(findstring MiniFAP,$@)" ] || \
721 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
722 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
724 @[ -z "$(findstring STK100,$@)" ] || \
725 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
726 $(XECHO) "... on a STK52XX.100 base board" ; \
728 @[ -z "$(findstring TQM5200_B,$@)" ] || \
729 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
731 @[ -z "$(findstring TQM5200S,$@)" ] || \
732 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
733 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
735 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
736 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
738 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
739 uc101_config: unconfig
740 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
741 motionpro_config: unconfig
742 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
745 #########################################################################
747 #########################################################################
751 @mkdir -p $(obj)include
752 @if [ "$(findstring _PCI_,$@)" ] ; then \
753 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
754 $(XECHO) "... with PCI enabled" ; \
756 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
759 #########################################################################
761 #########################################################################
767 @mkdir -p $(obj)include
768 $(if $(findstring AdderII,$@), \
769 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
770 @$(MKCONFIG) -a Adder ppc mpc8xx adder
772 AdderUSB_config: unconfig
773 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
780 FADS860T_config: unconfig
781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
783 AMX860_config : unconfig
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
786 c2mon_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
792 cogent_mpc8xx_config: unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
795 ELPT860_config: unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
798 EP88x_config: unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
801 ESTEEM192E_config: unconfig
802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
804 ETX094_config : unconfig
805 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
807 FLAGADM_config: unconfig
808 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
810 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
813 GEN860T_config: unconfig
814 @mkdir -p $(obj)include
815 @[ -z "$(findstring _SC,$@)" ] || \
816 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
817 $(XECHO) "With reduced H/W feature set (SC)..." ; \
819 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
821 GENIETV_config: unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
827 hermes_config : unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
830 HMI10_config : unconfig
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
833 IAD210_config: unconfig
834 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
836 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
838 ICU862_100MHz_config \
839 ICU862_config: unconfig
840 @mkdir -p $(obj)include
841 @[ -z "$(findstring _100MHz,$@)" ] || \
842 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
843 $(XECHO) "... with 100MHz system clock" ; \
845 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
847 IP860_config : unconfig
848 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
852 IVML24_config: unconfig
853 @mkdir -p $(obj)include
854 @[ -z "$(findstring IVML24_config,$@)" ] || \
855 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
857 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
858 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
860 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
861 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
863 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
867 IVMS8_config: unconfig
868 @mkdir -p $(obj)include
869 @[ -z "$(findstring IVMS8_config,$@)" ] || \
870 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
872 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
873 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
875 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
876 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
878 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
880 KUP4K_config : unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
883 KUP4X_config : unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
886 LANTEC_config : unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
889 lwmon_config: unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
893 MBX860T_config: unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
896 mgsuvd_config: unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
899 MHPC_config: unconfig
900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
902 MVS1_config : unconfig
903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
905 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
908 NETVIA_config: unconfig
909 @mkdir -p $(obj)include
910 @[ -z "$(findstring NETVIA_config,$@)" ] || \
911 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
912 $(XECHO) "... Version 1" ; \
914 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
915 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
916 $(XECHO) "... Version 2" ; \
918 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
920 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
923 NETPHONE_config: unconfig
924 @mkdir -p $(obj)include
925 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
926 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
928 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
929 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
931 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
933 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
935 NETTA_ISDN_6412_SWAPHOOK_config \
936 NETTA_ISDN_SWAPHOOK_config \
937 NETTA_6412_SWAPHOOK_config \
938 NETTA_SWAPHOOK_config \
939 NETTA_ISDN_6412_config \
942 NETTA_config: unconfig
943 @mkdir -p $(obj)include
944 @[ -z "$(findstring ISDN_,$@)" ] || \
945 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
947 @[ -n "$(findstring ISDN_,$@)" ] || \
948 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
950 @[ -z "$(findstring 6412_,$@)" ] || \
951 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
953 @[ -n "$(findstring 6412_,$@)" ] || \
954 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
956 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
957 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
959 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
960 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
962 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
964 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
967 NETTA2_config: unconfig
968 @mkdir -p $(obj)include
969 @[ -z "$(findstring NETTA2_config,$@)" ] || \
970 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
972 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
973 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
975 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
979 CP850_config: unconfig
980 @mkdir -p $(obj)include
981 @[ -z "$(findstring CP850,$@)" ] || \
982 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
983 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
985 @[ -z "$(findstring Rev1,$@)" ] || \
986 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
988 @[ -z "$(findstring Rev2,$@)" ] || \
989 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
991 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
993 NX823_config: unconfig
994 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
996 pcu_e_config: unconfig
997 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
999 QS850_config: unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1002 QS823_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1005 QS860T_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1008 quantum_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1011 R360MPI_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1014 RBC823_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1017 RPXClassic_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1020 RPXlite_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1023 RPXlite_DW_64_config \
1024 RPXlite_DW_LCD_config \
1025 RPXlite_DW_64_LCD_config \
1026 RPXlite_DW_NVRAM_config \
1027 RPXlite_DW_NVRAM_64_config \
1028 RPXlite_DW_NVRAM_LCD_config \
1029 RPXlite_DW_NVRAM_64_LCD_config \
1030 RPXlite_DW_config: unconfig
1031 @mkdir -p $(obj)include
1032 @[ -z "$(findstring _64,$@)" ] || \
1033 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1034 $(XECHO) "... with 64MHz system clock ..."; \
1036 @[ -z "$(findstring _LCD,$@)" ] || \
1037 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1038 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1039 $(XECHO) "... with LCD display ..."; \
1041 @[ -z "$(findstring _NVRAM,$@)" ] || \
1042 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1043 $(XECHO) "... with ENV in NVRAM ..."; \
1045 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1047 rmu_config: unconfig
1048 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1050 RRvision_config: unconfig
1051 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1053 RRvision_LCD_config: unconfig
1054 @mkdir -p $(obj)include
1055 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1056 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1057 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1059 SM850_config : unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1062 spc1920_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1065 SPD823TS_config: unconfig
1066 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1068 stxxtc_config: unconfig
1069 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1071 svm_sc8xx_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1074 SXNI855T_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1077 # EMK MPC8xx based modules
1078 TOP860_config: unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1081 # Play some tricks for configuration selection
1082 # Only 855 and 860 boards may come with FEC
1083 # and only 823 boards may have LCD support
1084 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1090 TQM823L_LCD_config \
1103 virtlab2_config: unconfig
1104 @mkdir -p $(obj)include
1105 @[ -z "$(findstring _LCD,$@)" ] || \
1106 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1107 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1108 $(XECHO) "... with LCD display" ; \
1110 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1112 TTTech_config: unconfig
1113 @mkdir -p $(obj)include
1114 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1115 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1116 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1118 uc100_config : unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1121 v37_config: unconfig
1122 @mkdir -p $(obj)include
1123 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1124 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1125 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1127 wtk_config: unconfig
1128 @mkdir -p $(obj)include
1129 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1130 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1131 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1133 #########################################################################
1135 #########################################################################
1136 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1138 acadia_config: unconfig
1139 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1141 acadia_nand_config: unconfig
1142 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1143 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1144 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1145 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1146 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1147 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1149 ADCIOP_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1152 alpr_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1155 AP1000_config:unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1158 APC405_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1161 AR405_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1164 ASH405_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1167 bamboo_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1170 bamboo_nand_config: unconfig
1171 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1172 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1173 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1174 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1175 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1176 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1178 bubinga_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1181 CANBT_config: unconfig
1182 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1184 # Canyonlands & Glacier use different U-Boot images
1185 canyonlands_config \
1186 glacier_config: unconfig
1187 @mkdir -p $(obj)include
1188 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1189 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1190 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1192 canyonlands_nand_config \
1193 glacier_nand_config: unconfig
1194 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1195 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1196 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1197 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1198 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1199 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1200 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1201 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1204 CATcenter_25_config \
1205 CATcenter_33_config: unconfig
1206 @mkdir -p $(obj)include
1207 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1208 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1209 @[ -z "$(findstring _25,$@)" ] || \
1210 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1211 $(XECHO) "SysClk = 25MHz" ; \
1213 @[ -z "$(findstring _33,$@)" ] || \
1214 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1215 $(XECHO) "SysClk = 33MHz" ; \
1217 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1219 CPCI2DP_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1225 CPCI405AB_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1227 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1229 CPCIISER4_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1232 CRAYL1_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1235 csb272_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1238 csb472_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1241 DASA_SIM_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1244 DP405_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1247 DU405_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1250 DU440_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1253 ebony_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1256 ERIC_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1259 EXBITGEN_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1262 G2000_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1265 hcu4_config: unconfig
1266 @mkdir -p $(obj)board/netstal/common
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1269 hcu5_config: unconfig
1270 @mkdir -p $(obj)board/netstal/common
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1273 HH405_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1276 HUB405_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1279 JSE_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1282 KAREF_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1285 katmai_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1288 # Kilauea & Haleakala images are identical (recognized via PVR)
1290 haleakala_config: unconfig
1291 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1293 kilauea_nand_config \
1294 haleakala_nand_config: unconfig
1295 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1296 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1297 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1298 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1299 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1300 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1302 korat_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1305 luan_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1308 lwmon5_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1311 makalu_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1314 mcu25_config: unconfig
1315 @mkdir -p $(obj)board/netstal/common
1316 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1318 METROBOX_config: unconfig
1319 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1321 MIP405_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1324 MIP405T_config: unconfig
1325 @mkdir -p $(obj)include
1326 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1327 @$(XECHO) "Enable subset config for MIP405T"
1328 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1330 ML2_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1333 ml300_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1336 ocotea_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1340 ORSG_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1343 p3p440_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1346 PCI405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1349 pcs440ep_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1352 PIP405_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1355 PLU405_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1358 PMC405_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1361 PMC440_config: unconfig
1362 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1364 PPChameleonEVB_config \
1365 PPChameleonEVB_BA_25_config \
1366 PPChameleonEVB_ME_25_config \
1367 PPChameleonEVB_HI_25_config \
1368 PPChameleonEVB_BA_33_config \
1369 PPChameleonEVB_ME_33_config \
1370 PPChameleonEVB_HI_33_config: unconfig
1371 @mkdir -p $(obj)include
1372 @[ -z "$(findstring EVB_BA,$@)" ] || \
1373 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1374 $(XECHO) "... BASIC model" ; \
1376 @[ -z "$(findstring EVB_ME,$@)" ] || \
1377 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1378 $(XECHO) "... MEDIUM model" ; \
1380 @[ -z "$(findstring EVB_HI,$@)" ] || \
1381 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1382 $(XECHO) "... HIGH-END model" ; \
1384 @[ -z "$(findstring _25,$@)" ] || \
1385 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1386 $(XECHO) "SysClk = 25MHz" ; \
1388 @[ -z "$(findstring _33,$@)" ] || \
1389 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1390 $(XECHO) "SysClk = 33MHz" ; \
1392 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1394 sbc405_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1398 rainier_config: unconfig
1399 @mkdir -p $(obj)include
1400 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1401 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1402 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1404 sequoia_nand_config \
1405 rainier_nand_config: unconfig
1406 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1407 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1408 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1409 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1410 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1411 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1412 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1413 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1418 taihu_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1421 taishan_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1424 VOH405_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1427 VOM405_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1430 CMS700_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1434 W7OLMG_config: unconfig
1435 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1437 # Walnut & Sycamore images are identical (recognized via PVR)
1439 sycamore_config: unconfig
1440 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1442 WUH405_config: unconfig
1443 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1445 XPEDITE1K_config: unconfig
1446 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1449 yellowstone_config: unconfig
1450 @mkdir -p $(obj)include
1451 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1452 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1453 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1455 yucca_config: unconfig
1456 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1458 zeus_config: unconfig
1459 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1461 #########################################################################
1463 #########################################################################
1466 Yukon8220_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1469 sorcery_config: unconfig
1470 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1472 #########################################################################
1474 #########################################################################
1475 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1477 A3000_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1480 barco_config: unconfig
1481 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1483 BMW_config: unconfig
1484 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1487 CPC45_ROMBOOT_config: unconfig
1488 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1489 @cd $(obj)include ; \
1490 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1491 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1492 $(XECHO) "... booting from 8-bit flash" ; \
1494 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1495 $(XECHO) "... booting from 64-bit flash" ; \
1497 echo "export CONFIG_BOOT_ROM" >> config.mk;
1499 CU824_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1502 debris_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1505 eXalion_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1508 HIDDEN_DRAGON_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1511 kvme080_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1514 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1516 #linkstation_HDLAN_config \
1517 # Remove this line when HDLAN is fixed
1518 linkstation_HGLAN_config: unconfig
1519 @mkdir -p $(obj)include
1521 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1522 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1524 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1526 MOUSSE_config: unconfig
1527 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1529 MUSENKI_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1532 MVBLUE_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1535 OXC_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1538 PN62_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1541 Sandpoint8240_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1544 Sandpoint8245_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1547 sbc8240_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1550 SL8245_config: unconfig
1551 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1553 utx8245_config: unconfig
1554 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1556 #########################################################################
1558 #########################################################################
1560 atc_config: unconfig
1561 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1563 cogent_mpc8260_config: unconfig
1564 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1567 CPU86_ROMBOOT_config: unconfig
1568 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1569 @cd $(obj)include ; \
1570 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1571 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1572 $(XECHO) "... booting from 8-bit flash" ; \
1574 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1575 $(XECHO) "... booting from 64-bit flash" ; \
1577 echo "export CONFIG_BOOT_ROM" >> config.mk;
1580 CPU87_ROMBOOT_config: unconfig
1581 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1582 @cd $(obj)include ; \
1583 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1584 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1585 $(XECHO) "... booting from 8-bit flash" ; \
1587 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1588 $(XECHO) "... booting from 64-bit flash" ; \
1590 echo "export CONFIG_BOOT_ROM" >> config.mk;
1593 ep8248E_config : unconfig
1594 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1596 ep8260_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1599 ep82xxm_config: unconfig
1600 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1602 gw8260_config: unconfig
1603 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1605 hymod_config: unconfig
1606 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1608 IDS8247_config: unconfig
1609 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1611 IPHASE4539_config: unconfig
1612 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1615 ISPAN_REVB_config: unconfig
1616 @mkdir -p $(obj)include
1617 @if [ "$(findstring _REVB_,$@)" ] ; then \
1618 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1620 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1622 mgcoge_config : unconfig
1623 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1626 MPC8260ADS_lowboot_config \
1627 MPC8260ADS_33MHz_config \
1628 MPC8260ADS_33MHz_lowboot_config \
1629 MPC8260ADS_40MHz_config \
1630 MPC8260ADS_40MHz_lowboot_config \
1632 MPC8272ADS_lowboot_config \
1634 PQ2FADS_lowboot_config \
1636 PQ2FADS-VR_lowboot_config \
1638 PQ2FADS-ZU_lowboot_config \
1639 PQ2FADS-ZU_66MHz_config \
1640 PQ2FADS-ZU_66MHz_lowboot_config \
1642 @mkdir -p $(obj)include
1643 @mkdir -p $(obj)board/freescale/mpc8260ads
1644 $(if $(findstring PQ2FADS,$@), \
1645 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1646 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1647 $(if $(findstring MHz,$@), \
1648 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1649 $(if $(findstring VR,$@), \
1650 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1651 @[ -z "$(findstring lowboot_,$@)" ] || \
1652 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1653 $(XECHO) "... with lowboot configuration" ; \
1655 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1657 MPC8266ADS_config: unconfig
1658 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1660 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1662 PM825_ROMBOOT_config \
1663 PM825_BIGFLASH_config \
1664 PM825_ROMBOOT_BIGFLASH_config \
1666 PM826_ROMBOOT_config \
1667 PM826_BIGFLASH_config \
1668 PM826_ROMBOOT_BIGFLASH_config: unconfig
1669 @mkdir -p $(obj)include
1670 @mkdir -p $(obj)board/pm826
1671 @if [ "$(findstring PM825_,$@)" ] ; then \
1672 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1674 >$(obj)include/config.h ; \
1676 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1677 $(XECHO) "... booting from 8-bit flash" ; \
1678 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1679 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1680 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1681 $(XECHO) "... with 32 MB Flash" ; \
1682 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1685 $(XECHO) "... booting from 64-bit flash" ; \
1686 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1687 $(XECHO) "... with 32 MB Flash" ; \
1688 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1689 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1691 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1694 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1698 PM828_ROMBOOT_config \
1699 PM828_ROMBOOT_PCI_config: unconfig
1700 @mkdir -p $(obj)include
1701 @mkdir -p $(obj)board/pm826
1702 @if [ "$(findstring _PCI_,$@)" ] ; then \
1703 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1704 $(XECHO) "... with PCI enabled" ; \
1706 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1707 $(XECHO) "... booting from 8-bit flash" ; \
1708 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1709 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1711 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1713 ppmc8260_config: unconfig
1714 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1716 Rattler8248_config \
1717 Rattler_config: unconfig
1718 @mkdir -p $(obj)include
1719 $(if $(findstring 8248,$@), \
1720 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1721 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1723 RPXsuper_config: unconfig
1724 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1726 rsdproto_config: unconfig
1727 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1729 sacsng_config: unconfig
1730 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1732 sbc8260_config: unconfig
1733 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1735 SCM_config: unconfig
1736 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1748 TQM8265_AA_config: unconfig
1749 @mkdir -p $(obj)include
1751 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1752 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1753 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1754 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1755 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1756 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1757 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1758 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1759 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1760 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1761 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1763 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1764 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1766 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1767 echo "... with $${CFREQ}MHz system clock" ; \
1768 if [ "$${CACHE}" = "yes" ] ; then \
1769 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1770 $(XECHO) "... with L2 Cache support" ; \
1772 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1773 $(XECHO) "... without L2 Cache support" ; \
1775 if [ "$${BMODE}" = "60x" ] ; then \
1776 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1777 $(XECHO) "... with 60x Bus Mode" ; \
1779 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1780 $(XECHO) "... without 60x Bus Mode" ; \
1782 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1784 TQM8272_config: unconfig
1785 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1787 VoVPN-GW_66MHz_config \
1788 VoVPN-GW_100MHz_config: unconfig
1789 @mkdir -p $(obj)include
1790 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1791 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1793 ZPC1900_config: unconfig
1794 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1796 #########################################################################
1798 #########################################################################
1800 M52277EVB_config: unconfig
1801 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1804 M5235EVB_Flash16_config \
1805 M5235EVB_Flash32_config: unconfig
1807 M5235EVB_config) FLASH=16;; \
1808 M5235EVB_Flash16_config) FLASH=16;; \
1809 M5235EVB_Flash32_config) FLASH=32;; \
1811 if [ "$${FLASH}" != "16" ] ; then \
1812 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1813 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1814 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1816 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1817 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1819 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1821 M5249EVB_config : unconfig
1822 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1824 M5253EVBE_config : unconfig
1825 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1827 cobra5272_config : unconfig
1828 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1830 EB+MCF-EV123_config : unconfig
1831 @mkdir -p $(obj)include
1832 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1833 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1834 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1836 EB+MCF-EV123_internal_config : unconfig
1837 @mkdir -p $(obj)include
1838 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1839 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1840 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1842 idmr_config : unconfig
1843 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1845 M5271EVB_config : unconfig
1846 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1848 M5272C3_config : unconfig
1849 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1851 M5275EVB_config : unconfig
1852 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1854 M5282EVB_config : unconfig
1855 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1857 TASREG_config : unconfig
1858 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1861 M5329BFEE_config : unconfig
1863 M5329AFEE_config) NAND=0;; \
1864 M5329BFEE_config) NAND=16;; \
1866 if [ "$${NAND}" != "0" ] ; then \
1867 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1869 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1871 M5373EVB_config : unconfig
1873 M5373EVB_config) NAND=16;; \
1875 if [ "$${NAND}" != "0" ] ; then \
1876 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1878 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1881 M54455EVB_atmel_config \
1882 M54455EVB_intel_config \
1883 M54455EVB_a33_config \
1884 M54455EVB_a66_config \
1885 M54455EVB_i33_config \
1886 M54455EVB_i66_config : unconfig
1888 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1889 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1890 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1891 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1892 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1893 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1894 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1896 if [ "$${FLASH}" = "INTEL" ] ; then \
1897 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1898 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1899 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1900 $(XECHO) "... with INTEL boot..." ; \
1902 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1903 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1904 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1905 $(XECHO) "... with ATMEL boot..." ; \
1907 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1908 $(XECHO) "... with $${FREQ}Hz input clock"
1909 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1917 M5475GFE_config : unconfig
1919 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1920 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1921 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1922 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1923 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1924 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1925 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1927 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1928 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1929 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1930 if [ "$${RAM1}" != "0" ] ; then \
1931 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1933 if [ "$${CODE}" != "0" ] ; then \
1934 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1936 if [ "$${VID}" == "1" ] ; then \
1937 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1939 if [ "$${USB}" == "1" ] ; then \
1940 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1942 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1951 M5485HFE_config : unconfig
1953 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1954 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1955 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1956 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1957 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1958 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1959 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1960 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1962 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1963 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1964 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1965 if [ "$${RAM1}" != "0" ] ; then \
1966 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1968 if [ "$${CODE}" != "0" ] ; then \
1969 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1971 if [ "$${VID}" == "1" ] ; then \
1972 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1974 if [ "$${USB}" == "1" ] ; then \
1975 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1977 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1979 #########################################################################
1981 #########################################################################
1983 MPC8313ERDB_33_config \
1984 MPC8313ERDB_66_config: unconfig
1985 @mkdir -p $(obj)include
1986 @if [ "$(findstring _33_,$@)" ] ; then \
1987 $(XECHO) -n "...33M ..." ; \
1988 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1990 if [ "$(findstring _66_,$@)" ] ; then \
1991 $(XECHO) -n "...66M..." ; \
1992 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1994 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1996 MPC8315ERDB_config: unconfig
1997 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1999 MPC8323ERDB_config: unconfig
2000 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2002 MPC832XEMDS_config \
2003 MPC832XEMDS_HOST_33_config \
2004 MPC832XEMDS_HOST_66_config \
2005 MPC832XEMDS_SLAVE_config \
2006 MPC832XEMDS_ATM_config: unconfig
2007 @mkdir -p $(obj)include
2008 @if [ "$(findstring _HOST_,$@)" ] ; then \
2009 $(XECHO) -n "... PCI HOST " ; \
2010 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2012 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2013 $(XECHO) "...PCI SLAVE 66M" ; \
2014 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2015 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2017 if [ "$(findstring _33_,$@)" ] ; then \
2018 $(XECHO) -n "...33M ..." ; \
2019 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2020 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2022 if [ "$(findstring _66_,$@)" ] ; then \
2023 $(XECHO) -n "...66M..." ; \
2024 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2025 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2027 if [ "$(findstring _ATM_,$@)" ] ; then \
2028 $(XECHO) -n "...ATM..." ; \
2029 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2030 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2032 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2034 MPC8349EMDS_config: unconfig
2035 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2038 MPC8349ITX_LOWBOOT_config \
2039 MPC8349ITXGP_config: unconfig
2040 @mkdir -p $(obj)include
2041 @mkdir -p $(obj)board/freescale/mpc8349itx
2042 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2043 @if [ "$(findstring GP,$@)" ] ; then \
2044 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2046 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2047 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2049 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2051 MPC8360EMDS_config \
2052 MPC8360EMDS_HOST_33_config \
2053 MPC8360EMDS_HOST_66_config \
2054 MPC8360EMDS_SLAVE_config \
2055 MPC8360EMDS_ATM_config: unconfig
2056 @mkdir -p $(obj)include
2057 @if [ "$(findstring _HOST_,$@)" ] ; then \
2058 $(XECHO) -n "... PCI HOST " ; \
2059 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2061 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2062 $(XECHO) "...PCI SLAVE 66M" ; \
2063 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2064 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2066 if [ "$(findstring _33_,$@)" ] ; then \
2067 $(XECHO) -n "...33M ..." ; \
2068 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2069 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2071 if [ "$(findstring _66_,$@)" ] ; then \
2072 $(XECHO) -n "...66M..." ; \
2073 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2074 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2076 if [ "$(findstring _ATM_,$@)" ] ; then \
2077 $(XECHO) -n "...ATM..." ; \
2078 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2079 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2081 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2083 MPC8360ERDK_33_config \
2084 MPC8360ERDK_66_config \
2085 MPC8360ERDK_config: unconfig
2086 @mkdir -p $(obj)include
2087 @if [ "$(findstring _33_,$@)" ] ; then \
2088 $(XECHO) -n "... CLKIN 33MHz " ; \
2089 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2091 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2093 MPC837XEMDS_config \
2094 MPC837XEMDS_HOST_config: unconfig
2095 @mkdir -p $(obj)include
2096 @if [ "$(findstring _HOST_,$@)" ] ; then \
2097 $(XECHO) -n "... PCI HOST " ; \
2098 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2100 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2102 MPC837XERDB_config: unconfig
2103 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2105 sbc8349_config: unconfig
2106 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2108 TQM834x_config: unconfig
2109 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2112 #########################################################################
2114 #########################################################################
2116 ATUM8548_config: unconfig
2117 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2119 MPC8540ADS_config: unconfig
2120 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2122 MPC8540EVAL_config \
2123 MPC8540EVAL_33_config \
2124 MPC8540EVAL_66_config \
2125 MPC8540EVAL_33_slave_config \
2126 MPC8540EVAL_66_slave_config: unconfig
2127 @mkdir -p $(obj)include
2128 @if [ "$(findstring _33_,$@)" ] ; then \
2129 $(XECHO) "... 33 MHz PCI" ; \
2131 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2132 $(XECHO) "... 66 MHz PCI" ; \
2134 if [ "$(findstring _slave_,$@)" ] ; then \
2135 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2136 $(XECHO) " slave" ; \
2138 $(XECHO) " host" ; \
2140 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2142 MPC8560ADS_config: unconfig
2143 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2145 MPC8541CDS_legacy_config \
2146 MPC8541CDS_config: unconfig
2147 @mkdir -p $(obj)include
2148 @if [ "$(findstring _legacy_,$@)" ] ; then \
2149 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2150 $(XECHO) "... legacy" ; \
2152 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2154 MPC8544DS_config: unconfig
2155 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2157 MPC8548CDS_legacy_config \
2158 MPC8548CDS_config: unconfig
2159 @mkdir -p $(obj)include
2160 @if [ "$(findstring _legacy_,$@)" ] ; then \
2161 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2162 $(XECHO) "... legacy" ; \
2164 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2166 MPC8555CDS_legacy_config \
2167 MPC8555CDS_config: unconfig
2168 @mkdir -p $(obj)include
2169 @if [ "$(findstring _legacy_,$@)" ] ; then \
2170 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2171 $(XECHO) "... legacy" ; \
2173 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2175 MPC8568MDS_config: unconfig
2176 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2178 PM854_config: unconfig
2179 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2181 PM856_config: unconfig
2182 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2186 sbc8540_66_config: unconfig
2187 @mkdir -p $(obj)include
2188 @if [ "$(findstring _66_,$@)" ] ; then \
2189 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2190 $(XECHO) "... 66 MHz PCI" ; \
2192 $(XECHO) "... 33 MHz PCI" ; \
2194 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2196 sbc8548_config: unconfig
2197 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2201 sbc8560_66_config: unconfig
2202 @mkdir -p $(obj)include
2203 @if [ "$(findstring _66_,$@)" ] ; then \
2204 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2205 $(XECHO) "... 66 MHz PCI" ; \
2207 $(XECHO) "... 33 MHz PCI" ; \
2209 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2211 socrates_config: unconfig
2212 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2214 stxgp3_config: unconfig
2215 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2218 stxssa_4M_config: unconfig
2219 @mkdir -p $(obj)include
2220 @if [ "$(findstring _4M_,$@)" ] ; then \
2221 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2222 $(XECHO) "... with 4 MiB flash memory" ; \
2224 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2229 TQM8560_config: unconfig
2230 @mkdir -p $(obj)include
2231 @CTYPE=$(subst TQM,,$(@:_config=)); \
2232 $(XECHO) "... TQM"$${CTYPE}; \
2233 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2234 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2235 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2236 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2237 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2238 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2240 #########################################################################
2242 #########################################################################
2244 MPC8610HPCD_config: unconfig
2245 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2247 MPC8641HPCN_config: unconfig
2248 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2250 sbc8641d_config: unconfig
2251 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2253 #########################################################################
2255 #########################################################################
2257 AmigaOneG3SE_config: unconfig
2258 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2260 BAB7xx_config: unconfig
2261 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2263 CPCI750_config: unconfig
2264 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2266 DB64360_config: unconfig
2267 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2269 DB64460_config: unconfig
2270 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2272 ELPPC_config: unconfig
2273 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2276 EVB64260_750CX_config: unconfig
2277 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2279 mpc7448hpc2_config: unconfig
2280 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2282 P3G4_config: unconfig
2283 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2286 p3m7448_config: unconfig
2287 @mkdir -p $(obj)include
2288 @if [ "$(findstring 750_,$@)" ] ; then \
2289 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2291 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2293 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2296 PCIPPC6_config: unconfig
2297 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2299 ZUMA_config: unconfig
2300 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2302 ppmc7xx_config: unconfig
2303 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2305 #========================================================================
2307 #========================================================================
2308 #########################################################################
2309 ## StrongARM Systems
2310 #########################################################################
2312 assabet_config : unconfig
2313 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2315 dnp1110_config : unconfig
2316 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2318 gcplus_config : unconfig
2319 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2321 lart_config : unconfig
2322 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2324 shannon_config : unconfig
2325 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2327 #########################################################################
2329 #########################################################################
2331 #########################################################################
2332 ## Atmel AT91RM9200 Systems
2333 #########################################################################
2335 at91rm9200dk_config : unconfig
2336 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2338 cmc_pu2_config : unconfig
2339 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2341 csb637_config : unconfig
2342 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2344 kb9202_config : unconfig
2345 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2347 mp2usb_config : unconfig
2348 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2350 m501sk_config : unconfig
2351 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2353 #########################################################################
2354 ## Atmel ARM926EJ-S Systems
2355 #########################################################################
2357 at91cap9adk_config : unconfig
2358 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2360 at91sam9260ek_config : unconfig
2361 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2363 ########################################################################
2364 ## ARM Integrator boards - see doc/README-integrator for more info.
2365 integratorap_config \
2374 ap946es_config: unconfig
2375 @board/integratorap/split_by_variant.sh $@
2377 integratorcp_config \
2386 cp1026_config: unconfig
2387 @board/integratorcp/split_by_variant.sh $@
2390 lpd7a404_config: unconfig
2391 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2393 mx1ads_config : unconfig
2394 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2396 mx1fs2_config : unconfig
2397 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2399 netstar_config: unconfig
2400 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2402 omap1510inn_config : unconfig
2403 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2405 omap5912osk_config : unconfig
2406 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2408 davinci_dvevm_config : unconfig
2409 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2411 davinci_schmoogie_config : unconfig
2412 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2414 davinci_sonata_config : unconfig
2415 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2417 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2419 omap1610inn_config \
2420 omap1610inn_cs0boot_config \
2421 omap1610inn_cs3boot_config \
2422 omap1610inn_cs_autoboot_config \
2424 omap1610h2_cs0boot_config \
2425 omap1610h2_cs3boot_config \
2426 omap1610h2_cs_autoboot_config: unconfig
2427 @mkdir -p $(obj)include
2428 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2429 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2430 $(XECHO) "... configured for CS0 boot"; \
2431 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2432 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2433 $(XECHO) "... configured for CS_AUTO boot"; \
2435 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2436 $(XECHO) "... configured for CS3 boot"; \
2438 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2440 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2443 omap730p2_cs0boot_config \
2444 omap730p2_cs3boot_config : unconfig
2445 @mkdir -p $(obj)include
2446 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2447 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2448 $(XECHO) "... configured for CS0 boot"; \
2450 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2451 $(XECHO) "... configured for CS3 boot"; \
2453 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2455 sbc2410x_config: unconfig
2456 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2458 scb9328_config : unconfig
2459 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2461 smdk2400_config : unconfig
2462 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2464 smdk2410_config : unconfig
2465 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2467 SX1_config : unconfig
2468 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2470 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2471 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2474 trab_bigram_config \
2475 trab_bigflash_config \
2476 trab_old_config: unconfig
2477 @mkdir -p $(obj)include
2478 @mkdir -p $(obj)board/trab
2479 @[ -z "$(findstring _bigram,$@)" ] || \
2480 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2481 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2482 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2484 @[ -z "$(findstring _bigflash,$@)" ] || \
2485 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2486 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2487 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2488 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2490 @[ -z "$(findstring _old,$@)" ] || \
2491 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2492 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2493 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2494 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2496 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2498 VCMA9_config : unconfig
2499 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2501 #========================================================================
2502 # ARM supplied Versatile development boards
2503 #========================================================================
2505 versatileab_config \
2506 versatilepb_config : unconfig
2507 @board/versatile/split_by_variant.sh $@
2509 voiceblue_config: unconfig
2510 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2512 cm4008_config : unconfig
2513 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2515 cm41xx_config : unconfig
2516 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2518 #########################################################################
2520 #########################################################################
2522 B2_config : unconfig
2523 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2525 #########################################################################
2527 #########################################################################
2529 armadillo_config: unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2532 ep7312_config : unconfig
2533 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2535 impa7_config : unconfig
2536 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2538 modnet50_config : unconfig
2539 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2541 evb4510_config : unconfig
2542 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2544 lpc2292sodimm_config: unconfig
2545 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2547 SMN42_config : unconfig
2548 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2550 #########################################################################
2552 #########################################################################
2554 actux1_config : unconfig
2555 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2557 actux2_config : unconfig
2558 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2560 actux3_config : unconfig
2561 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2563 actux4_config : unconfig
2564 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2566 adsvix_config : unconfig
2567 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2569 cerf250_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2572 cradle_config : unconfig
2573 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2575 csb226_config : unconfig
2576 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2578 delta_config : unconfig
2579 @$(MKCONFIG) $(@:_config=) arm pxa delta
2581 innokom_config : unconfig
2582 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2584 ixdp425_config : unconfig
2585 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2587 ixdpg425_config : unconfig
2588 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2590 lubbock_config : unconfig
2591 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2593 pleb2_config : unconfig
2594 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2596 logodl_config : unconfig
2597 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2600 scpu_config: unconfig
2601 @mkdir -p $(obj)include
2602 @if [ "$(findstring scpu_,$@)" ] ; then \
2603 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2604 $(XECHO) "... on SCPU board variant" ; \
2606 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2608 pxa255_idp_config: unconfig
2609 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2611 trizepsiv_config : unconfig
2612 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2614 wepep250_config : unconfig
2615 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2617 xaeniax_config : unconfig
2618 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2620 xm250_config : unconfig
2621 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2623 xsengine_config : unconfig
2624 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2627 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2629 #########################################################################
2631 #########################################################################
2632 omap2420h4_config : unconfig
2633 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2635 apollon_config : unconfig
2636 @mkdir -p $(obj)include
2637 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2638 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2639 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2641 imx31_litekit_config : unconfig
2642 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2644 imx31_phycore_config : unconfig
2645 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2647 mx31ads_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2650 #========================================================================
2652 #========================================================================
2653 #########################################################################
2655 #########################################################################
2656 sc520_cdp_config : unconfig
2657 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2659 sc520_spunk_config : unconfig
2660 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2662 sc520_spunk_rel_config : unconfig
2663 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2665 #========================================================================
2667 #========================================================================
2668 #########################################################################
2670 #########################################################################
2672 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2674 incaip_100MHz_config \
2675 incaip_133MHz_config \
2676 incaip_150MHz_config \
2677 incaip_config: unconfig
2678 @mkdir -p $(obj)include
2679 @[ -z "$(findstring _100MHz,$@)" ] || \
2680 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2681 $(XECHO) "... with 100MHz system clock" ; \
2683 @[ -z "$(findstring _133MHz,$@)" ] || \
2684 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2685 $(XECHO) "... with 133MHz system clock" ; \
2687 @[ -z "$(findstring _150MHz,$@)" ] || \
2688 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2689 $(XECHO) "... with 150MHz system clock" ; \
2691 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2693 tb0229_config: unconfig
2694 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2696 #########################################################################
2698 #########################################################################
2699 dbau1000_config : unconfig
2700 @mkdir -p $(obj)include
2701 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2702 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2704 dbau1100_config : unconfig
2705 @mkdir -p $(obj)include
2706 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2707 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2709 dbau1500_config : unconfig
2710 @mkdir -p $(obj)include
2711 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2712 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2714 dbau1550_config : unconfig
2715 @mkdir -p $(obj)include
2716 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2717 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2719 dbau1550_el_config : unconfig
2720 @mkdir -p $(obj)include
2721 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2722 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2724 pb1000_config : unconfig
2725 @mkdir -p $(obj)include
2726 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2727 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2729 gth2_config: unconfig
2730 @mkdir -p $(obj)include
2731 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2732 @$(MKCONFIG) -a gth2 mips mips gth2
2734 qemu_mips_config: unconfig
2735 @mkdir -p $(obj)include
2736 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2737 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2739 #########################################################################
2741 #########################################################################
2743 purple_config : unconfig
2744 @$(MKCONFIG) $(@:_config=) mips mips purple
2746 #========================================================================
2748 #========================================================================
2749 #########################################################################
2751 #########################################################################
2753 DK1C20_safe_32_config \
2754 DK1C20_standard_32_config \
2755 DK1C20_config: unconfig
2756 @mkdir -p $(obj)include
2757 @[ -z "$(findstring _safe_32,$@)" ] || \
2758 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2759 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2761 @[ -z "$(findstring _standard_32,$@)" ] || \
2762 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2763 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2765 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2766 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2767 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2769 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2771 DK1S10_safe_32_config \
2772 DK1S10_standard_32_config \
2773 DK1S10_mtx_ldk_20_config \
2774 DK1S10_config: unconfig
2775 @mkdir -p $(obj)include
2776 @[ -z "$(findstring _safe_32,$@)" ] || \
2777 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2778 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2780 @[ -z "$(findstring _standard_32,$@)" ] || \
2781 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2782 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2784 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2785 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2786 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2788 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2789 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2790 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2792 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2794 ADNPESC1_DNPEVA2_base_32_config \
2795 ADNPESC1_base_32_config \
2796 ADNPESC1_config: unconfig
2797 @mkdir -p $(obj)include
2798 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2799 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2800 $(XECHO) "... DNP/EVA2 configuration" ; \
2802 @[ -z "$(findstring _base_32,$@)" ] || \
2803 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2804 $(XECHO) "... NIOS 'base_32' configuration" ; \
2806 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2807 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2808 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2810 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2812 #########################################################################
2814 #########################################################################
2816 EP1C20_config : unconfig
2817 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2819 EP1S10_config : unconfig
2820 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2822 EP1S40_config : unconfig
2823 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2825 PK1C20_config : unconfig
2826 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2828 PCI5441_config : unconfig
2829 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2831 #========================================================================
2833 #========================================================================
2834 #########################################################################
2836 #########################################################################
2837 suzaku_config: unconfig
2838 @mkdir -p $(obj)include
2839 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2840 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2842 ml401_config: unconfig
2843 @mkdir -p $(obj)include
2844 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2845 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2847 xupv2p_config: unconfig
2848 @mkdir -p $(obj)include
2849 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2850 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2852 #========================================================================
2854 #========================================================================
2856 # Analog Devices boards
2857 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2859 $(BFIN_BOARDS:%=%_config) : unconfig
2860 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2866 #========================================================================
2868 #========================================================================
2869 #########################################################################
2871 #########################################################################
2873 atstk1002_config : unconfig
2874 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2876 atstk1003_config : unconfig
2877 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2879 atstk1004_config : unconfig
2880 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2882 atngw100_config : unconfig
2883 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2885 #########################################################################
2886 #########################################################################
2887 #########################################################################
2889 #########################################################################
2890 ## sh3 (Renesas SuperH)
2891 #########################################################################
2892 mpr2_config: unconfig
2894 @echo "#define CONFIG_MPR2 1" >> include/config.h
2895 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2897 ms7720se_config: unconfig
2898 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2899 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2901 #########################################################################
2902 ## sh4 (Renesas SuperH)
2903 #########################################################################
2904 ms7750se_config: unconfig
2905 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2906 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2908 ms7722se_config : unconfig
2909 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2910 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2912 MigoR_config : unconfig
2914 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2915 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2917 r7780mp_config: unconfig
2919 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2920 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2922 r2dplus_config : unconfig
2924 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2925 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2927 #========================================================================
2929 #========================================================================
2930 #########################################################################
2932 #########################################################################
2934 # Gaisler GR-XC3S-1500 board
2935 gr_xc3s_1500_config : unconfig
2936 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
2938 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
2939 gr_cpci_ax2000_config : unconfig
2940 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
2942 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
2943 # Development board Stratix II edition, FPGA Device EP2S60.
2944 gr_ep2s60_config: unconfig
2945 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
2947 # Gaisler LEON3 GRSIM simulator
2948 grsim_config : unconfig
2949 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2951 #########################################################################
2953 #########################################################################
2955 # Gaisler LEON2 GRSIM simulator
2956 grsim_leon2_config : unconfig
2957 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2959 #########################################################################
2960 #########################################################################
2961 #########################################################################
2964 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2965 $(obj)examples/hello_world $(obj)examples/interrupt \
2966 $(obj)examples/mem_to_mem_idma2intr \
2967 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2968 $(obj)examples/test_burst $(obj)examples/timer
2969 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2970 $(obj)tools/env/{fw_printenv,fw_setenv} \
2971 $(obj)tools/envcrc \
2972 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2973 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2974 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2975 $(obj)tools/ncb $(obj)tools/ubsha1
2976 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2977 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2978 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2979 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2980 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2981 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2982 @rm -f $(obj)include/bmp_logo.h
2983 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
2984 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2985 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2986 @find $(OBJTREE) -type f \
2987 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2988 -o -name '*.o' -o -name '*.a' \) -print \
2992 @find $(OBJTREE) -type f \( -name .depend \
2993 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2996 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2997 $(obj)cscope.* $(obj)*.*~
2998 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2999 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3000 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3001 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3002 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3003 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3004 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
3005 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
3006 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
3008 ifeq ($(OBJTREE),$(SRCTREE))
3010 distclean: clobber unconfig
3013 distclean: clobber unconfig
3018 F=`basename $(TOPDIR)` ; cd .. ; \
3019 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3021 #########################################################################