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 ifneq "$(SUBLEVEL)" ""
29 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
33 TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34 VERSION_FILE = $(obj)include/version_autogenerated.h
36 HOSTARCH := $(shell uname -m | \
45 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
46 sed -e 's/\(cygwin\).*/cygwin/')
48 # Set shell to bash if possible, otherwise fall back to sh
49 SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
53 export HOSTARCH HOSTOS SHELL
55 # Deal with colliding definitions from tcsh etc.
58 #########################################################################
59 # Allow for silent builds
60 ifeq (,$(findstring s,$(MAKEFLAGS)))
66 #########################################################################
68 # U-boot build supports producing a object files to the separate external
69 # directory. Two use cases are supported:
71 # 1) Add O= to the make command line
72 # 'make O=/tmp/build all'
74 # 2) Set environement variable BUILD_DIR to point to the desired location
75 # 'export BUILD_DIR=/tmp/build'
78 # The second approach can also be used with a MAKEALL script
79 # 'export BUILD_DIR=/tmp/build'
82 # Command line 'O=' setting overrides BUILD_DIR environent variable.
84 # When none of the above methods is used the local build is performed and
85 # the object files are placed in the source directory.
89 ifeq ("$(origin O)", "command line")
95 saved-output := $(BUILD_DIR)
97 # Attempt to create a output directory.
98 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
100 # Verify if it was successful.
101 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103 endif # ifneq ($(BUILD_DIR),)
105 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
109 export TOPDIR SRCTREE OBJTREE
111 MKCONFIG := $(SRCTREE)/mkconfig
114 ifneq ($(OBJTREE),$(SRCTREE))
119 # $(obj) and (src) are defined in config.mk but here in main Makefile
120 # we also need them before config.mk is included which is the case for
121 # some targets like unconfig, clean, clobber, distclean, etc.
122 ifneq ($(OBJTREE),$(SRCTREE))
131 # Make sure CDPATH settings don't interfere
134 #########################################################################
136 ifeq ($(ARCH),powerpc)
140 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
142 # load ARCH, BOARD, and CPU configuration
143 include $(obj)include/config.mk
144 export ARCH CPU BOARD VENDOR SOC
147 ifeq ($(HOSTARCH),$(ARCH))
151 CROSS_COMPILE = ppc_8xx-
154 CROSS_COMPILE = arm-linux-
157 CROSS_COMPILE = i386-linux-
160 CROSS_COMPILE = mips_4KC-
163 CROSS_COMPILE = nios-elf-
166 CROSS_COMPILE = nios2-elf-
169 CROSS_COMPILE = m68k-elf-
171 ifeq ($(ARCH),microblaze)
174 ifeq ($(ARCH),blackfin)
175 CROSS_COMPILE = bfin-uclinux-
178 CROSS_COMPILE = avr32-linux-
181 CROSS_COMPILE = sh4-linux-
184 CROSS_COMPILE = sparc-elf-
186 endif # HOSTARCH,ARCH
187 endif # CROSS_COMPILE
191 # load other configuration
192 include $(TOPDIR)/config.mk
194 #########################################################################
195 # U-Boot objects....order is important (i.e. start must be first)
197 OBJS = cpu/$(CPU)/start.o
199 OBJS += cpu/$(CPU)/start16.o
200 OBJS += cpu/$(CPU)/resetvec.o
203 OBJS += cpu/$(CPU)/resetvec.o
205 ifeq ($(CPU),mpc85xx)
206 OBJS += cpu/$(CPU)/resetvec.o
209 OBJS := $(addprefix $(obj),$(OBJS))
211 LIBS = lib_generic/libgeneric.a
212 LIBS += lib_generic/lzma/liblzma.a
213 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
214 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
215 LIBS += cpu/$(CPU)/lib$(CPU).a
217 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
220 LIBS += cpu/ixp/npe/libnpe.a
222 LIBS += lib_$(ARCH)/lib$(ARCH).a
223 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
224 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
226 LIBS += disk/libdisk.a
227 LIBS += drivers/bios_emulator/libatibiosemu.a
228 LIBS += drivers/block/libblock.a
229 LIBS += drivers/dma/libdma.a
230 LIBS += drivers/fpga/libfpga.a
231 LIBS += drivers/gpio/libgpio.a
232 LIBS += drivers/hwmon/libhwmon.a
233 LIBS += drivers/i2c/libi2c.a
234 LIBS += drivers/input/libinput.a
235 LIBS += drivers/misc/libmisc.a
236 LIBS += drivers/mmc/libmmc.a
237 LIBS += drivers/mtd/libmtd.a
238 LIBS += drivers/mtd/nand/libnand.a
239 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
240 LIBS += drivers/mtd/onenand/libonenand.a
241 LIBS += drivers/mtd/ubi/libubi.a
242 LIBS += drivers/mtd/spi/libspi_flash.a
243 LIBS += drivers/net/libnet.a
244 LIBS += drivers/net/phy/libphy.a
245 LIBS += drivers/net/sk98lin/libsk98lin.a
246 LIBS += drivers/pci/libpci.a
247 LIBS += drivers/pcmcia/libpcmcia.a
248 LIBS += drivers/spi/libspi.a
249 ifeq ($(CPU),mpc83xx)
250 LIBS += drivers/qe/qe.a
252 ifeq ($(CPU),mpc85xx)
253 LIBS += drivers/qe/qe.a
254 LIBS += cpu/mpc8xxx/ddr/libddr.a
255 TAG_SUBDIRS += cpu/mpc8xxx
257 ifeq ($(CPU),mpc86xx)
258 LIBS += cpu/mpc8xxx/ddr/libddr.a
259 TAG_SUBDIRS += cpu/mpc8xxx
261 LIBS += drivers/rtc/librtc.a
262 LIBS += drivers/serial/libserial.a
263 LIBS += drivers/usb/libusb.a
264 LIBS += drivers/video/libvideo.a
265 LIBS += common/libcommon.a
266 LIBS += libfdt/libfdt.a
268 LIBS += post/libpost.a
270 LIBS := $(addprefix $(obj),$(LIBS))
271 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
273 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
274 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
277 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
279 # The "tools" are needed early, so put this first
280 # Don't include stuff already done in $(LIBS)
287 ifeq ($(CONFIG_NAND_U_BOOT),y)
289 U_BOOT_NAND = $(obj)u-boot-nand.bin
292 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
293 ONENAND_IPL = onenand_ipl
294 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
297 __OBJS := $(subst $(obj),,$(OBJS))
298 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
300 #########################################################################
301 #########################################################################
303 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
304 ifeq ($(ARCH),blackfin)
305 ALL += $(obj)u-boot.ldr
310 $(obj)u-boot.hex: $(obj)u-boot
311 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
313 $(obj)u-boot.srec: $(obj)u-boot
314 $(OBJCOPY) -O srec $< $@
316 $(obj)u-boot.bin: $(obj)u-boot
317 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
319 $(obj)u-boot.ldr: $(obj)u-boot
320 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
322 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
323 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
325 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
326 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
328 $(obj)u-boot.img: $(obj)u-boot.bin
329 ./tools/mkimage -A $(ARCH) -T firmware -C none \
330 -a $(TEXT_BASE) -e 0 \
331 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
332 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
335 $(obj)u-boot.sha1: $(obj)u-boot.bin
336 $(obj)tools/ubsha1 $(obj)u-boot.bin
338 $(obj)u-boot.dis: $(obj)u-boot
339 $(OBJDUMP) -d $< > $@
341 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
342 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
343 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
344 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
345 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
346 -Map u-boot.map -o u-boot
348 $(OBJS): depend $(obj)include/autoconf.mk
349 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
351 $(LIBS): depend $(obj)include/autoconf.mk $(SUBDIRS)
352 $(MAKE) -C $(dir $(subst $(obj),,$@))
354 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
355 $(MAKE) -C $(dir $(subst $(obj),,$@))
357 $(SUBDIRS): depend $(obj)include/autoconf.mk
360 $(LDSCRIPT): depend $(obj)include/autoconf.mk
361 $(MAKE) -C $(dir $@) $(notdir $@)
363 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
364 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
366 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
367 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
369 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
370 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
372 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
373 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
374 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
377 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
378 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
379 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
382 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
383 @date +'#define U_BOOT_TIME "%T"' >> $@
386 $(MAKE) -C tools/gdb all || exit 1
389 $(MAKE) -C tools/updater all || exit 1
392 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
394 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE)
395 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
397 TAG_SUBDIRS += include
398 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
399 TAG_SUBDIRS += cpu/$(CPU)
400 TAG_SUBDIRS += lib_$(ARCH)
401 TAG_SUBDIRS += fs/cramfs
402 TAG_SUBDIRS += fs/fat
403 TAG_SUBDIRS += fs/fdos
404 TAG_SUBDIRS += fs/jffs2
405 TAG_SUBDIRS += fs/yaffs2
408 TAG_SUBDIRS += common
409 TAG_SUBDIRS += drivers/bios_emulator
410 TAG_SUBDIRS += drivers/block
411 TAG_SUBDIRS += drivers/gpio
412 TAG_SUBDIRS += drivers/hwmon
413 TAG_SUBDIRS += drivers/i2c
414 TAG_SUBDIRS += drivers/input
415 TAG_SUBDIRS += drivers/misc
416 TAG_SUBDIRS += drivers/mmc
417 TAG_SUBDIRS += drivers/mtd
418 TAG_SUBDIRS += drivers/mtd/nand
419 TAG_SUBDIRS += drivers/mtd/nand_legacy
420 TAG_SUBDIRS += drivers/mtd/onenand
421 TAG_SUBDIRS += drivers/mtd/spi
422 TAG_SUBDIRS += drivers/net
423 TAG_SUBDIRS += drivers/net/sk98lin
424 TAG_SUBDIRS += drivers/pci
425 TAG_SUBDIRS += drivers/pcmcia
426 TAG_SUBDIRS += drivers/qe
427 TAG_SUBDIRS += drivers/rtc
428 TAG_SUBDIRS += drivers/serial
429 TAG_SUBDIRS += drivers/spi
430 TAG_SUBDIRS += drivers/usb
431 TAG_SUBDIRS += drivers/video
434 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
435 -name '*.[ch]' -print`
438 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
439 -name '*.[ch]' -print`
441 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
445 $(obj)System.map: $(obj)u-boot
447 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
448 sort > $(obj)System.map
451 # Auto-generate the autoconf.mk file (which is included by all makefiles)
453 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
454 # the dep file is only include in this top level makefile to determine when
455 # to regenerate the autoconf.mk file.
456 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
457 @$(XECHO) Generating $@ ; \
459 : Generate the dependancies ; \
460 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
461 -MQ $(obj)include/autoconf.mk include/common.h > $@
463 $(obj)include/autoconf.mk: $(obj)include/config.h
464 @$(XECHO) Generating $@ ; \
466 : Extract the config macros ; \
467 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
468 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
471 sinclude $(obj)include/autoconf.mk.dep
473 #########################################################################
475 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
476 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
477 $(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
478 dep tags ctags etags cscope $(obj)System.map:
479 @echo "System not configured - see README" >&2
485 git log --no-merges U-Boot-1_1_5.. | \
486 unexpand -a | sed -e 's/\s\s*$$//' > $@
488 include/license.h: tools/bin2header COPYING
489 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
490 #########################################################################
493 @rm -f $(obj)include/config.h $(obj)include/config.mk \
494 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
495 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
497 #========================================================================
499 #========================================================================
501 #########################################################################
503 #########################################################################
505 canmb_config: unconfig
506 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
508 cmi_mpc5xx_config: unconfig
509 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
511 PATI_config: unconfig
512 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
514 #########################################################################
516 #########################################################################
519 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
521 BC3450_config: unconfig
522 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
524 cm5200_config: unconfig
525 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
527 cpci5200_config: unconfig
528 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
530 hmi1001_config: unconfig
531 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
534 Lite5200_LOWBOOT_config \
535 Lite5200_LOWBOOT08_config \
536 icecube_5200_config \
537 icecube_5200_LOWBOOT_config \
538 icecube_5200_LOWBOOT08_config \
539 icecube_5200_DDR_config \
540 icecube_5200_DDR_LOWBOOT_config \
541 icecube_5200_DDR_LOWBOOT08_config \
542 icecube_5100_config: unconfig
543 @mkdir -p $(obj)include
544 @mkdir -p $(obj)board/icecube
545 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
546 { if [ "$(findstring DDR,$@)" ] ; \
547 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
548 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
550 $(XECHO) "... with LOWBOOT configuration" ; \
552 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
553 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
554 echo "... with 8 MB flash only" ; \
555 $(XECHO) "... with LOWBOOT configuration" ; \
557 @[ -z "$(findstring DDR,$@)" ] || \
558 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
559 $(XECHO) "... DDR memory revision" ; \
561 @[ -z "$(findstring 5200,$@)" ] || \
562 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
563 $(XECHO) "... with MPC5200 processor" ; \
565 @[ -z "$(findstring 5100,$@)" ] || \
566 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
567 $(XECHO) "... with MGT5100 processor" ; \
569 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
571 jupiter_config: unconfig
572 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
574 inka4x0_config: unconfig
575 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
578 lite5200b_PM_config \
579 lite5200b_LOWBOOT_config: unconfig
580 @mkdir -p $(obj)include
581 @mkdir -p $(obj)board/icecube
582 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
583 @ $(XECHO) "... DDR memory revision"
584 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
585 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
586 @[ -z "$(findstring _PM_,$@)" ] || \
587 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
588 $(XECHO) "... with power management (low-power mode) support" ; \
590 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
591 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
592 $(XECHO) "... with LOWBOOT configuration" ; \
594 @ $(XECHO) "... with MPC5200B processor"
595 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
598 mcc200_SDRAM_config \
599 mcc200_highboot_config \
600 mcc200_COM12_config \
601 mcc200_COM12_SDRAM_config \
602 mcc200_COM12_highboot_config \
603 mcc200_COM12_highboot_SDRAM_config \
604 mcc200_highboot_SDRAM_config \
607 prs200_highboot_config \
608 prs200_highboot_DDR_config: unconfig
609 @mkdir -p $(obj)include
610 @mkdir -p $(obj)board/mcc200
611 @[ -n "$(findstring highboot,$@)" ] || \
612 { $(XECHO) "... with lowboot configuration" ; \
614 @[ -z "$(findstring highboot,$@)" ] || \
615 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
616 $(XECHO) "... with highboot configuration" ; \
618 @[ -n "$(findstring _SDRAM,$@)" ] || \
619 { if [ -n "$(findstring mcc200,$@)" ]; \
621 $(XECHO) "... with DDR" ; \
623 if [ -n "$(findstring _DDR,$@)" ];\
625 $(XECHO) "... with DDR" ; \
627 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
628 $(XECHO) "... with SDRAM" ; \
632 @[ -z "$(findstring _SDRAM,$@)" ] || \
633 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
634 $(XECHO) "... with SDRAM" ; \
636 @[ -z "$(findstring COM12,$@)" ] || \
637 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
638 $(XECHO) "... with console on COM12" ; \
640 @[ -z "$(findstring prs200,$@)" ] || \
641 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
643 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
645 mecp5200_config: unconfig
646 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
648 motionpro_config: unconfig
649 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
651 mucmc52_config: unconfig
652 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
654 munices_config: unconfig
655 @$(MKCONFIG) munices ppc mpc5xxx munices
657 MVBC_P_config: unconfig
658 @mkdir -p $(obj)include
659 @mkdir -p $(obj)board/mvbc_p
660 @ >$(obj)include/config.h
661 @[ -z "$(findstring MVBC_P,$@)" ] || \
662 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
663 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
665 o2dnt_config: unconfig
666 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
668 pf5200_config: unconfig
669 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
673 PM520_ROMBOOT_config \
674 PM520_ROMBOOT_DDR_config: unconfig
675 @mkdir -p $(obj)include
676 @[ -z "$(findstring DDR,$@)" ] || \
677 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
678 $(XECHO) "... DDR memory revision" ; \
680 @[ -z "$(findstring ROMBOOT,$@)" ] || \
681 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
682 $(XECHO) "... booting from 8-bit flash" ; \
684 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
686 smmaco4_config: unconfig
687 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
689 spieval_config: unconfig
690 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
693 TB5200_config: unconfig
694 @mkdir -p $(obj)include
695 @[ -z "$(findstring _B,$@)" ] || \
696 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
697 $(XECHO) "... with MPC5200B processor" ; \
699 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
703 TOP5200_config: unconfig
704 @mkdir -p $(obj)include
705 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
706 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
710 Total5200_lowboot_config \
711 Total5200_Rev2_config \
712 Total5200_Rev2_lowboot_config: unconfig
713 @mkdir -p $(obj)include
714 @mkdir -p $(obj)board/total5200
715 @[ -z "$(findstring 5100,$@)" ] || \
716 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
717 $(XECHO) "... with MGT5100 processor" ; \
719 @[ -z "$(findstring 5200,$@)" ] || \
720 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
721 $(XECHO) "... with MPC5200 processor" ; \
723 @[ -n "$(findstring Rev,$@)" ] || \
724 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
725 $(XECHO) "... revision 1 board" ; \
727 @[ -z "$(findstring Rev2_,$@)" ] || \
728 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
729 $(XECHO) "... revision 2 board" ; \
731 @[ -z "$(findstring lowboot_,$@)" ] || \
732 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
733 $(XECHO) "... with lowboot configuration" ; \
735 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
738 cam5200_niosflash_config \
742 TQM5200S_HIGHBOOT_config \
744 TQM5200_B_HIGHBOOT_config \
746 TQM5200_STK100_config: unconfig
747 @mkdir -p $(obj)include
748 @mkdir -p $(obj)board/tqc/tqm5200
749 @[ -z "$(findstring cam5200,$@)" ] || \
750 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
751 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
752 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
753 $(XECHO) "... TQM5200S on Cam5200" ; \
755 @[ -z "$(findstring niosflash,$@)" ] || \
756 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
757 $(XECHO) "... with NIOS flash driver" ; \
759 @[ -z "$(findstring fo300,$@)" ] || \
760 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
761 $(XECHO) "... TQM5200 on FO300" ; \
763 @[ -z "$(findstring MiniFAP,$@)" ] || \
764 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
765 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
767 @[ -z "$(findstring STK100,$@)" ] || \
768 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
769 $(XECHO) "... on a STK52XX.100 base board" ; \
771 @[ -z "$(findstring TQM5200_B,$@)" ] || \
772 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
774 @[ -z "$(findstring TQM5200S,$@)" ] || \
775 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
776 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
778 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
779 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
781 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
783 uc101_config: unconfig
784 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
786 v38b_config: unconfig
787 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
789 #########################################################################
791 #########################################################################
794 ads5121_rev2_config \
796 @mkdir -p $(obj)include
797 @if [ "$(findstring rev2,$@)" ] ; then \
798 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
800 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
803 #########################################################################
805 #########################################################################
811 @mkdir -p $(obj)include
812 $(if $(findstring AdderII,$@), \
813 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
814 @$(MKCONFIG) -a Adder ppc mpc8xx adder
816 AdderUSB_config: unconfig
817 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
824 FADS860T_config: unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
827 AMX860_config : unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
830 c2mon_config: unconfig
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
834 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
836 cogent_mpc8xx_config: unconfig
837 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
839 ELPT860_config: unconfig
840 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
842 EP88x_config: unconfig
843 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
845 ESTEEM192E_config: unconfig
846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
848 ETX094_config : unconfig
849 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
851 FLAGADM_config: unconfig
852 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
854 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
857 GEN860T_config: unconfig
858 @mkdir -p $(obj)include
859 @[ -z "$(findstring _SC,$@)" ] || \
860 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
861 $(XECHO) "With reduced H/W feature set (SC)..." ; \
863 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
865 GENIETV_config: unconfig
866 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
869 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
871 hermes_config : unconfig
872 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
874 HMI10_config : unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
877 IAD210_config: unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
880 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
882 ICU862_100MHz_config \
883 ICU862_config: unconfig
884 @mkdir -p $(obj)include
885 @[ -z "$(findstring _100MHz,$@)" ] || \
886 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
887 $(XECHO) "... with 100MHz system clock" ; \
889 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
891 IP860_config : unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
896 IVML24_config: unconfig
897 @mkdir -p $(obj)include
898 @[ -z "$(findstring IVML24_config,$@)" ] || \
899 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
901 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
902 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
904 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
905 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
907 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
911 IVMS8_config: unconfig
912 @mkdir -p $(obj)include
913 @[ -z "$(findstring IVMS8_config,$@)" ] || \
914 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
916 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
917 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
919 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
920 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
922 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
924 KUP4K_config : unconfig
925 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
927 KUP4X_config : unconfig
928 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
930 LANTEC_config : unconfig
931 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
933 lwmon_config: unconfig
934 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
937 MBX860T_config: unconfig
938 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
940 mgsuvd_config: unconfig
941 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
943 MHPC_config: unconfig
944 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
946 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
949 NETVIA_config: unconfig
950 @mkdir -p $(obj)include
951 @[ -z "$(findstring NETVIA_config,$@)" ] || \
952 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
953 $(XECHO) "... Version 1" ; \
955 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
956 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
957 $(XECHO) "... Version 2" ; \
959 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
961 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
964 NETPHONE_config: unconfig
965 @mkdir -p $(obj)include
966 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
967 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
969 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
970 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
972 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
974 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
976 NETTA_ISDN_6412_SWAPHOOK_config \
977 NETTA_ISDN_SWAPHOOK_config \
978 NETTA_6412_SWAPHOOK_config \
979 NETTA_SWAPHOOK_config \
980 NETTA_ISDN_6412_config \
983 NETTA_config: unconfig
984 @mkdir -p $(obj)include
985 @[ -z "$(findstring ISDN_,$@)" ] || \
986 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
988 @[ -n "$(findstring ISDN_,$@)" ] || \
989 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
991 @[ -z "$(findstring 6412_,$@)" ] || \
992 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
994 @[ -n "$(findstring 6412_,$@)" ] || \
995 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
997 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
998 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
1000 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1001 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
1003 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
1005 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
1008 NETTA2_config: unconfig
1009 @mkdir -p $(obj)include
1010 @[ -z "$(findstring NETTA2_config,$@)" ] || \
1011 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1013 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1014 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1016 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1020 CP850_config: unconfig
1021 @mkdir -p $(obj)include
1022 @[ -z "$(findstring CP850,$@)" ] || \
1023 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1024 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1026 @[ -z "$(findstring Rev1,$@)" ] || \
1027 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1029 @[ -z "$(findstring Rev2,$@)" ] || \
1030 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1032 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1034 NX823_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1037 pcu_e_config: unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1040 QS850_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1043 QS823_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1046 QS860T_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1049 quantum_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1052 R360MPI_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1055 RBC823_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1058 RPXClassic_config: unconfig
1059 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1061 RPXlite_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1064 RPXlite_DW_64_config \
1065 RPXlite_DW_LCD_config \
1066 RPXlite_DW_64_LCD_config \
1067 RPXlite_DW_NVRAM_config \
1068 RPXlite_DW_NVRAM_64_config \
1069 RPXlite_DW_NVRAM_LCD_config \
1070 RPXlite_DW_NVRAM_64_LCD_config \
1071 RPXlite_DW_config: unconfig
1072 @mkdir -p $(obj)include
1073 @[ -z "$(findstring _64,$@)" ] || \
1074 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1075 $(XECHO) "... with 64MHz system clock ..."; \
1077 @[ -z "$(findstring _LCD,$@)" ] || \
1078 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1079 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1080 $(XECHO) "... with LCD display ..."; \
1082 @[ -z "$(findstring _NVRAM,$@)" ] || \
1083 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1084 $(XECHO) "... with ENV in NVRAM ..."; \
1086 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1088 rmu_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1091 RRvision_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1094 RRvision_LCD_config: unconfig
1095 @mkdir -p $(obj)include
1096 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1097 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1098 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1100 SM850_config : unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1103 spc1920_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1106 SPD823TS_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1109 stxxtc_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1112 svm_sc8xx_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1115 SXNI855T_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1118 # EMK MPC8xx based modules
1119 TOP860_config: unconfig
1120 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1122 # Play some tricks for configuration selection
1123 # Only 855 and 860 boards may come with FEC
1124 # and only 823 boards may have LCD support
1125 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1131 TQM823L_LCD_config \
1144 virtlab2_config: unconfig
1145 @mkdir -p $(obj)include
1146 @[ -z "$(findstring _LCD,$@)" ] || \
1147 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1148 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1149 $(XECHO) "... with LCD display" ; \
1151 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1153 TTTech_config: unconfig
1154 @mkdir -p $(obj)include
1155 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1156 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1157 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1159 uc100_config : unconfig
1160 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1162 v37_config: unconfig
1163 @mkdir -p $(obj)include
1164 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1165 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1166 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1168 wtk_config: unconfig
1169 @mkdir -p $(obj)include
1170 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1171 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1172 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1174 #########################################################################
1176 #########################################################################
1177 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1179 acadia_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1182 acadia_nand_config: unconfig
1183 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1184 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1185 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1186 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1187 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1188 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1190 ADCIOP_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1193 alpr_config: unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1196 AP1000_config:unconfig
1197 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1199 APC405_config: unconfig
1200 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1202 AR405_config: unconfig
1203 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1205 ASH405_config: unconfig
1206 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1208 bamboo_config: unconfig
1209 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1211 bamboo_nand_config: unconfig
1212 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1213 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1214 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1215 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1216 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1217 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1219 bubinga_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1222 CANBT_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1225 # Arches, Canyonlands & Glacier use different U-Boot images
1227 canyonlands_config \
1228 glacier_config: unconfig
1229 @mkdir -p $(obj)include
1230 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1231 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1232 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1234 canyonlands_nand_config \
1235 glacier_nand_config: unconfig
1236 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1237 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1238 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1239 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1240 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1241 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1242 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1243 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1246 CATcenter_25_config \
1247 CATcenter_33_config: unconfig
1248 @mkdir -p $(obj)include
1249 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1250 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1251 @[ -z "$(findstring _25,$@)" ] || \
1252 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1253 $(XECHO) "SysClk = 25MHz" ; \
1255 @[ -z "$(findstring _33,$@)" ] || \
1256 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1257 $(XECHO) "SysClk = 33MHz" ; \
1259 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1261 CMS700_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1264 CPCI2DP_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1270 CPCI405AB_config: unconfig
1271 @mkdir -p $(obj)board/esd/cpci405
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1274 CPCIISER4_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1277 CRAYL1_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1280 csb272_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1283 csb472_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1286 DASA_SIM_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1289 DP405_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1292 DU405_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1295 DU440_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1298 ebony_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1301 ERIC_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1304 EXBITGEN_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1307 fx12mm_flash_config: unconfig
1308 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1309 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1310 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1311 > $(obj)board/avnet/fx12mm/config.tmp
1312 @echo "TEXT_BASE := 0xFFCB0000" \
1313 >> $(obj)board/avnet/fx12mm/config.tmp
1314 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1316 fx12mm_config: unconfig
1317 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1318 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1319 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1320 > $(obj)board/avnet/fx12mm/config.tmp
1321 @echo "TEXT_BASE := 0x03000000" \
1322 >> $(obj)board/avnet/fx12mm/config.tmp
1323 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1325 G2000_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1328 hcu4_config: unconfig
1329 @mkdir -p $(obj)board/netstal/common
1330 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1332 hcu5_config: unconfig
1333 @mkdir -p $(obj)board/netstal/common
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1336 HH405_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1339 HUB405_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1342 JSE_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1345 KAREF_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1348 katmai_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1351 # Kilauea & Haleakala images are identical (recognized via PVR)
1353 haleakala_config: unconfig
1354 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1356 kilauea_nand_config \
1357 haleakala_nand_config: unconfig
1358 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1359 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1360 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1361 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1362 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1363 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1365 korat_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1368 luan_config: unconfig
1369 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1371 lwmon5_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1374 makalu_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1377 mcu25_config: unconfig
1378 @mkdir -p $(obj)board/netstal/common
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1381 METROBOX_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1384 MIP405_config: unconfig
1385 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1387 MIP405T_config: unconfig
1388 @mkdir -p $(obj)include
1389 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1390 @$(XECHO) "Enable subset config for MIP405T"
1391 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1393 ML2_config: unconfig
1394 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1396 ml300_config: unconfig
1397 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1399 ml507_flash_config: unconfig
1400 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1401 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1402 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1403 > $(obj)board/xilinx/ml507/config.tmp
1404 @echo "TEXT_BASE := 0xFE360000" \
1405 >> $(obj)board/xilinx/ml507/config.tmp
1406 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1408 ml507_config: unconfig
1409 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1410 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1411 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1412 > $(obj)board/xilinx/ml507/config.tmp
1413 @echo "TEXT_BASE := 0x04000000" \
1414 >> $(obj)board/xilinx/ml507/config.tmp
1415 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1417 neo_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1420 ocotea_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1424 ORSG_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1427 p3p440_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1430 PCI405_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1433 pcs440ep_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1436 PIP405_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1439 PLU405_config: unconfig
1440 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1442 PMC405_config: unconfig
1443 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1445 PMC440_config: unconfig
1446 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1448 PPChameleonEVB_config \
1449 PPChameleonEVB_BA_25_config \
1450 PPChameleonEVB_ME_25_config \
1451 PPChameleonEVB_HI_25_config \
1452 PPChameleonEVB_BA_33_config \
1453 PPChameleonEVB_ME_33_config \
1454 PPChameleonEVB_HI_33_config: unconfig
1455 @mkdir -p $(obj)include
1456 @[ -z "$(findstring EVB_BA,$@)" ] || \
1457 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1458 $(XECHO) "... BASIC model" ; \
1460 @[ -z "$(findstring EVB_ME,$@)" ] || \
1461 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1462 $(XECHO) "... MEDIUM model" ; \
1464 @[ -z "$(findstring EVB_HI,$@)" ] || \
1465 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1466 $(XECHO) "... HIGH-END model" ; \
1468 @[ -z "$(findstring _25,$@)" ] || \
1469 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1470 $(XECHO) "SysClk = 25MHz" ; \
1472 @[ -z "$(findstring _33,$@)" ] || \
1473 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1474 $(XECHO) "SysClk = 33MHz" ; \
1476 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1478 quad100hd_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1481 redwood_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1484 sbc405_config: unconfig
1485 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1488 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1491 rainier_config: unconfig
1492 @mkdir -p $(obj)include
1493 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1494 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1495 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1497 sequoia_nand_config \
1498 rainier_nand_config: unconfig
1499 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1500 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1501 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1502 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1503 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1504 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1505 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1506 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1508 taihu_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1511 taishan_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1514 v5fx30teval_config: unconfig
1515 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1516 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1517 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1518 > $(obj)board/avnet/v5fx30teval/config.tmp
1519 @echo "TEXT_BASE := 0x03000000" \
1520 >> $(obj)board/avnet/v5fx30teval/config.tmp
1521 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1523 v5fx30teval_flash_config: unconfig
1524 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1525 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1526 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1527 > $(obj)board/avnet/v5fx30teval/config.tmp
1528 @echo "TEXT_BASE := 0xFF1C0000" \
1529 >> $(obj)board/avnet/v5fx30teval/config.tmp
1530 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1532 VOH405_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1535 VOM405_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1539 W7OLMG_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1542 # Walnut & Sycamore images are identical (recognized via PVR)
1544 sycamore_config: unconfig
1545 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1547 WUH405_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1550 xilinx-ppc405-generic_flash_config: unconfig
1551 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1552 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1553 > $(obj)board/xilinx/ppc405-generic/config.tmp
1554 @echo "TEXT_BASE := 0xFE360000" \
1555 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1556 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1558 xilinx-ppc405-generic_config: unconfig
1559 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1560 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1561 > $(obj)board/xilinx/ppc405-generic/config.tmp
1562 @echo "TEXT_BASE := 0x04000000" \
1563 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1564 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1566 xilinx-ppc440-generic_flash_config: unconfig
1567 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1568 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1569 > $(obj)board/xilinx/ppc440-generic/config.tmp
1570 @echo "TEXT_BASE := 0xFE360000" \
1571 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1572 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1574 xilinx-ppc440-generic_config: unconfig
1575 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1576 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1577 > $(obj)board/xilinx/ppc440-generic/config.tmp
1578 @echo "TEXT_BASE := 0x04000000" \
1579 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1580 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1582 XPEDITE1K_config: unconfig
1583 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1586 yellowstone_config: unconfig
1587 @mkdir -p $(obj)include
1588 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1589 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1590 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1592 yucca_config: unconfig
1593 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1595 zeus_config: unconfig
1596 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1598 #########################################################################
1600 #########################################################################
1603 Yukon8220_config: unconfig
1604 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1606 sorcery_config: unconfig
1607 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1609 #########################################################################
1611 #########################################################################
1612 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1614 A3000_config: unconfig
1615 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1617 barco_config: unconfig
1618 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1620 BMW_config: unconfig
1621 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1624 CPC45_ROMBOOT_config: unconfig
1625 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1626 @cd $(obj)include ; \
1627 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1628 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1629 $(XECHO) "... booting from 8-bit flash" ; \
1631 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1632 $(XECHO) "... booting from 64-bit flash" ; \
1634 echo "export CONFIG_BOOT_ROM" >> config.mk;
1636 CU824_config: unconfig
1637 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1639 debris_config: unconfig
1640 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1642 eXalion_config: unconfig
1643 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1645 HIDDEN_DRAGON_config: unconfig
1646 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1648 kvme080_config: unconfig
1649 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1651 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1653 #linkstation_HDLAN_config \
1654 # Remove this line when HDLAN is fixed
1655 linkstation_HGLAN_config: unconfig
1656 @mkdir -p $(obj)include
1658 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1659 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1661 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1663 MOUSSE_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1666 MUSENKI_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1669 MVBLUE_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1672 OXC_config: unconfig
1673 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1675 PN62_config: unconfig
1676 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1678 Sandpoint8240_config: unconfig
1679 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1681 Sandpoint8245_config: unconfig
1682 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1684 sbc8240_config: unconfig
1685 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1687 SL8245_config: unconfig
1688 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1690 utx8245_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1693 #########################################################################
1695 #########################################################################
1697 atc_config: unconfig
1698 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1700 cogent_mpc8260_config: unconfig
1701 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1704 CPU86_ROMBOOT_config: unconfig
1705 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1706 @cd $(obj)include ; \
1707 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1708 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1709 $(XECHO) "... booting from 8-bit flash" ; \
1711 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1712 $(XECHO) "... booting from 64-bit flash" ; \
1714 echo "export CONFIG_BOOT_ROM" >> config.mk;
1717 CPU87_ROMBOOT_config: unconfig
1718 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1719 @cd $(obj)include ; \
1720 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1721 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1722 $(XECHO) "... booting from 8-bit flash" ; \
1724 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1725 $(XECHO) "... booting from 64-bit flash" ; \
1727 echo "export CONFIG_BOOT_ROM" >> config.mk;
1730 ep8248E_config : unconfig
1731 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1733 ep8260_config: unconfig
1734 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1736 ep82xxm_config: unconfig
1737 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1739 gw8260_config: unconfig
1740 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1742 hymod_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1745 IDS8247_config: unconfig
1746 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1748 IPHASE4539_config: unconfig
1749 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1752 ISPAN_REVB_config: unconfig
1753 @mkdir -p $(obj)include
1754 @if [ "$(findstring _REVB_,$@)" ] ; then \
1755 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1757 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1759 mgcoge_config : unconfig
1760 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1763 MPC8260ADS_lowboot_config \
1764 MPC8260ADS_33MHz_config \
1765 MPC8260ADS_33MHz_lowboot_config \
1766 MPC8260ADS_40MHz_config \
1767 MPC8260ADS_40MHz_lowboot_config \
1769 MPC8272ADS_lowboot_config \
1771 PQ2FADS_lowboot_config \
1773 PQ2FADS-VR_lowboot_config \
1775 PQ2FADS-ZU_lowboot_config \
1776 PQ2FADS-ZU_66MHz_config \
1777 PQ2FADS-ZU_66MHz_lowboot_config \
1779 @mkdir -p $(obj)include
1780 @mkdir -p $(obj)board/freescale/mpc8260ads
1781 $(if $(findstring PQ2FADS,$@), \
1782 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1783 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1784 $(if $(findstring MHz,$@), \
1785 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1786 $(if $(findstring VR,$@), \
1787 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1788 @[ -z "$(findstring lowboot_,$@)" ] || \
1789 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1790 $(XECHO) "... with lowboot configuration" ; \
1792 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1794 MPC8266ADS_config: unconfig
1795 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1797 muas3001_dev_config \
1798 muas3001_config : unconfig
1799 @mkdir -p $(obj)include
1800 @mkdir -p $(obj)board/muas3001
1801 @if [ "$(findstring dev,$@)" ] ; then \
1802 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1804 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1806 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1808 PM825_ROMBOOT_config \
1809 PM825_BIGFLASH_config \
1810 PM825_ROMBOOT_BIGFLASH_config \
1812 PM826_ROMBOOT_config \
1813 PM826_BIGFLASH_config \
1814 PM826_ROMBOOT_BIGFLASH_config: unconfig
1815 @mkdir -p $(obj)include
1816 @mkdir -p $(obj)board/pm826
1817 @if [ "$(findstring PM825_,$@)" ] ; then \
1818 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1820 >$(obj)include/config.h ; \
1822 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1823 $(XECHO) "... booting from 8-bit flash" ; \
1824 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1825 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1826 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1827 $(XECHO) "... with 32 MB Flash" ; \
1828 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1831 $(XECHO) "... booting from 64-bit flash" ; \
1832 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1833 $(XECHO) "... with 32 MB Flash" ; \
1834 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1835 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1837 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1840 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1844 PM828_ROMBOOT_config \
1845 PM828_ROMBOOT_PCI_config: unconfig
1846 @mkdir -p $(obj)include
1847 @mkdir -p $(obj)board/pm826
1848 @if [ "$(findstring _PCI_,$@)" ] ; then \
1849 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1850 $(XECHO) "... with PCI enabled" ; \
1852 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1853 $(XECHO) "... booting from 8-bit flash" ; \
1854 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1855 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1857 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1859 ppmc8260_config: unconfig
1860 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1862 Rattler8248_config \
1863 Rattler_config: unconfig
1864 @mkdir -p $(obj)include
1865 $(if $(findstring 8248,$@), \
1866 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1867 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1869 RPXsuper_config: unconfig
1870 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1872 rsdproto_config: unconfig
1873 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1875 sacsng_config: unconfig
1876 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1878 sbc8260_config: unconfig
1879 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1881 SCM_config: unconfig
1882 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1894 TQM8265_AA_config: unconfig
1895 @mkdir -p $(obj)include
1897 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1898 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1899 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1900 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1901 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1902 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1903 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1904 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1905 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1906 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1907 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1909 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1910 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1912 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1913 echo "... with $${CFREQ}MHz system clock" ; \
1914 if [ "$${CACHE}" = "yes" ] ; then \
1915 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1916 $(XECHO) "... with L2 Cache support" ; \
1918 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1919 $(XECHO) "... without L2 Cache support" ; \
1921 if [ "$${BMODE}" = "60x" ] ; then \
1922 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1923 $(XECHO) "... with 60x Bus Mode" ; \
1925 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1926 $(XECHO) "... without 60x Bus Mode" ; \
1928 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1930 TQM8272_config: unconfig
1931 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1933 VoVPN-GW_66MHz_config \
1934 VoVPN-GW_100MHz_config: unconfig
1935 @mkdir -p $(obj)include
1936 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1937 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1939 ZPC1900_config: unconfig
1940 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1942 #########################################################################
1944 #########################################################################
1947 M52277EVB_spansion_config \
1948 M52277EVB_stmicro_config : unconfig
1950 M52277EVB_config) FLASH=SPANSION;; \
1951 M52277EVB_spansion_config) FLASH=SPANSION;; \
1952 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1954 if [ "$${FLASH}" = "SPANSION" ] ; then \
1955 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1956 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1957 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1958 $(XECHO) "... with SPANSION boot..." ; \
1960 if [ "$${FLASH}" = "STMICRO" ] ; then \
1961 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1962 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1963 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1964 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1965 $(XECHO) "... with ST Micro boot..." ; \
1967 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1970 M5235EVB_Flash16_config \
1971 M5235EVB_Flash32_config: unconfig
1973 M5235EVB_config) FLASH=16;; \
1974 M5235EVB_Flash16_config) FLASH=16;; \
1975 M5235EVB_Flash32_config) FLASH=32;; \
1977 if [ "$${FLASH}" != "16" ] ; then \
1978 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1979 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1980 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1982 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1983 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1985 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1987 M5249EVB_config : unconfig
1988 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1990 M5253DEMO_config : unconfig
1991 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1993 M5253EVBE_config : unconfig
1994 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1996 cobra5272_config : unconfig
1997 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1999 EB+MCF-EV123_config : unconfig
2000 @mkdir -p $(obj)include
2001 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2002 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2003 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2005 EB+MCF-EV123_internal_config : unconfig
2006 @mkdir -p $(obj)include
2007 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2008 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2009 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2011 idmr_config : unconfig
2012 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2014 M5271EVB_config : unconfig
2015 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2017 M5272C3_config : unconfig
2018 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2020 M5275EVB_config : unconfig
2021 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2023 M5282EVB_config : unconfig
2024 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2026 M53017EVB_config : unconfig
2027 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2030 M5329BFEE_config : unconfig
2032 M5329AFEE_config) NAND=0;; \
2033 M5329BFEE_config) NAND=16;; \
2035 if [ "$${NAND}" != "0" ] ; then \
2036 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2038 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2040 M5373EVB_config : unconfig
2042 M5373EVB_config) NAND=16;; \
2044 if [ "$${NAND}" != "0" ] ; then \
2045 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2047 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2050 M54451EVB_spansion_config \
2051 M54451EVB_stmicro_config : unconfig
2053 M54451EVB_config) FLASH=SPANSION;; \
2054 M54451EVB_spansion_config) FLASH=SPANSION;; \
2055 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2057 if [ "$${FLASH}" = "SPANSION" ] ; then \
2058 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2059 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2060 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2061 $(XECHO) "... with SPANSION boot..." ; \
2063 if [ "$${FLASH}" = "STMICRO" ] ; then \
2064 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2065 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2066 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2067 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2068 $(XECHO) "... with ST Micro boot..." ; \
2070 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2071 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2074 M54455EVB_atmel_config \
2075 M54455EVB_intel_config \
2076 M54455EVB_a33_config \
2077 M54455EVB_a66_config \
2078 M54455EVB_i33_config \
2079 M54455EVB_i66_config \
2080 M54455EVB_stm33_config : unconfig
2082 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2083 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2084 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2085 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2086 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2087 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2088 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2089 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2091 if [ "$${FLASH}" = "INTEL" ] ; then \
2092 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2093 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2094 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2095 $(XECHO) "... with INTEL boot..." ; \
2097 if [ "$${FLASH}" = "ATMEL" ] ; then \
2098 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2099 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2100 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2101 $(XECHO) "... with ATMEL boot..." ; \
2103 if [ "$${FLASH}" = "STMICRO" ] ; then \
2104 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2105 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2106 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2107 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2108 $(XECHO) "... with ST Micro boot..." ; \
2110 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2111 $(XECHO) "... with $${FREQ}Hz input clock"
2112 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2120 M5475GFE_config : unconfig
2122 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2123 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2124 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2125 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2126 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2127 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2128 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2130 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2131 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2132 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2133 if [ "$${RAM1}" != "0" ] ; then \
2134 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2136 if [ "$${CODE}" != "0" ] ; then \
2137 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2139 if [ "$${VID}" == "1" ] ; then \
2140 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2142 if [ "$${USB}" == "1" ] ; then \
2143 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2145 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2154 M5485HFE_config : unconfig
2156 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2157 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2158 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2159 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2160 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2161 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2162 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2163 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2165 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2166 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2167 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2168 if [ "$${RAM1}" != "0" ] ; then \
2169 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2171 if [ "$${CODE}" != "0" ] ; then \
2172 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2174 if [ "$${VID}" == "1" ] ; then \
2175 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2177 if [ "$${USB}" == "1" ] ; then \
2178 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2180 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2182 TASREG_config : unconfig
2183 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2185 #########################################################################
2187 #########################################################################
2189 kmeter1_config: unconfig
2190 @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2192 MPC8313ERDB_33_config \
2193 MPC8313ERDB_66_config \
2194 MPC8313ERDB_NAND_33_config \
2195 MPC8313ERDB_NAND_66_config: unconfig
2196 @mkdir -p $(obj)include
2197 @mkdir -p $(obj)board/freescale/mpc8313erdb
2198 @if [ "$(findstring _33_,$@)" ] ; then \
2199 $(XECHO) -n "...33M ..." ; \
2200 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2202 if [ "$(findstring _66_,$@)" ] ; then \
2203 $(XECHO) -n "...66M..." ; \
2204 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2206 if [ "$(findstring _NAND_,$@)" ] ; then \
2207 $(XECHO) -n "...NAND..." ; \
2208 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2209 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2211 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2212 @if [ "$(findstring _NAND_,$@)" ] ; then \
2213 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2216 MPC8315ERDB_config: unconfig
2217 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2219 MPC8323ERDB_config: unconfig
2220 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2222 MPC832XEMDS_config \
2223 MPC832XEMDS_HOST_33_config \
2224 MPC832XEMDS_HOST_66_config \
2225 MPC832XEMDS_SLAVE_config \
2226 MPC832XEMDS_ATM_config: unconfig
2227 @mkdir -p $(obj)include
2228 @if [ "$(findstring _HOST_,$@)" ] ; then \
2229 $(XECHO) -n "... PCI HOST " ; \
2230 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2232 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2233 $(XECHO) "...PCI SLAVE 66M" ; \
2234 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2235 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2237 if [ "$(findstring _33_,$@)" ] ; then \
2238 $(XECHO) -n "...33M ..." ; \
2239 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2240 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2242 if [ "$(findstring _66_,$@)" ] ; then \
2243 $(XECHO) -n "...66M..." ; \
2244 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2245 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2247 if [ "$(findstring _ATM_,$@)" ] ; then \
2248 $(XECHO) -n "...ATM..." ; \
2249 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2250 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2252 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2254 MPC8349EMDS_config: unconfig
2255 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2258 MPC8349ITX_LOWBOOT_config \
2259 MPC8349ITXGP_config: unconfig
2260 @mkdir -p $(obj)include
2261 @mkdir -p $(obj)board/freescale/mpc8349itx
2262 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2263 @if [ "$(findstring GP,$@)" ] ; then \
2264 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2266 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2267 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2269 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2271 MPC8360EMDS_config \
2272 MPC8360EMDS_HOST_33_config \
2273 MPC8360EMDS_HOST_66_config \
2274 MPC8360EMDS_SLAVE_config \
2275 MPC8360EMDS_ATM_config: unconfig
2276 @mkdir -p $(obj)include
2277 @if [ "$(findstring _HOST_,$@)" ] ; then \
2278 $(XECHO) -n "... PCI HOST " ; \
2279 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2281 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2282 $(XECHO) "...PCI SLAVE 66M" ; \
2283 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2284 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2286 if [ "$(findstring _33_,$@)" ] ; then \
2287 $(XECHO) -n "...33M ..." ; \
2288 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2289 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2291 if [ "$(findstring _66_,$@)" ] ; then \
2292 $(XECHO) -n "...66M..." ; \
2293 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2294 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2296 if [ "$(findstring _ATM_,$@)" ] ; then \
2297 $(XECHO) -n "...ATM..." ; \
2298 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2299 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2301 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2303 MPC8360ERDK_33_config \
2304 MPC8360ERDK_66_config \
2305 MPC8360ERDK_config: unconfig
2306 @mkdir -p $(obj)include
2307 @if [ "$(findstring _33_,$@)" ] ; then \
2308 $(XECHO) -n "... CLKIN 33MHz " ; \
2309 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2311 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2313 MPC837XEMDS_config \
2314 MPC837XEMDS_HOST_config: unconfig
2315 @mkdir -p $(obj)include
2316 @if [ "$(findstring _HOST_,$@)" ] ; then \
2317 $(XECHO) -n "... PCI HOST " ; \
2318 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2320 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2322 MPC837XERDB_config: unconfig
2323 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2325 MVBLM7_config: unconfig
2326 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2328 sbc8349_config: unconfig
2329 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2331 TQM834x_config: unconfig
2332 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2335 #########################################################################
2337 #########################################################################
2339 ATUM8548_config: unconfig
2340 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2342 MPC8536DS_config: unconfig
2343 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2345 MPC8540ADS_config: unconfig
2346 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2348 MPC8540EVAL_config \
2349 MPC8540EVAL_33_config \
2350 MPC8540EVAL_66_config \
2351 MPC8540EVAL_33_slave_config \
2352 MPC8540EVAL_66_slave_config: unconfig
2353 @mkdir -p $(obj)include
2354 @if [ "$(findstring _33_,$@)" ] ; then \
2355 $(XECHO) "... 33 MHz PCI" ; \
2357 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2358 $(XECHO) "... 66 MHz PCI" ; \
2360 if [ "$(findstring _slave_,$@)" ] ; then \
2361 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2362 $(XECHO) " slave" ; \
2364 $(XECHO) " host" ; \
2366 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2368 MPC8560ADS_config: unconfig
2369 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2371 MPC8541CDS_legacy_config \
2372 MPC8541CDS_config: unconfig
2373 @mkdir -p $(obj)include
2374 @if [ "$(findstring _legacy_,$@)" ] ; then \
2375 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2376 $(XECHO) "... legacy" ; \
2378 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2380 MPC8544DS_config: unconfig
2381 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2383 MPC8548CDS_legacy_config \
2384 MPC8548CDS_config: unconfig
2385 @mkdir -p $(obj)include
2386 @if [ "$(findstring _legacy_,$@)" ] ; then \
2387 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2388 $(XECHO) "... legacy" ; \
2390 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2392 MPC8555CDS_legacy_config \
2393 MPC8555CDS_config: unconfig
2394 @mkdir -p $(obj)include
2395 @if [ "$(findstring _legacy_,$@)" ] ; then \
2396 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2397 $(XECHO) "... legacy" ; \
2399 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2401 MPC8568MDS_config: unconfig
2402 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2404 MPC8572DS_config: unconfig
2405 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2407 PM854_config: unconfig
2408 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2410 PM856_config: unconfig
2411 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2415 sbc8540_66_config: unconfig
2416 @mkdir -p $(obj)include
2417 @if [ "$(findstring _66_,$@)" ] ; then \
2418 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2419 $(XECHO) "... 66 MHz PCI" ; \
2421 $(XECHO) "... 33 MHz PCI" ; \
2423 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2425 sbc8548_config: unconfig
2426 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2430 sbc8560_66_config: unconfig
2431 @mkdir -p $(obj)include
2432 @if [ "$(findstring _66_,$@)" ] ; then \
2433 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2434 $(XECHO) "... 66 MHz PCI" ; \
2436 $(XECHO) "... 33 MHz PCI" ; \
2438 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2440 socrates_config: unconfig
2441 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2443 stxgp3_config: unconfig
2444 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2447 stxssa_4M_config: unconfig
2448 @mkdir -p $(obj)include
2449 @if [ "$(findstring _4M_,$@)" ] ; then \
2450 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2451 $(XECHO) "... with 4 MiB flash memory" ; \
2453 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2459 TQM8560_config: unconfig
2460 @mkdir -p $(obj)include
2461 @CTYPE=$(subst TQM,,$(@:_config=)); \
2462 $(XECHO) "... TQM"$${CTYPE}; \
2463 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2464 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2465 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2466 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2467 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2469 XPEDITE5200_config: unconfig
2470 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
2472 XPEDITE5370_config: unconfig
2473 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2475 #########################################################################
2477 #########################################################################
2479 MPC8610HPCD_config: unconfig
2480 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2482 MPC8641HPCN_36BIT_config \
2483 MPC8641HPCN_config: unconfig
2484 @mkdir -p $(obj)include
2485 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2486 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2487 $(XECHO) "... enabling 36-bit physical addressing." ; \
2489 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2491 sbc8641d_config: unconfig
2492 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2494 #########################################################################
2496 #########################################################################
2498 AmigaOneG3SE_config: unconfig
2499 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2501 BAB7xx_config: unconfig
2502 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2504 CPCI750_config: unconfig
2505 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2507 DB64360_config: unconfig
2508 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2510 DB64460_config: unconfig
2511 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2513 ELPPC_config: unconfig
2514 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2517 EVB64260_750CX_config: unconfig
2518 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2520 mpc7448hpc2_config: unconfig
2521 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2523 P3G4_config: unconfig
2524 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2527 p3m7448_config: unconfig
2528 @mkdir -p $(obj)include
2529 @if [ "$(findstring 750_,$@)" ] ; then \
2530 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2532 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2534 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2537 PCIPPC6_config: unconfig
2538 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2540 ppmc7xx_config: unconfig
2541 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2543 ZUMA_config: unconfig
2544 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2546 #========================================================================
2548 #========================================================================
2549 #########################################################################
2550 ## StrongARM Systems
2551 #########################################################################
2553 assabet_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2556 dnp1110_config : unconfig
2557 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2559 gcplus_config : unconfig
2560 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2562 lart_config : unconfig
2563 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2565 shannon_config : unconfig
2566 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2568 #########################################################################
2570 #########################################################################
2572 #########################################################################
2573 ## Atmel AT91RM9200 Systems
2574 #########################################################################
2576 at91rm9200dk_config : unconfig
2577 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2579 cmc_pu2_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2582 csb637_config : unconfig
2583 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2585 kb9202_config : unconfig
2586 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2588 m501sk_config : unconfig
2589 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2591 mp2usb_config : unconfig
2592 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2594 #########################################################################
2595 ## Atmel ARM926EJ-S Systems
2596 #########################################################################
2598 afeb9260_config: unconfig
2599 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
2601 at91cap9adk_config : unconfig
2602 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2604 at91sam9260ek_nandflash_config \
2605 at91sam9260ek_dataflash_cs0_config \
2606 at91sam9260ek_dataflash_cs1_config \
2607 at91sam9260ek_config : unconfig
2608 @mkdir -p $(obj)include
2609 @if [ "$(findstring _nandflash,$@)" ] ; then \
2610 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2611 $(XECHO) "... with environment variable in NAND FLASH" ; \
2612 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2613 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2614 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2616 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2617 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2619 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2621 at91sam9xeek_nandflash_config \
2622 at91sam9xeek_dataflash_cs0_config \
2623 at91sam9xeek_dataflash_cs1_config \
2624 at91sam9xeek_config : unconfig
2625 @mkdir -p $(obj)include
2626 @if [ "$(findstring _nandflash,$@)" ] ; then \
2627 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2628 $(XECHO) "... with environment variable in NAND FLASH" ; \
2629 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2630 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2631 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2633 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2634 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2636 @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91sam9
2638 at91sam9261ek_nandflash_config \
2639 at91sam9261ek_dataflash_cs0_config \
2640 at91sam9261ek_dataflash_cs3_config \
2641 at91sam9261ek_config : unconfig
2642 @mkdir -p $(obj)include
2643 @if [ "$(findstring _nandflash,$@)" ] ; then \
2644 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2645 $(XECHO) "... with environment variable in NAND FLASH" ; \
2646 elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
2647 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
2648 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
2650 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2651 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2653 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
2655 at91sam9263ek_nandflash_config \
2656 at91sam9263ek_dataflash_config \
2657 at91sam9263ek_dataflash_cs0_config \
2658 at91sam9263ek_config : unconfig
2659 @mkdir -p $(obj)include
2660 @if [ "$(findstring _nandflash,$@)" ] ; then \
2661 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2662 $(XECHO) "... with environment variable in NAND FLASH" ; \
2664 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2665 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2667 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
2669 at91sam9rlek_nandflash_config \
2670 at91sam9rlek_dataflash_config \
2671 at91sam9rlek_dataflash_cs0_config \
2672 at91sam9rlek_config : unconfig
2673 @mkdir -p $(obj)include
2674 @if [ "$(findstring _nandflash,$@)" ] ; then \
2675 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2676 $(XECHO) "... with environment variable in NAND FLASH" ; \
2678 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2679 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2681 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
2683 ########################################################################
2684 ## ARM Integrator boards - see doc/README-integrator for more info.
2685 integratorap_config \
2694 ap946es_config: unconfig
2695 @board/integratorap/split_by_variant.sh $@
2697 integratorcp_config \
2706 cp1026_config: unconfig
2707 @board/integratorcp/split_by_variant.sh $@
2709 davinci_dvevm_config : unconfig
2710 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2712 davinci_schmoogie_config : unconfig
2713 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2715 davinci_sffsdr_config : unconfig
2716 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2718 davinci_sonata_config : unconfig
2719 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2722 lpd7a404_config: unconfig
2723 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2725 mx1ads_config : unconfig
2726 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2728 mx1fs2_config : unconfig
2729 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2731 netstar_config: unconfig
2732 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2734 omap1510inn_config : unconfig
2735 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2737 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2739 omap1610inn_config \
2740 omap1610inn_cs0boot_config \
2741 omap1610inn_cs3boot_config \
2742 omap1610inn_cs_autoboot_config \
2744 omap1610h2_cs0boot_config \
2745 omap1610h2_cs3boot_config \
2746 omap1610h2_cs_autoboot_config: unconfig
2747 @mkdir -p $(obj)include
2748 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2749 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2750 $(XECHO) "... configured for CS0 boot"; \
2751 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2752 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2753 $(XECHO) "... configured for CS_AUTO boot"; \
2755 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2756 $(XECHO) "... configured for CS3 boot"; \
2758 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2760 omap5912osk_config : unconfig
2761 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2763 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2766 omap730p2_cs0boot_config \
2767 omap730p2_cs3boot_config : unconfig
2768 @mkdir -p $(obj)include
2769 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2770 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2771 $(XECHO) "... configured for CS0 boot"; \
2773 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2774 $(XECHO) "... configured for CS3 boot"; \
2776 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2778 sbc2410x_config: unconfig
2779 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2781 scb9328_config : unconfig
2782 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2784 smdk2400_config : unconfig
2785 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2787 smdk2410_config : unconfig
2788 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2790 SX1_config : unconfig
2791 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2793 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2794 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2797 trab_bigram_config \
2798 trab_bigflash_config \
2799 trab_old_config: unconfig
2800 @mkdir -p $(obj)include
2801 @mkdir -p $(obj)board/trab
2802 @[ -z "$(findstring _bigram,$@)" ] || \
2803 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2804 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2805 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2807 @[ -z "$(findstring _bigflash,$@)" ] || \
2808 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2809 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2810 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2811 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2813 @[ -z "$(findstring _old,$@)" ] || \
2814 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2815 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2816 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2817 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2819 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2821 VCMA9_config : unconfig
2822 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2824 #########################################################################
2825 # ARM supplied Versatile development boards
2826 #########################################################################
2828 cm4008_config : unconfig
2829 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2831 cm41xx_config : unconfig
2832 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2835 versatileab_config \
2836 versatilepb_config : unconfig
2837 @board/versatile/split_by_variant.sh $@
2839 voiceblue_config: unconfig
2840 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2842 #########################################################################
2844 #########################################################################
2846 B2_config : unconfig
2847 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2849 #########################################################################
2851 #########################################################################
2853 armadillo_config: unconfig
2854 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2856 ep7312_config : unconfig
2857 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2859 impa7_config : unconfig
2860 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2862 modnet50_config : unconfig
2863 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2865 evb4510_config : unconfig
2866 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2868 lpc2292sodimm_config: unconfig
2869 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2871 SMN42_config : unconfig
2872 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2874 #########################################################################
2876 #########################################################################
2878 actux1_config : unconfig
2879 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2881 actux2_config : unconfig
2882 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2884 actux3_config : unconfig
2885 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2887 actux4_config : unconfig
2888 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2890 cerf250_config : unconfig
2891 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2893 cradle_config : unconfig
2894 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2896 csb226_config : unconfig
2897 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2899 delta_config : unconfig
2900 @$(MKCONFIG) $(@:_config=) arm pxa delta
2902 innokom_config : unconfig
2903 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2905 ixdp425_config : unconfig
2906 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2908 ixdpg425_config : unconfig
2909 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2911 lubbock_config : unconfig
2912 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2914 pleb2_config : unconfig
2915 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2917 logodl_config : unconfig
2918 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2921 scpu_config: unconfig
2922 @mkdir -p $(obj)include
2923 @if [ "$(findstring scpu_,$@)" ] ; then \
2924 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2925 $(XECHO) "... on SCPU board variant" ; \
2927 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2929 pxa255_idp_config: unconfig
2930 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2932 trizepsiv_config : unconfig
2933 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2935 wepep250_config : unconfig
2936 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2938 xaeniax_config : unconfig
2939 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2941 xm250_config : unconfig
2942 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2944 xsengine_config : unconfig
2945 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2948 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2950 #########################################################################
2952 #########################################################################
2954 apollon_config : unconfig
2955 @mkdir -p $(obj)include
2956 @mkdir -p $(obj)onenand_ipl/board/apollon
2957 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2958 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2959 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2961 imx31_litekit_config : unconfig
2962 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2964 imx31_phycore_config : unconfig
2965 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2967 mx31ads_config : unconfig
2968 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2970 omap2420h4_config : unconfig
2971 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2973 #########################################################################
2975 #########################################################################
2976 smdk6400_noUSB_config \
2977 smdk6400_config : unconfig
2978 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2979 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2980 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2981 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2982 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2983 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2985 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2986 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2988 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2990 #========================================================================
2992 #========================================================================
2993 #########################################################################
2995 #########################################################################
2996 eNET_config : unconfig
2997 @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
2999 sc520_cdp_config : unconfig
3000 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3002 sc520_spunk_config : unconfig
3003 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3005 sc520_spunk_rel_config : unconfig
3006 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3008 #========================================================================
3010 #========================================================================
3011 #########################################################################
3013 #########################################################################
3015 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3017 incaip_100MHz_config \
3018 incaip_133MHz_config \
3019 incaip_150MHz_config \
3020 incaip_config: unconfig
3021 @mkdir -p $(obj)include
3022 @[ -z "$(findstring _100MHz,$@)" ] || \
3023 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3024 $(XECHO) "... with 100MHz system clock" ; \
3026 @[ -z "$(findstring _133MHz,$@)" ] || \
3027 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3028 $(XECHO) "... with 133MHz system clock" ; \
3030 @[ -z "$(findstring _150MHz,$@)" ] || \
3031 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3032 $(XECHO) "... with 150MHz system clock" ; \
3034 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3036 tb0229_config: unconfig
3037 @$(MKCONFIG) $(@:_config=) mips mips tb0229
3039 #########################################################################
3041 #########################################################################
3043 dbau1000_config : unconfig
3044 @mkdir -p $(obj)include
3045 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3046 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3048 dbau1100_config : unconfig
3049 @mkdir -p $(obj)include
3050 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3051 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3053 dbau1500_config : unconfig
3054 @mkdir -p $(obj)include
3055 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3056 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3058 dbau1550_config : unconfig
3059 @mkdir -p $(obj)include
3060 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3061 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3063 dbau1550_el_config : unconfig
3064 @mkdir -p $(obj)include
3065 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3066 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3068 gth2_config : unconfig
3069 @mkdir -p $(obj)include
3070 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3071 @$(MKCONFIG) -a gth2 mips mips gth2
3073 pb1000_config : unconfig
3074 @mkdir -p $(obj)include
3075 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3076 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3078 qemu_mips_config : unconfig
3079 @mkdir -p $(obj)include
3080 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3081 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3083 #########################################################################
3085 #########################################################################
3087 purple_config : unconfig
3088 @$(MKCONFIG) $(@:_config=) mips mips purple
3090 #========================================================================
3092 #========================================================================
3093 #########################################################################
3095 #########################################################################
3097 ADNPESC1_DNPEVA2_base_32_config \
3098 ADNPESC1_base_32_config \
3099 ADNPESC1_config: unconfig
3100 @mkdir -p $(obj)include
3101 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
3102 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3103 $(XECHO) "... DNP/EVA2 configuration" ; \
3105 @[ -z "$(findstring _base_32,$@)" ] || \
3106 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3107 $(XECHO) "... NIOS 'base_32' configuration" ; \
3109 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3110 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3111 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3113 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3115 DK1C20_safe_32_config \
3116 DK1C20_standard_32_config \
3117 DK1C20_config: unconfig
3118 @mkdir -p $(obj)include
3119 @[ -z "$(findstring _safe_32,$@)" ] || \
3120 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3121 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3123 @[ -z "$(findstring _standard_32,$@)" ] || \
3124 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3125 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3127 @[ -z "$(findstring DK1C20_config,$@)" ] || \
3128 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3129 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3131 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3133 DK1S10_safe_32_config \
3134 DK1S10_standard_32_config \
3135 DK1S10_mtx_ldk_20_config \
3136 DK1S10_config: unconfig
3137 @mkdir -p $(obj)include
3138 @[ -z "$(findstring _safe_32,$@)" ] || \
3139 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3140 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3142 @[ -z "$(findstring _standard_32,$@)" ] || \
3143 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3144 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3146 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3147 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3148 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3150 @[ -z "$(findstring DK1S10_config,$@)" ] || \
3151 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3152 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3154 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
3156 #########################################################################
3158 #########################################################################
3160 EP1C20_config : unconfig
3161 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3163 EP1S10_config : unconfig
3164 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3166 EP1S40_config : unconfig
3167 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3169 PK1C20_config : unconfig
3170 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3172 PCI5441_config : unconfig
3173 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3175 #========================================================================
3177 #========================================================================
3179 microblaze-generic_config: unconfig
3180 @mkdir -p $(obj)include
3181 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3183 suzaku_config: unconfig
3184 @mkdir -p $(obj)include
3185 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3186 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3188 #========================================================================
3190 #========================================================================
3192 # Analog Devices boards
3193 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3195 $(BFIN_BOARDS:%=%_config) : unconfig
3196 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3202 #========================================================================
3204 #========================================================================
3206 atngw100_config : unconfig
3207 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3209 atstk1002_config : unconfig
3210 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3212 atstk1003_config : unconfig
3213 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3215 atstk1004_config : unconfig
3216 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3218 atstk1006_config : unconfig
3219 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3221 favr-32-ezkit_config : unconfig
3222 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3224 hammerhead_config : unconfig
3225 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3227 mimc200_config : unconfig
3228 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3230 #========================================================================
3232 #========================================================================
3234 #########################################################################
3235 ## sh2 (Renesas SuperH)
3236 #########################################################################
3237 rsk7203_config: unconfig
3238 @mkdir -p $(obj)include
3239 @echo "#define CONFIG_RSK7203 1" > $(obj)/include/config.h
3240 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3242 #########################################################################
3243 ## sh3 (Renesas SuperH)
3244 #########################################################################
3246 mpr2_config: unconfig
3247 @mkdir -p $(obj)include
3248 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3249 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3251 ms7720se_config: unconfig
3252 @mkdir -p $(obj)include
3253 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3254 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3256 #########################################################################
3257 ## sh4 (Renesas SuperH)
3258 #########################################################################
3260 MigoR_config : unconfig
3261 @mkdir -p $(obj)include
3262 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3263 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3265 ms7750se_config: unconfig
3266 @mkdir -p $(obj)include
3267 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3268 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3270 ms7722se_config : unconfig
3271 @mkdir -p $(obj)include
3272 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3273 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3275 r2dplus_config : unconfig
3276 @mkdir -p $(obj)include
3277 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3278 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3280 r7780mp_config: unconfig
3281 @mkdir -p $(obj)include
3282 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3283 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3285 sh7763rdp_config : unconfig
3286 @mkdir -p $(obj)include
3287 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3288 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3290 sh7785lcr_config : unconfig
3292 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3293 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr renesas
3295 ap325rxa_config : unconfig
3296 @mkdir -p $(obj)include
3297 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3298 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3300 #========================================================================
3302 #========================================================================
3304 #########################################################################
3306 #########################################################################
3308 # Gaisler GR-XC3S-1500 board
3309 gr_xc3s_1500_config : unconfig
3310 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3312 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3313 gr_cpci_ax2000_config : unconfig
3314 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3316 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3317 # Development board Stratix II edition, FPGA Device EP2S60.
3318 gr_ep2s60_config: unconfig
3319 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3321 # Gaisler LEON3 GRSIM simulator
3322 grsim_config : unconfig
3323 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3325 #########################################################################
3327 #########################################################################
3329 # Gaisler LEON2 GRSIM simulator
3330 grsim_leon2_config : unconfig
3331 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3333 #########################################################################
3334 #########################################################################
3335 #########################################################################
3338 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3339 $(obj)examples/hello_world $(obj)examples/interrupt \
3340 $(obj)examples/mem_to_mem_idma2intr \
3341 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3342 $(obj)examples/test_burst $(obj)examples/timer
3343 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3344 $(obj)tools/env/{fw_printenv,fw_setenv} \
3345 $(obj)tools/envcrc \
3346 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3347 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3348 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3349 $(obj)tools/ncb $(obj)tools/ubsha1
3350 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3351 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3352 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3353 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3354 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3355 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3356 @rm -f $(obj)include/bmp_logo.h
3357 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3358 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3359 @rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3360 @find $(OBJTREE) -type f \
3361 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3362 -o -name '*.o' -o -name '*.a' \) -print \
3366 @find $(OBJTREE) -type f \( -name .depend \
3367 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3370 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3371 $(obj)cscope.* $(obj)*.*~
3372 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3373 @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3374 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3375 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3376 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3377 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3378 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3379 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3380 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3382 ifeq ($(OBJTREE),$(SRCTREE))
3384 distclean: clobber unconfig
3387 distclean: clobber unconfig
3392 F=`basename $(TOPDIR)` ; cd .. ; \
3393 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3395 #########################################################################