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 VERSION_FILE = $(obj)include/version_autogenerated.h
35 HOSTARCH := $(shell uname -m | \
44 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
45 sed -e 's/\(cygwin\).*/cygwin/')
47 export HOSTARCH HOSTOS
49 # Deal with colliding definitions from tcsh etc.
52 #########################################################################
53 # Allow for silent builds
54 ifeq (,$(findstring s,$(MAKEFLAGS)))
60 #########################################################################
62 # U-boot build supports producing a object files to the separate external
63 # directory. Two use cases are supported:
65 # 1) Add O= to the make command line
66 # 'make O=/tmp/build all'
68 # 2) Set environement variable BUILD_DIR to point to the desired location
69 # 'export BUILD_DIR=/tmp/build'
72 # The second approach can also be used with a MAKEALL script
73 # 'export BUILD_DIR=/tmp/build'
76 # Command line 'O=' setting overrides BUILD_DIR environent variable.
78 # When none of the above methods is used the local build is performed and
79 # the object files are placed in the source directory.
83 ifeq ("$(origin O)", "command line")
89 saved-output := $(BUILD_DIR)
91 # Attempt to create a output directory.
92 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
94 # Verify if it was successful.
95 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
96 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
97 endif # ifneq ($(BUILD_DIR),)
99 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
103 export TOPDIR SRCTREE OBJTREE
105 MKCONFIG := $(SRCTREE)/mkconfig
108 ifneq ($(OBJTREE),$(SRCTREE))
113 # $(obj) and (src) are defined in config.mk but here in main Makefile
114 # we also need them before config.mk is included which is the case for
115 # some targets like unconfig, clean, clobber, distclean, etc.
116 ifneq ($(OBJTREE),$(SRCTREE))
125 # Make sure CDPATH settings don't interfere
128 #########################################################################
130 ifeq ($(ARCH),powerpc)
134 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
136 # load ARCH, BOARD, and CPU configuration
137 include $(obj)include/config.mk
138 export ARCH CPU BOARD VENDOR SOC
141 ifeq ($(HOSTARCH),$(ARCH))
145 CROSS_COMPILE = ppc_8xx-
148 CROSS_COMPILE = arm-linux-
151 CROSS_COMPILE = i386-linux-
154 CROSS_COMPILE = mips_4KC-
157 CROSS_COMPILE = nios-elf-
160 CROSS_COMPILE = nios2-elf-
163 CROSS_COMPILE = m68k-elf-
165 ifeq ($(ARCH),microblaze)
168 ifeq ($(ARCH),blackfin)
169 CROSS_COMPILE = bfin-uclinux-
172 CROSS_COMPILE = avr32-linux-
175 CROSS_COMPILE = sh4-linux-
178 CROSS_COMPILE = sparc-elf-
180 endif # HOSTARCH,ARCH
181 endif # CROSS_COMPILE
185 # load other configuration
186 include $(TOPDIR)/config.mk
188 #########################################################################
189 # U-Boot objects....order is important (i.e. start must be first)
191 OBJS = cpu/$(CPU)/start.o
193 OBJS += cpu/$(CPU)/start16.o
194 OBJS += cpu/$(CPU)/reset.o
197 OBJS += cpu/$(CPU)/resetvec.o
199 ifeq ($(CPU),mpc85xx)
200 OBJS += cpu/$(CPU)/resetvec.o
203 OBJS := $(addprefix $(obj),$(OBJS))
205 LIBS = lib_generic/libgeneric.a
206 LIBS += lib_generic/lzma/liblzma.a
207 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
208 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
209 LIBS += cpu/$(CPU)/lib$(CPU).a
211 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
214 LIBS += cpu/ixp/npe/libnpe.a
216 LIBS += lib_$(ARCH)/lib$(ARCH).a
217 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
218 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
220 LIBS += disk/libdisk.a
221 LIBS += drivers/bios_emulator/libatibiosemu.a
222 LIBS += drivers/block/libblock.a
223 LIBS += drivers/dma/libdma.a
224 LIBS += drivers/hwmon/libhwmon.a
225 LIBS += drivers/i2c/libi2c.a
226 LIBS += drivers/input/libinput.a
227 LIBS += drivers/misc/libmisc.a
228 LIBS += drivers/mmc/libmmc.a
229 LIBS += drivers/mtd/libmtd.a
230 LIBS += drivers/mtd/nand/libnand.a
231 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
232 LIBS += drivers/mtd/onenand/libonenand.a
233 LIBS += drivers/mtd/ubi/libubi.a
234 LIBS += drivers/mtd/spi/libspi_flash.a
235 LIBS += drivers/net/libnet.a
236 LIBS += drivers/net/phy/libphy.a
237 LIBS += drivers/net/sk98lin/libsk98lin.a
238 LIBS += drivers/pci/libpci.a
239 LIBS += drivers/pcmcia/libpcmcia.a
240 LIBS += drivers/spi/libspi.a
241 ifeq ($(CPU),mpc83xx)
242 LIBS += drivers/qe/qe.a
244 ifeq ($(CPU),mpc85xx)
245 LIBS += drivers/qe/qe.a
246 LIBS += cpu/mpc8xxx/ddr/libddr.a
247 TAG_SUBDIRS += cpu/mpc8xxx
249 ifeq ($(CPU),mpc86xx)
250 LIBS += cpu/mpc8xxx/ddr/libddr.a
251 TAG_SUBDIRS += cpu/mpc8xxx
253 LIBS += drivers/rtc/librtc.a
254 LIBS += drivers/serial/libserial.a
255 LIBS += drivers/usb/libusb.a
256 LIBS += drivers/video/libvideo.a
257 LIBS += common/libcommon.a
258 LIBS += libfdt/libfdt.a
260 LIBS += post/libpost.a
262 LIBS := $(addprefix $(obj),$(LIBS))
263 .PHONY : $(LIBS) $(VERSION_FILE)
265 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
266 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
269 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
271 # The "tools" are needed early, so put this first
272 # Don't include stuff already done in $(LIBS)
279 ifeq ($(CONFIG_NAND_U_BOOT),y)
281 U_BOOT_NAND = $(obj)u-boot-nand.bin
284 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
285 ONENAND_IPL = onenand_ipl
286 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
289 __OBJS := $(subst $(obj),,$(OBJS))
290 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
292 #########################################################################
293 #########################################################################
295 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
296 ifeq ($(ARCH),blackfin)
297 ALL += $(obj)u-boot.ldr
302 $(obj)u-boot.hex: $(obj)u-boot
303 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
305 $(obj)u-boot.srec: $(obj)u-boot
306 $(OBJCOPY) -O srec $< $@
308 $(obj)u-boot.bin: $(obj)u-boot
309 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
311 $(obj)u-boot.ldr: $(obj)u-boot
312 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
314 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
315 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
317 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
318 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
320 $(obj)u-boot.img: $(obj)u-boot.bin
321 ./tools/mkimage -A $(ARCH) -T firmware -C none \
322 -a $(TEXT_BASE) -e 0 \
323 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
324 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
327 $(obj)u-boot.sha1: $(obj)u-boot.bin
328 $(obj)tools/ubsha1 $(obj)u-boot.bin
330 $(obj)u-boot.dis: $(obj)u-boot
331 $(OBJDUMP) -d $< > $@
333 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
334 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
335 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
336 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
337 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
338 -Map u-boot.map -o u-boot
340 $(OBJS): depend $(obj)include/autoconf.mk
341 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
343 $(LIBS): depend $(obj)include/autoconf.mk
344 $(MAKE) -C $(dir $(subst $(obj),,$@))
346 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
347 $(MAKE) -C $(dir $(subst $(obj),,$@))
349 $(SUBDIRS): depend $(obj)include/autoconf.mk
352 $(LDSCRIPT): depend $(obj)include/autoconf.mk
353 $(MAKE) -C $(dir $@) $(notdir $@)
355 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
356 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
358 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
359 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
361 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
362 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
364 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
365 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
366 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
369 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
370 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
372 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
375 $(MAKE) -C tools/gdb all || exit 1
378 $(MAKE) -C tools/updater all || exit 1
381 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
383 depend dep: $(VERSION_FILE)
384 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
386 TAG_SUBDIRS += include
387 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
388 TAG_SUBDIRS += cpu/$(CPU)
389 TAG_SUBDIRS += lib_$(ARCH)
390 TAG_SUBDIRS += fs/cramfs
391 TAG_SUBDIRS += fs/fat
392 TAG_SUBDIRS += fs/fdos
393 TAG_SUBDIRS += fs/jffs2
394 TAG_SUBDIRS += fs/yaffs2
397 TAG_SUBDIRS += common
398 TAG_SUBDIRS += drivers/bios_emulator
399 TAG_SUBDIRS += drivers/block
400 TAG_SUBDIRS += drivers/hwmon
401 TAG_SUBDIRS += drivers/i2c
402 TAG_SUBDIRS += drivers/input
403 TAG_SUBDIRS += drivers/misc
404 TAG_SUBDIRS += drivers/mmc
405 TAG_SUBDIRS += drivers/mtd
406 TAG_SUBDIRS += drivers/mtd/nand
407 TAG_SUBDIRS += drivers/mtd/nand_legacy
408 TAG_SUBDIRS += drivers/mtd/onenand
409 TAG_SUBDIRS += drivers/mtd/spi
410 TAG_SUBDIRS += drivers/net
411 TAG_SUBDIRS += drivers/net/sk98lin
412 TAG_SUBDIRS += drivers/pci
413 TAG_SUBDIRS += drivers/pcmcia
414 TAG_SUBDIRS += drivers/qe
415 TAG_SUBDIRS += drivers/rtc
416 TAG_SUBDIRS += drivers/serial
417 TAG_SUBDIRS += drivers/spi
418 TAG_SUBDIRS += drivers/usb
419 TAG_SUBDIRS += drivers/video
422 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
423 -name '*.[ch]' -print`
426 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
427 -name '*.[ch]' -print`
429 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
433 $(obj)System.map: $(obj)u-boot
435 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
436 sort > $(obj)System.map
439 # Auto-generate the autoconf.mk file (which is included by all makefiles)
441 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
442 # the dep file is only include in this top level makefile to determine when
443 # to regenerate the autoconf.mk file.
444 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
445 @$(XECHO) Generating $@ ; \
447 : Generate the dependancies ; \
448 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
449 -MQ $(obj)include/autoconf.mk include/common.h > $@
451 $(obj)include/autoconf.mk: $(obj)include/config.h
452 @$(XECHO) Generating $@ ; \
454 : Extract the config macros ; \
455 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
456 sed -n -f tools/scripts/define2mk.sed > $@
458 sinclude $(obj)include/autoconf.mk.dep
460 #########################################################################
462 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
463 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
464 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
465 dep tags ctags etags cscope $(obj)System.map:
466 @echo "System not configured - see README" >&2
472 git log --no-merges U-Boot-1_1_5.. | \
473 unexpand -a | sed -e 's/\s\s*$$//' > $@
475 include/license.h: tools/bin2header COPYING
476 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
477 #########################################################################
480 @rm -f $(obj)include/config.h $(obj)include/config.mk \
481 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
482 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
484 #========================================================================
486 #========================================================================
488 #########################################################################
490 #########################################################################
492 canmb_config: unconfig
493 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
495 cmi_mpc5xx_config: unconfig
496 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
498 PATI_config: unconfig
499 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
501 #########################################################################
503 #########################################################################
506 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
508 BC3450_config: unconfig
509 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
511 cm5200_config: unconfig
512 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
514 cpci5200_config: unconfig
515 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
517 hmi1001_config: unconfig
518 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
521 Lite5200_LOWBOOT_config \
522 Lite5200_LOWBOOT08_config \
523 icecube_5200_config \
524 icecube_5200_LOWBOOT_config \
525 icecube_5200_LOWBOOT08_config \
526 icecube_5200_DDR_config \
527 icecube_5200_DDR_LOWBOOT_config \
528 icecube_5200_DDR_LOWBOOT08_config \
529 icecube_5100_config: unconfig
530 @mkdir -p $(obj)include
531 @mkdir -p $(obj)board/icecube
532 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
533 { if [ "$(findstring DDR,$@)" ] ; \
534 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
535 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
537 $(XECHO) "... with LOWBOOT configuration" ; \
539 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
540 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
541 echo "... with 8 MB flash only" ; \
542 $(XECHO) "... with LOWBOOT configuration" ; \
544 @[ -z "$(findstring DDR,$@)" ] || \
545 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
546 $(XECHO) "... DDR memory revision" ; \
548 @[ -z "$(findstring 5200,$@)" ] || \
549 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
550 $(XECHO) "... with MPC5200 processor" ; \
552 @[ -z "$(findstring 5100,$@)" ] || \
553 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
554 $(XECHO) "... with MGT5100 processor" ; \
556 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
558 jupiter_config: unconfig
559 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
561 inka4x0_config: unconfig
562 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
565 lite5200b_PM_config \
566 lite5200b_LOWBOOT_config: unconfig
567 @mkdir -p $(obj)include
568 @mkdir -p $(obj)board/icecube
569 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
570 @ $(XECHO) "... DDR memory revision"
571 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
572 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
573 @[ -z "$(findstring _PM_,$@)" ] || \
574 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
575 $(XECHO) "... with power management (low-power mode) support" ; \
577 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
578 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
579 $(XECHO) "... with LOWBOOT configuration" ; \
581 @ $(XECHO) "... with MPC5200B processor"
582 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
585 mcc200_SDRAM_config \
586 mcc200_highboot_config \
587 mcc200_COM12_config \
588 mcc200_COM12_SDRAM_config \
589 mcc200_COM12_highboot_config \
590 mcc200_COM12_highboot_SDRAM_config \
591 mcc200_highboot_SDRAM_config \
594 prs200_highboot_config \
595 prs200_highboot_DDR_config: unconfig
596 @mkdir -p $(obj)include
597 @mkdir -p $(obj)board/mcc200
598 @[ -n "$(findstring highboot,$@)" ] || \
599 { $(XECHO) "... with lowboot configuration" ; \
601 @[ -z "$(findstring highboot,$@)" ] || \
602 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
603 $(XECHO) "... with highboot configuration" ; \
605 @[ -n "$(findstring _SDRAM,$@)" ] || \
606 { if [ -n "$(findstring mcc200,$@)" ]; \
608 $(XECHO) "... with DDR" ; \
610 if [ -n "$(findstring _DDR,$@)" ];\
612 $(XECHO) "... with DDR" ; \
614 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
615 $(XECHO) "... with SDRAM" ; \
619 @[ -z "$(findstring _SDRAM,$@)" ] || \
620 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
621 $(XECHO) "... with SDRAM" ; \
623 @[ -z "$(findstring COM12,$@)" ] || \
624 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
625 $(XECHO) "... with console on COM12" ; \
627 @[ -z "$(findstring prs200,$@)" ] || \
628 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
630 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
632 mecp5200_config: unconfig
633 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
635 motionpro_config: unconfig
636 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
638 mucmc52_config: unconfig
639 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
641 munices_config: unconfig
642 @$(MKCONFIG) munices ppc mpc5xxx munices
644 MVBC_P_config: unconfig
645 @mkdir -p $(obj)include
646 @mkdir -p $(obj)board/mvbc_p
647 @ >$(obj)include/config.h
648 @[ -z "$(findstring MVBC_P,$@)" ] || \
649 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
650 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
652 o2dnt_config: unconfig
653 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
655 pf5200_config: unconfig
656 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
660 PM520_ROMBOOT_config \
661 PM520_ROMBOOT_DDR_config: unconfig
662 @mkdir -p $(obj)include
663 @[ -z "$(findstring DDR,$@)" ] || \
664 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
665 $(XECHO) "... DDR memory revision" ; \
667 @[ -z "$(findstring ROMBOOT,$@)" ] || \
668 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
669 $(XECHO) "... booting from 8-bit flash" ; \
671 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
673 smmaco4_config: unconfig
674 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
676 spieval_config: unconfig
677 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
680 TB5200_config: unconfig
681 @mkdir -p $(obj)include
682 @[ -z "$(findstring _B,$@)" ] || \
683 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
684 $(XECHO) "... with MPC5200B processor" ; \
686 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
690 TOP5200_config: unconfig
691 @mkdir -p $(obj)include
692 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
693 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
697 Total5200_lowboot_config \
698 Total5200_Rev2_config \
699 Total5200_Rev2_lowboot_config: unconfig
700 @mkdir -p $(obj)include
701 @mkdir -p $(obj)board/total5200
702 @[ -z "$(findstring 5100,$@)" ] || \
703 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
704 $(XECHO) "... with MGT5100 processor" ; \
706 @[ -z "$(findstring 5200,$@)" ] || \
707 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
708 $(XECHO) "... with MPC5200 processor" ; \
710 @[ -n "$(findstring Rev,$@)" ] || \
711 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
712 $(XECHO) "... revision 1 board" ; \
714 @[ -z "$(findstring Rev2_,$@)" ] || \
715 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
716 $(XECHO) "... revision 2 board" ; \
718 @[ -z "$(findstring lowboot_,$@)" ] || \
719 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
720 $(XECHO) "... with lowboot configuration" ; \
722 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
725 cam5200_niosflash_config \
729 TQM5200S_HIGHBOOT_config \
731 TQM5200_B_HIGHBOOT_config \
733 TQM5200_STK100_config: unconfig
734 @mkdir -p $(obj)include
735 @mkdir -p $(obj)board/tqc/tqm5200
736 @[ -z "$(findstring cam5200,$@)" ] || \
737 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
738 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
739 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
740 $(XECHO) "... TQM5200S on Cam5200" ; \
742 @[ -z "$(findstring niosflash,$@)" ] || \
743 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
744 $(XECHO) "... with NIOS flash driver" ; \
746 @[ -z "$(findstring fo300,$@)" ] || \
747 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
748 $(XECHO) "... TQM5200 on FO300" ; \
750 @[ -z "$(findstring MiniFAP,$@)" ] || \
751 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
752 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
754 @[ -z "$(findstring STK100,$@)" ] || \
755 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
756 $(XECHO) "... on a STK52XX.100 base board" ; \
758 @[ -z "$(findstring TQM5200_B,$@)" ] || \
759 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
761 @[ -z "$(findstring TQM5200S,$@)" ] || \
762 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
763 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
765 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
766 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
768 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
770 uc101_config: unconfig
771 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
773 v38b_config: unconfig
774 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
776 #########################################################################
778 #########################################################################
781 ads5121_rev2_config \
783 @mkdir -p $(obj)include
784 @if [ "$(findstring rev2,$@)" ] ; then \
785 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
787 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
790 #########################################################################
792 #########################################################################
798 @mkdir -p $(obj)include
799 $(if $(findstring AdderII,$@), \
800 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
801 @$(MKCONFIG) -a Adder ppc mpc8xx adder
803 AdderUSB_config: unconfig
804 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
811 FADS860T_config: unconfig
812 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
814 AMX860_config : unconfig
815 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
817 c2mon_config: unconfig
818 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
821 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
823 cogent_mpc8xx_config: unconfig
824 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
826 ELPT860_config: unconfig
827 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
829 EP88x_config: unconfig
830 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
832 ESTEEM192E_config: unconfig
833 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
835 ETX094_config : unconfig
836 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
838 FLAGADM_config: unconfig
839 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
841 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
844 GEN860T_config: unconfig
845 @mkdir -p $(obj)include
846 @[ -z "$(findstring _SC,$@)" ] || \
847 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
848 $(XECHO) "With reduced H/W feature set (SC)..." ; \
850 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
852 GENIETV_config: unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
858 hermes_config : unconfig
859 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
861 HMI10_config : unconfig
862 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
864 IAD210_config: unconfig
865 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
867 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
869 ICU862_100MHz_config \
870 ICU862_config: unconfig
871 @mkdir -p $(obj)include
872 @[ -z "$(findstring _100MHz,$@)" ] || \
873 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
874 $(XECHO) "... with 100MHz system clock" ; \
876 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
878 IP860_config : unconfig
879 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
883 IVML24_config: unconfig
884 @mkdir -p $(obj)include
885 @[ -z "$(findstring IVML24_config,$@)" ] || \
886 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
888 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
889 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
891 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
892 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
894 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
898 IVMS8_config: unconfig
899 @mkdir -p $(obj)include
900 @[ -z "$(findstring IVMS8_config,$@)" ] || \
901 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
903 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
904 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
906 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
907 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
909 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
911 KUP4K_config : unconfig
912 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
914 KUP4X_config : unconfig
915 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
917 LANTEC_config : unconfig
918 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
920 lwmon_config: unconfig
921 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
924 MBX860T_config: unconfig
925 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
927 mgsuvd_config: unconfig
928 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
930 MHPC_config: unconfig
931 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
933 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
936 NETVIA_config: unconfig
937 @mkdir -p $(obj)include
938 @[ -z "$(findstring NETVIA_config,$@)" ] || \
939 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
940 $(XECHO) "... Version 1" ; \
942 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
943 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
944 $(XECHO) "... Version 2" ; \
946 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
948 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
951 NETPHONE_config: unconfig
952 @mkdir -p $(obj)include
953 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
954 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
956 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
957 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
959 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
961 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
963 NETTA_ISDN_6412_SWAPHOOK_config \
964 NETTA_ISDN_SWAPHOOK_config \
965 NETTA_6412_SWAPHOOK_config \
966 NETTA_SWAPHOOK_config \
967 NETTA_ISDN_6412_config \
970 NETTA_config: unconfig
971 @mkdir -p $(obj)include
972 @[ -z "$(findstring ISDN_,$@)" ] || \
973 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
975 @[ -n "$(findstring ISDN_,$@)" ] || \
976 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
978 @[ -z "$(findstring 6412_,$@)" ] || \
979 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
981 @[ -n "$(findstring 6412_,$@)" ] || \
982 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
984 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
985 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
987 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
988 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
990 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
992 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
995 NETTA2_config: unconfig
996 @mkdir -p $(obj)include
997 @[ -z "$(findstring NETTA2_config,$@)" ] || \
998 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1000 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1001 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1003 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1007 CP850_config: unconfig
1008 @mkdir -p $(obj)include
1009 @[ -z "$(findstring CP850,$@)" ] || \
1010 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1011 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1013 @[ -z "$(findstring Rev1,$@)" ] || \
1014 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1016 @[ -z "$(findstring Rev2,$@)" ] || \
1017 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1019 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1021 NX823_config: unconfig
1022 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1024 pcu_e_config: unconfig
1025 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1027 QS850_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1030 QS823_config: unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1033 QS860T_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1036 quantum_config: unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1039 R360MPI_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1042 RBC823_config: unconfig
1043 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1045 RPXClassic_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1048 RPXlite_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1051 RPXlite_DW_64_config \
1052 RPXlite_DW_LCD_config \
1053 RPXlite_DW_64_LCD_config \
1054 RPXlite_DW_NVRAM_config \
1055 RPXlite_DW_NVRAM_64_config \
1056 RPXlite_DW_NVRAM_LCD_config \
1057 RPXlite_DW_NVRAM_64_LCD_config \
1058 RPXlite_DW_config: unconfig
1059 @mkdir -p $(obj)include
1060 @[ -z "$(findstring _64,$@)" ] || \
1061 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1062 $(XECHO) "... with 64MHz system clock ..."; \
1064 @[ -z "$(findstring _LCD,$@)" ] || \
1065 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1066 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1067 $(XECHO) "... with LCD display ..."; \
1069 @[ -z "$(findstring _NVRAM,$@)" ] || \
1070 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1071 $(XECHO) "... with ENV in NVRAM ..."; \
1073 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1075 rmu_config: unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1078 RRvision_config: unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1081 RRvision_LCD_config: unconfig
1082 @mkdir -p $(obj)include
1083 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1084 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1085 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1087 SM850_config : unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1090 spc1920_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1093 SPD823TS_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1096 stxxtc_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1099 svm_sc8xx_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1102 SXNI855T_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1105 # EMK MPC8xx based modules
1106 TOP860_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1109 # Play some tricks for configuration selection
1110 # Only 855 and 860 boards may come with FEC
1111 # and only 823 boards may have LCD support
1112 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1118 TQM823L_LCD_config \
1131 virtlab2_config: unconfig
1132 @mkdir -p $(obj)include
1133 @[ -z "$(findstring _LCD,$@)" ] || \
1134 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1135 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1136 $(XECHO) "... with LCD display" ; \
1138 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1140 TTTech_config: unconfig
1141 @mkdir -p $(obj)include
1142 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1143 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1144 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1146 uc100_config : unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1149 v37_config: unconfig
1150 @mkdir -p $(obj)include
1151 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1152 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1153 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1155 wtk_config: unconfig
1156 @mkdir -p $(obj)include
1157 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1158 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1159 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1161 #########################################################################
1163 #########################################################################
1164 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1166 acadia_config: unconfig
1167 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1169 acadia_nand_config: unconfig
1170 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1171 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1172 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1173 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1174 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1175 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1177 ADCIOP_config: unconfig
1178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1180 alpr_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1183 AP1000_config:unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1186 APC405_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1189 AR405_config: unconfig
1190 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1192 ASH405_config: unconfig
1193 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1195 bamboo_config: unconfig
1196 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1198 bamboo_nand_config: unconfig
1199 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1200 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1201 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1202 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1203 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1204 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1206 bubinga_config: unconfig
1207 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1209 CANBT_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1212 # Arches, Canyonlands & Glacier use different U-Boot images
1214 canyonlands_config \
1215 glacier_config: unconfig
1216 @mkdir -p $(obj)include
1217 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1218 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1219 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1221 canyonlands_nand_config \
1222 glacier_nand_config: unconfig
1223 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1224 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1225 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1226 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1227 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1228 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1229 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1230 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1233 CATcenter_25_config \
1234 CATcenter_33_config: unconfig
1235 @mkdir -p $(obj)include
1236 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1237 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1238 @[ -z "$(findstring _25,$@)" ] || \
1239 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1240 $(XECHO) "SysClk = 25MHz" ; \
1242 @[ -z "$(findstring _33,$@)" ] || \
1243 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1244 $(XECHO) "SysClk = 33MHz" ; \
1246 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1248 CMS700_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1251 CPCI2DP_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1254 CPCI405_config: unconfig
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1259 CPCI405AB_config: unconfig
1260 @mkdir -p $(obj)board/esd/cpci405
1261 @echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1264 CPCIISER4_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1267 CRAYL1_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1270 csb272_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1273 csb472_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1276 DASA_SIM_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1279 DP405_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1282 DU405_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1285 DU440_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1288 ebony_config: unconfig
1289 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1291 ERIC_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1294 EXBITGEN_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1297 fx12mm_flash_config: unconfig
1298 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1299 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1300 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1301 > $(obj)board/avnet/fx12mm/config.tmp
1302 @echo "TEXT_BASE := 0xFFCB0000" \
1303 >> $(obj)board/avnet/fx12mm/config.tmp
1304 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1306 fx12mm_config: unconfig
1307 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1308 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1309 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1310 > $(obj)board/avnet/fx12mm/config.tmp
1311 @echo "TEXT_BASE := 0x03000000" \
1312 >> $(obj)board/avnet/fx12mm/config.tmp
1313 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1315 G2000_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1318 hcu4_config: unconfig
1319 @mkdir -p $(obj)board/netstal/common
1320 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1322 hcu5_config: unconfig
1323 @mkdir -p $(obj)board/netstal/common
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1326 HH405_config: unconfig
1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1329 HUB405_config: unconfig
1330 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1332 JSE_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1335 KAREF_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1338 katmai_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1341 # Kilauea & Haleakala images are identical (recognized via PVR)
1343 haleakala_config: unconfig
1344 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1346 kilauea_nand_config \
1347 haleakala_nand_config: unconfig
1348 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1349 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1350 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1351 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1352 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1353 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1355 korat_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1358 luan_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1361 lwmon5_config: unconfig
1362 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1364 makalu_config: unconfig
1365 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1367 mcu25_config: unconfig
1368 @mkdir -p $(obj)board/netstal/common
1369 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1371 METROBOX_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1374 MIP405_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1377 MIP405T_config: unconfig
1378 @mkdir -p $(obj)include
1379 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1380 @$(XECHO) "Enable subset config for MIP405T"
1381 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1383 ML2_config: unconfig
1384 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1386 ml300_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1389 ml507_flash_config: unconfig
1390 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1391 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1392 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1393 > $(obj)board/xilinx/ml507/config.tmp
1394 @echo "TEXT_BASE := 0xFE360000" \
1395 >> $(obj)board/xilinx/ml507/config.tmp
1396 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1398 ml507_config: unconfig
1399 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1400 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1401 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1402 > $(obj)board/xilinx/ml507/config.tmp
1403 @echo "TEXT_BASE := 0x04000000" \
1404 >> $(obj)board/xilinx/ml507/config.tmp
1405 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1407 neo_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1410 ocotea_config: unconfig
1411 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1414 ORSG_config: unconfig
1415 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1417 p3p440_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1420 PCI405_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1423 pcs440ep_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1426 PIP405_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1429 PLU405_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1432 PMC405_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1435 PMC440_config: unconfig
1436 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1438 PPChameleonEVB_config \
1439 PPChameleonEVB_BA_25_config \
1440 PPChameleonEVB_ME_25_config \
1441 PPChameleonEVB_HI_25_config \
1442 PPChameleonEVB_BA_33_config \
1443 PPChameleonEVB_ME_33_config \
1444 PPChameleonEVB_HI_33_config: unconfig
1445 @mkdir -p $(obj)include
1446 @[ -z "$(findstring EVB_BA,$@)" ] || \
1447 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1448 $(XECHO) "... BASIC model" ; \
1450 @[ -z "$(findstring EVB_ME,$@)" ] || \
1451 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1452 $(XECHO) "... MEDIUM model" ; \
1454 @[ -z "$(findstring EVB_HI,$@)" ] || \
1455 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1456 $(XECHO) "... HIGH-END model" ; \
1458 @[ -z "$(findstring _25,$@)" ] || \
1459 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1460 $(XECHO) "SysClk = 25MHz" ; \
1462 @[ -z "$(findstring _33,$@)" ] || \
1463 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1464 $(XECHO) "SysClk = 33MHz" ; \
1466 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1468 quad100hd_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1471 redwood_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1474 sbc405_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1478 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1481 rainier_config: unconfig
1482 @mkdir -p $(obj)include
1483 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1484 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1485 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1487 sequoia_nand_config \
1488 rainier_nand_config: unconfig
1489 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1490 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1491 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1492 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1493 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1494 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1495 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1496 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1498 taihu_config: unconfig
1499 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1501 taishan_config: unconfig
1502 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1504 v5fx30teval_config: unconfig
1505 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1506 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1507 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1508 > $(obj)board/avnet/v5fx30teval/config.tmp
1509 @echo "TEXT_BASE := 0x03000000" \
1510 >> $(obj)board/avnet/v5fx30teval/config.tmp
1511 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1513 v5fx30teval_flash_config: unconfig
1514 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1515 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1516 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1517 > $(obj)board/avnet/v5fx30teval/config.tmp
1518 @echo "TEXT_BASE := 0xFF1C0000" \
1519 >> $(obj)board/avnet/v5fx30teval/config.tmp
1520 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1522 VOH405_config: unconfig
1523 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1525 VOM405_config: unconfig
1526 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1529 W7OLMG_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1532 # Walnut & Sycamore images are identical (recognized via PVR)
1534 sycamore_config: unconfig
1535 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1537 WUH405_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1540 xilinx-ppc405-generic_flash_config: unconfig
1541 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1542 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1543 > $(obj)board/xilinx/ppc405-generic/config.tmp
1544 @echo "TEXT_BASE := 0xFE360000" \
1545 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1546 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1548 xilinx-ppc405-generic_config: unconfig
1549 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1550 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1551 > $(obj)board/xilinx/ppc405-generic/config.tmp
1552 @echo "TEXT_BASE := 0x04000000" \
1553 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1554 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1556 xilinx-ppc440-generic_flash_config: unconfig
1557 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1558 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1559 > $(obj)board/xilinx/ppc440-generic/config.tmp
1560 @echo "TEXT_BASE := 0xFE360000" \
1561 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1562 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1564 xilinx-ppc440-generic_config: unconfig
1565 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1566 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1567 > $(obj)board/xilinx/ppc440-generic/config.tmp
1568 @echo "TEXT_BASE := 0x04000000" \
1569 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1570 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1572 XPEDITE1K_config: unconfig
1573 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1576 yellowstone_config: unconfig
1577 @mkdir -p $(obj)include
1578 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1579 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1580 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1582 yucca_config: unconfig
1583 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1585 zeus_config: unconfig
1586 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1588 #########################################################################
1590 #########################################################################
1593 Yukon8220_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1596 sorcery_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1599 #########################################################################
1601 #########################################################################
1602 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1604 A3000_config: unconfig
1605 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1607 barco_config: unconfig
1608 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1610 BMW_config: unconfig
1611 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1614 CPC45_ROMBOOT_config: unconfig
1615 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1616 @cd $(obj)include ; \
1617 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1618 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1619 $(XECHO) "... booting from 8-bit flash" ; \
1621 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1622 $(XECHO) "... booting from 64-bit flash" ; \
1624 echo "export CONFIG_BOOT_ROM" >> config.mk;
1626 CU824_config: unconfig
1627 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1629 debris_config: unconfig
1630 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1632 eXalion_config: unconfig
1633 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1635 HIDDEN_DRAGON_config: unconfig
1636 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1638 kvme080_config: unconfig
1639 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1641 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1643 #linkstation_HDLAN_config \
1644 # Remove this line when HDLAN is fixed
1645 linkstation_HGLAN_config: unconfig
1646 @mkdir -p $(obj)include
1648 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1649 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1651 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1653 MOUSSE_config: unconfig
1654 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1656 MUSENKI_config: unconfig
1657 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1659 MVBLUE_config: unconfig
1660 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1662 OXC_config: unconfig
1663 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1665 PN62_config: unconfig
1666 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1668 Sandpoint8240_config: unconfig
1669 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1671 Sandpoint8245_config: unconfig
1672 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1674 sbc8240_config: unconfig
1675 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1677 SL8245_config: unconfig
1678 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1680 utx8245_config: unconfig
1681 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1683 #########################################################################
1685 #########################################################################
1687 atc_config: unconfig
1688 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1690 cogent_mpc8260_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1694 CPU86_ROMBOOT_config: unconfig
1695 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1696 @cd $(obj)include ; \
1697 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1698 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1699 $(XECHO) "... booting from 8-bit flash" ; \
1701 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1702 $(XECHO) "... booting from 64-bit flash" ; \
1704 echo "export CONFIG_BOOT_ROM" >> config.mk;
1707 CPU87_ROMBOOT_config: unconfig
1708 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1709 @cd $(obj)include ; \
1710 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1711 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1712 $(XECHO) "... booting from 8-bit flash" ; \
1714 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1715 $(XECHO) "... booting from 64-bit flash" ; \
1717 echo "export CONFIG_BOOT_ROM" >> config.mk;
1720 ep8248E_config : unconfig
1721 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1723 ep8260_config: unconfig
1724 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1726 ep82xxm_config: unconfig
1727 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1729 gw8260_config: unconfig
1730 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1732 hymod_config: unconfig
1733 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1735 IDS8247_config: unconfig
1736 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1738 IPHASE4539_config: unconfig
1739 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1742 ISPAN_REVB_config: unconfig
1743 @mkdir -p $(obj)include
1744 @if [ "$(findstring _REVB_,$@)" ] ; then \
1745 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1747 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1749 mgcoge_config : unconfig
1750 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1753 MPC8260ADS_lowboot_config \
1754 MPC8260ADS_33MHz_config \
1755 MPC8260ADS_33MHz_lowboot_config \
1756 MPC8260ADS_40MHz_config \
1757 MPC8260ADS_40MHz_lowboot_config \
1759 MPC8272ADS_lowboot_config \
1761 PQ2FADS_lowboot_config \
1763 PQ2FADS-VR_lowboot_config \
1765 PQ2FADS-ZU_lowboot_config \
1766 PQ2FADS-ZU_66MHz_config \
1767 PQ2FADS-ZU_66MHz_lowboot_config \
1769 @mkdir -p $(obj)include
1770 @mkdir -p $(obj)board/freescale/mpc8260ads
1771 $(if $(findstring PQ2FADS,$@), \
1772 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1773 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1774 $(if $(findstring MHz,$@), \
1775 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1776 $(if $(findstring VR,$@), \
1777 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1778 @[ -z "$(findstring lowboot_,$@)" ] || \
1779 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1780 $(XECHO) "... with lowboot configuration" ; \
1782 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1784 MPC8266ADS_config: unconfig
1785 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1787 muas3001_dev_config \
1788 muas3001_config : unconfig
1789 @mkdir -p $(obj)include
1790 @mkdir -p $(obj)board/muas3001
1791 @if [ "$(findstring dev,$@)" ] ; then \
1792 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1794 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1796 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1798 PM825_ROMBOOT_config \
1799 PM825_BIGFLASH_config \
1800 PM825_ROMBOOT_BIGFLASH_config \
1802 PM826_ROMBOOT_config \
1803 PM826_BIGFLASH_config \
1804 PM826_ROMBOOT_BIGFLASH_config: unconfig
1805 @mkdir -p $(obj)include
1806 @mkdir -p $(obj)board/pm826
1807 @if [ "$(findstring PM825_,$@)" ] ; then \
1808 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1810 >$(obj)include/config.h ; \
1812 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1813 $(XECHO) "... booting from 8-bit flash" ; \
1814 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1815 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1816 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1817 $(XECHO) "... with 32 MB Flash" ; \
1818 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1821 $(XECHO) "... booting from 64-bit flash" ; \
1822 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1823 $(XECHO) "... with 32 MB Flash" ; \
1824 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1825 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1827 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1830 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1834 PM828_ROMBOOT_config \
1835 PM828_ROMBOOT_PCI_config: unconfig
1836 @mkdir -p $(obj)include
1837 @mkdir -p $(obj)board/pm826
1838 @if [ "$(findstring _PCI_,$@)" ] ; then \
1839 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1840 $(XECHO) "... with PCI enabled" ; \
1842 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1843 $(XECHO) "... booting from 8-bit flash" ; \
1844 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1845 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1847 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1849 ppmc8260_config: unconfig
1850 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1852 Rattler8248_config \
1853 Rattler_config: unconfig
1854 @mkdir -p $(obj)include
1855 $(if $(findstring 8248,$@), \
1856 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1857 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1859 RPXsuper_config: unconfig
1860 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1862 rsdproto_config: unconfig
1863 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1865 sacsng_config: unconfig
1866 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1868 sbc8260_config: unconfig
1869 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1871 SCM_config: unconfig
1872 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1884 TQM8265_AA_config: unconfig
1885 @mkdir -p $(obj)include
1887 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1888 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1889 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1890 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1891 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1892 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1893 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1894 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1895 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1896 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1897 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1899 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1900 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1902 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1903 echo "... with $${CFREQ}MHz system clock" ; \
1904 if [ "$${CACHE}" = "yes" ] ; then \
1905 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1906 $(XECHO) "... with L2 Cache support" ; \
1908 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1909 $(XECHO) "... without L2 Cache support" ; \
1911 if [ "$${BMODE}" = "60x" ] ; then \
1912 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1913 $(XECHO) "... with 60x Bus Mode" ; \
1915 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1916 $(XECHO) "... without 60x Bus Mode" ; \
1918 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1920 TQM8272_config: unconfig
1921 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1923 VoVPN-GW_66MHz_config \
1924 VoVPN-GW_100MHz_config: unconfig
1925 @mkdir -p $(obj)include
1926 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1927 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1929 ZPC1900_config: unconfig
1930 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1932 #########################################################################
1934 #########################################################################
1937 M52277EVB_spansion_config \
1938 M52277EVB_stmicro_config : unconfig
1940 M52277EVB_config) FLASH=SPANSION;; \
1941 M52277EVB_spansion_config) FLASH=SPANSION;; \
1942 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1944 if [ "$${FLASH}" = "SPANSION" ] ; then \
1945 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1946 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1947 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1948 $(XECHO) "... with SPANSION boot..." ; \
1950 if [ "$${FLASH}" = "STMICRO" ] ; then \
1951 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1952 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1953 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1954 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1955 $(XECHO) "... with ST Micro boot..." ; \
1957 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1960 M5235EVB_Flash16_config \
1961 M5235EVB_Flash32_config: unconfig
1963 M5235EVB_config) FLASH=16;; \
1964 M5235EVB_Flash16_config) FLASH=16;; \
1965 M5235EVB_Flash32_config) FLASH=32;; \
1967 if [ "$${FLASH}" != "16" ] ; then \
1968 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1969 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1970 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1972 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1973 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1975 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1977 M5249EVB_config : unconfig
1978 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1980 M5253DEMO_config : unconfig
1981 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1983 M5253EVBE_config : unconfig
1984 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1986 cobra5272_config : unconfig
1987 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1989 EB+MCF-EV123_config : unconfig
1990 @mkdir -p $(obj)include
1991 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1992 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1993 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1995 EB+MCF-EV123_internal_config : unconfig
1996 @mkdir -p $(obj)include
1997 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1998 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1999 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2001 idmr_config : unconfig
2002 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2004 M5271EVB_config : unconfig
2005 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2007 M5272C3_config : unconfig
2008 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2010 M5275EVB_config : unconfig
2011 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2013 M5282EVB_config : unconfig
2014 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2016 M53017EVB_config : unconfig
2017 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2020 M5329BFEE_config : unconfig
2022 M5329AFEE_config) NAND=0;; \
2023 M5329BFEE_config) NAND=16;; \
2025 if [ "$${NAND}" != "0" ] ; then \
2026 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2028 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2030 M5373EVB_config : unconfig
2032 M5373EVB_config) NAND=16;; \
2034 if [ "$${NAND}" != "0" ] ; then \
2035 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2037 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2040 M54451EVB_spansion_config \
2041 M54451EVB_stmicro_config : unconfig
2043 M54451EVB_config) FLASH=SPANSION;; \
2044 M54451EVB_spansion_config) FLASH=SPANSION;; \
2045 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2047 if [ "$${FLASH}" = "SPANSION" ] ; then \
2048 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2049 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2050 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2051 $(XECHO) "... with SPANSION boot..." ; \
2053 if [ "$${FLASH}" = "STMICRO" ] ; then \
2054 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2055 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2056 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2057 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2058 $(XECHO) "... with ST Micro boot..." ; \
2060 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2061 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2064 M54455EVB_atmel_config \
2065 M54455EVB_intel_config \
2066 M54455EVB_a33_config \
2067 M54455EVB_a66_config \
2068 M54455EVB_i33_config \
2069 M54455EVB_i66_config \
2070 M54455EVB_stm33_config : unconfig
2072 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2073 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2074 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2075 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2076 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2077 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2078 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2079 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2081 if [ "$${FLASH}" = "INTEL" ] ; then \
2082 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2083 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2084 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2085 $(XECHO) "... with INTEL boot..." ; \
2087 if [ "$${FLASH}" = "ATMEL" ] ; then \
2088 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2089 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2090 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2091 $(XECHO) "... with ATMEL boot..." ; \
2093 if [ "$${FLASH}" = "STMICRO" ] ; then \
2094 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2095 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2096 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2097 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2098 $(XECHO) "... with ST Micro boot..." ; \
2100 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2101 $(XECHO) "... with $${FREQ}Hz input clock"
2102 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2110 M5475GFE_config : unconfig
2112 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2113 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2114 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2115 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2116 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2117 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2118 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2120 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2121 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2122 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2123 if [ "$${RAM1}" != "0" ] ; then \
2124 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2126 if [ "$${CODE}" != "0" ] ; then \
2127 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2129 if [ "$${VID}" == "1" ] ; then \
2130 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2132 if [ "$${USB}" == "1" ] ; then \
2133 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2135 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2144 M5485HFE_config : unconfig
2146 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2147 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2148 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2149 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2150 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2151 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2152 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2153 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2155 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2156 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2157 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2158 if [ "$${RAM1}" != "0" ] ; then \
2159 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2161 if [ "$${CODE}" != "0" ] ; then \
2162 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2164 if [ "$${VID}" == "1" ] ; then \
2165 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2167 if [ "$${USB}" == "1" ] ; then \
2168 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2170 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2172 TASREG_config : unconfig
2173 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2175 #########################################################################
2177 #########################################################################
2179 MPC8313ERDB_33_config \
2180 MPC8313ERDB_66_config \
2181 MPC8313ERDB_NAND_33_config \
2182 MPC8313ERDB_NAND_66_config: unconfig
2183 @mkdir -p $(obj)include
2184 @mkdir -p $(obj)board/freescale/mpc8313erdb
2185 @if [ "$(findstring _33_,$@)" ] ; then \
2186 $(XECHO) -n "...33M ..." ; \
2187 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2189 if [ "$(findstring _66_,$@)" ] ; then \
2190 $(XECHO) -n "...66M..." ; \
2191 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2193 if [ "$(findstring _NAND_,$@)" ] ; then \
2194 $(XECHO) -n "...NAND..." ; \
2195 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2196 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2198 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2199 @if [ "$(findstring _NAND_,$@)" ] ; then \
2200 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2203 MPC8315ERDB_config: unconfig
2204 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2206 MPC8323ERDB_config: unconfig
2207 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2209 MPC832XEMDS_config \
2210 MPC832XEMDS_HOST_33_config \
2211 MPC832XEMDS_HOST_66_config \
2212 MPC832XEMDS_SLAVE_config \
2213 MPC832XEMDS_ATM_config: unconfig
2214 @mkdir -p $(obj)include
2215 @if [ "$(findstring _HOST_,$@)" ] ; then \
2216 $(XECHO) -n "... PCI HOST " ; \
2217 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2219 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2220 $(XECHO) "...PCI SLAVE 66M" ; \
2221 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2222 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2224 if [ "$(findstring _33_,$@)" ] ; then \
2225 $(XECHO) -n "...33M ..." ; \
2226 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2227 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2229 if [ "$(findstring _66_,$@)" ] ; then \
2230 $(XECHO) -n "...66M..." ; \
2231 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2232 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2234 if [ "$(findstring _ATM_,$@)" ] ; then \
2235 $(XECHO) -n "...ATM..." ; \
2236 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2237 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2239 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2241 MPC8349EMDS_config: unconfig
2242 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2245 MPC8349ITX_LOWBOOT_config \
2246 MPC8349ITXGP_config: unconfig
2247 @mkdir -p $(obj)include
2248 @mkdir -p $(obj)board/freescale/mpc8349itx
2249 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2250 @if [ "$(findstring GP,$@)" ] ; then \
2251 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2253 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2254 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2256 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2258 MPC8360EMDS_config \
2259 MPC8360EMDS_HOST_33_config \
2260 MPC8360EMDS_HOST_66_config \
2261 MPC8360EMDS_SLAVE_config \
2262 MPC8360EMDS_ATM_config: unconfig
2263 @mkdir -p $(obj)include
2264 @if [ "$(findstring _HOST_,$@)" ] ; then \
2265 $(XECHO) -n "... PCI HOST " ; \
2266 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2268 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2269 $(XECHO) "...PCI SLAVE 66M" ; \
2270 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2271 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2273 if [ "$(findstring _33_,$@)" ] ; then \
2274 $(XECHO) -n "...33M ..." ; \
2275 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2276 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2278 if [ "$(findstring _66_,$@)" ] ; then \
2279 $(XECHO) -n "...66M..." ; \
2280 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2281 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2283 if [ "$(findstring _ATM_,$@)" ] ; then \
2284 $(XECHO) -n "...ATM..." ; \
2285 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2286 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2288 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2290 MPC8360ERDK_33_config \
2291 MPC8360ERDK_66_config \
2292 MPC8360ERDK_config: unconfig
2293 @mkdir -p $(obj)include
2294 @if [ "$(findstring _33_,$@)" ] ; then \
2295 $(XECHO) -n "... CLKIN 33MHz " ; \
2296 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2298 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2300 MPC837XEMDS_config \
2301 MPC837XEMDS_HOST_config: unconfig
2302 @mkdir -p $(obj)include
2303 @if [ "$(findstring _HOST_,$@)" ] ; then \
2304 $(XECHO) -n "... PCI HOST " ; \
2305 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2307 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2309 MPC837XERDB_config: unconfig
2310 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2312 MVBLM7_config: unconfig
2313 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2315 sbc8349_config: unconfig
2316 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2318 TQM834x_config: unconfig
2319 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2322 #########################################################################
2324 #########################################################################
2326 ATUM8548_config: unconfig
2327 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2329 MPC8536DS_config: unconfig
2330 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2332 MPC8540ADS_config: unconfig
2333 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2335 MPC8540EVAL_config \
2336 MPC8540EVAL_33_config \
2337 MPC8540EVAL_66_config \
2338 MPC8540EVAL_33_slave_config \
2339 MPC8540EVAL_66_slave_config: unconfig
2340 @mkdir -p $(obj)include
2341 @if [ "$(findstring _33_,$@)" ] ; then \
2342 $(XECHO) "... 33 MHz PCI" ; \
2344 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2345 $(XECHO) "... 66 MHz PCI" ; \
2347 if [ "$(findstring _slave_,$@)" ] ; then \
2348 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2349 $(XECHO) " slave" ; \
2351 $(XECHO) " host" ; \
2353 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2355 MPC8560ADS_config: unconfig
2356 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2358 MPC8541CDS_legacy_config \
2359 MPC8541CDS_config: unconfig
2360 @mkdir -p $(obj)include
2361 @if [ "$(findstring _legacy_,$@)" ] ; then \
2362 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2363 $(XECHO) "... legacy" ; \
2365 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2367 MPC8544DS_config: unconfig
2368 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2370 MPC8548CDS_legacy_config \
2371 MPC8548CDS_config: unconfig
2372 @mkdir -p $(obj)include
2373 @if [ "$(findstring _legacy_,$@)" ] ; then \
2374 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2375 $(XECHO) "... legacy" ; \
2377 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2379 MPC8555CDS_legacy_config \
2380 MPC8555CDS_config: unconfig
2381 @mkdir -p $(obj)include
2382 @if [ "$(findstring _legacy_,$@)" ] ; then \
2383 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2384 $(XECHO) "... legacy" ; \
2386 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2388 MPC8568MDS_config: unconfig
2389 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2391 MPC8572DS_config: unconfig
2392 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2394 PM854_config: unconfig
2395 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2397 PM856_config: unconfig
2398 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2402 sbc8540_66_config: unconfig
2403 @mkdir -p $(obj)include
2404 @if [ "$(findstring _66_,$@)" ] ; then \
2405 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2406 $(XECHO) "... 66 MHz PCI" ; \
2408 $(XECHO) "... 33 MHz PCI" ; \
2410 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2412 sbc8548_config: unconfig
2413 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2417 sbc8560_66_config: unconfig
2418 @mkdir -p $(obj)include
2419 @if [ "$(findstring _66_,$@)" ] ; then \
2420 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2421 $(XECHO) "... 66 MHz PCI" ; \
2423 $(XECHO) "... 33 MHz PCI" ; \
2425 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2427 socrates_config: unconfig
2428 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2430 stxgp3_config: unconfig
2431 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2434 stxssa_4M_config: unconfig
2435 @mkdir -p $(obj)include
2436 @if [ "$(findstring _4M_,$@)" ] ; then \
2437 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2438 $(XECHO) "... with 4 MiB flash memory" ; \
2440 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2446 TQM8560_config: unconfig
2447 @mkdir -p $(obj)include
2448 @CTYPE=$(subst TQM,,$(@:_config=)); \
2449 $(XECHO) "... TQM"$${CTYPE}; \
2450 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2451 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2452 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2453 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2454 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2456 #########################################################################
2458 #########################################################################
2460 MPC8610HPCD_config: unconfig
2461 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2463 MPC8641HPCN_36BIT_config \
2464 MPC8641HPCN_config: unconfig
2465 @mkdir -p $(obj)include
2466 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2467 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2468 $(XECHO) "... enabling 36-bit physical addressing." ; \
2470 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2472 sbc8641d_config: unconfig
2473 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2475 #########################################################################
2477 #########################################################################
2479 AmigaOneG3SE_config: unconfig
2480 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2482 BAB7xx_config: unconfig
2483 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2485 CPCI750_config: unconfig
2486 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2488 DB64360_config: unconfig
2489 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2491 DB64460_config: unconfig
2492 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2494 ELPPC_config: unconfig
2495 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2498 EVB64260_750CX_config: unconfig
2499 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2501 mpc7448hpc2_config: unconfig
2502 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2504 P3G4_config: unconfig
2505 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2508 p3m7448_config: unconfig
2509 @mkdir -p $(obj)include
2510 @if [ "$(findstring 750_,$@)" ] ; then \
2511 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2513 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2515 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2518 PCIPPC6_config: unconfig
2519 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2521 ppmc7xx_config: unconfig
2522 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2524 ZUMA_config: unconfig
2525 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2527 #========================================================================
2529 #========================================================================
2530 #########################################################################
2531 ## StrongARM Systems
2532 #########################################################################
2534 assabet_config : unconfig
2535 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2537 dnp1110_config : unconfig
2538 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2540 gcplus_config : unconfig
2541 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2543 lart_config : unconfig
2544 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2546 shannon_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2549 #########################################################################
2551 #########################################################################
2553 #########################################################################
2554 ## Atmel AT91RM9200 Systems
2555 #########################################################################
2557 at91rm9200dk_config : unconfig
2558 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2560 cmc_pu2_config : unconfig
2561 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2563 csb637_config : unconfig
2564 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2566 kb9202_config : unconfig
2567 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2569 m501sk_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2572 mp2usb_config : unconfig
2573 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2575 #########################################################################
2576 ## Atmel ARM926EJ-S Systems
2577 #########################################################################
2579 afeb9260_config: unconfig
2580 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
2582 at91cap9adk_config : unconfig
2583 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2585 at91sam9260ek_nandflash_config \
2586 at91sam9260ek_dataflash_cs0_config \
2587 at91sam9260ek_dataflash_cs1_config \
2588 at91sam9260ek_config : unconfig
2589 @if [ "$(findstring _nandflash,$@)" ] ; then \
2590 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2591 $(XECHO) "... with environment variable in NAND FLASH" ; \
2592 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2593 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2594 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2596 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2597 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2599 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2601 at91sam9261ek_nandflash_config \
2602 at91sam9261ek_dataflash_cs0_config \
2603 at91sam9261ek_dataflash_cs3_config \
2604 at91sam9261ek_config : unconfig
2605 @if [ "$(findstring _nandflash,$@)" ] ; then \
2606 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2607 $(XECHO) "... with environment variable in NAND FLASH" ; \
2608 elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
2609 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
2610 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
2612 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2613 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2615 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
2617 at91sam9263ek_nandflash_config \
2618 at91sam9263ek_dataflash_config \
2619 at91sam9263ek_dataflash_cs0_config \
2620 at91sam9263ek_config : unconfig
2621 @if [ "$(findstring _nandflash,$@)" ] ; then \
2622 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2623 $(XECHO) "... with environment variable in NAND FLASH" ; \
2625 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2626 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2628 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
2630 at91sam9rlek_nandflash_config \
2631 at91sam9rlek_dataflash_config \
2632 at91sam9rlek_dataflash_cs0_config \
2633 at91sam9rlek_config : unconfig
2634 @if [ "$(findstring _nandflash,$@)" ] ; then \
2635 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2636 $(XECHO) "... with environment variable in NAND FLASH" ; \
2638 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2639 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2641 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
2643 ########################################################################
2644 ## ARM Integrator boards - see doc/README-integrator for more info.
2645 integratorap_config \
2654 ap946es_config: unconfig
2655 @board/integratorap/split_by_variant.sh $@
2657 integratorcp_config \
2666 cp1026_config: unconfig
2667 @board/integratorcp/split_by_variant.sh $@
2669 davinci_dvevm_config : unconfig
2670 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2672 davinci_schmoogie_config : unconfig
2673 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2675 davinci_sffsdr_config : unconfig
2676 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2678 davinci_sonata_config : unconfig
2679 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2682 lpd7a404_config: unconfig
2683 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2685 mx1ads_config : unconfig
2686 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2688 mx1fs2_config : unconfig
2689 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2691 netstar_config: unconfig
2692 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2694 omap1510inn_config : unconfig
2695 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2697 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2699 omap1610inn_config \
2700 omap1610inn_cs0boot_config \
2701 omap1610inn_cs3boot_config \
2702 omap1610inn_cs_autoboot_config \
2704 omap1610h2_cs0boot_config \
2705 omap1610h2_cs3boot_config \
2706 omap1610h2_cs_autoboot_config: unconfig
2707 @mkdir -p $(obj)include
2708 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2709 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2710 $(XECHO) "... configured for CS0 boot"; \
2711 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2712 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2713 $(XECHO) "... configured for CS_AUTO boot"; \
2715 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2716 $(XECHO) "... configured for CS3 boot"; \
2718 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2720 omap5912osk_config : unconfig
2721 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2723 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2726 omap730p2_cs0boot_config \
2727 omap730p2_cs3boot_config : unconfig
2728 @mkdir -p $(obj)include
2729 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2730 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2731 $(XECHO) "... configured for CS0 boot"; \
2733 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2734 $(XECHO) "... configured for CS3 boot"; \
2736 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2738 sbc2410x_config: unconfig
2739 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2741 scb9328_config : unconfig
2742 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2744 smdk2400_config : unconfig
2745 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2747 smdk2410_config : unconfig
2748 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2750 SX1_config : unconfig
2751 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2753 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2754 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2757 trab_bigram_config \
2758 trab_bigflash_config \
2759 trab_old_config: unconfig
2760 @mkdir -p $(obj)include
2761 @mkdir -p $(obj)board/trab
2762 @[ -z "$(findstring _bigram,$@)" ] || \
2763 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2764 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2765 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2767 @[ -z "$(findstring _bigflash,$@)" ] || \
2768 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2769 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2770 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2771 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2773 @[ -z "$(findstring _old,$@)" ] || \
2774 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2775 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2776 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2777 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2779 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2781 VCMA9_config : unconfig
2782 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2784 #########################################################################
2785 # ARM supplied Versatile development boards
2786 #########################################################################
2788 cm4008_config : unconfig
2789 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2791 cm41xx_config : unconfig
2792 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2795 versatileab_config \
2796 versatilepb_config : unconfig
2797 @board/versatile/split_by_variant.sh $@
2799 voiceblue_config: unconfig
2800 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2802 #########################################################################
2804 #########################################################################
2806 B2_config : unconfig
2807 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2809 #########################################################################
2811 #########################################################################
2813 armadillo_config: unconfig
2814 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2816 ep7312_config : unconfig
2817 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2819 impa7_config : unconfig
2820 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2822 modnet50_config : unconfig
2823 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2825 evb4510_config : unconfig
2826 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2828 lpc2292sodimm_config: unconfig
2829 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2831 SMN42_config : unconfig
2832 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2834 #########################################################################
2836 #########################################################################
2838 actux1_config : unconfig
2839 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2841 actux2_config : unconfig
2842 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2844 actux3_config : unconfig
2845 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2847 actux4_config : unconfig
2848 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2850 cerf250_config : unconfig
2851 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2853 cradle_config : unconfig
2854 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2856 csb226_config : unconfig
2857 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2859 delta_config : unconfig
2860 @$(MKCONFIG) $(@:_config=) arm pxa delta
2862 innokom_config : unconfig
2863 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2865 ixdp425_config : unconfig
2866 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2868 ixdpg425_config : unconfig
2869 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2871 lubbock_config : unconfig
2872 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2874 pleb2_config : unconfig
2875 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2877 logodl_config : unconfig
2878 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2881 scpu_config: unconfig
2882 @mkdir -p $(obj)include
2883 @if [ "$(findstring scpu_,$@)" ] ; then \
2884 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2885 $(XECHO) "... on SCPU board variant" ; \
2887 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2889 pxa255_idp_config: unconfig
2890 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2892 trizepsiv_config : unconfig
2893 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2895 wepep250_config : unconfig
2896 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2898 xaeniax_config : unconfig
2899 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2901 xm250_config : unconfig
2902 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2904 xsengine_config : unconfig
2905 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2908 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2910 #########################################################################
2912 #########################################################################
2914 apollon_config : unconfig
2915 @mkdir -p $(obj)include
2916 @mkdir -p $(obj)onenand_ipl/board/apollon
2917 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2918 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2919 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2921 imx31_litekit_config : unconfig
2922 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2924 imx31_phycore_config : unconfig
2925 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2927 mx31ads_config : unconfig
2928 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2930 omap2420h4_config : unconfig
2931 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2933 #########################################################################
2935 #########################################################################
2936 smdk6400_noUSB_config \
2937 smdk6400_config : unconfig
2938 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2939 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2940 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2941 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2942 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2943 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2945 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2946 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2948 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2950 #========================================================================
2952 #========================================================================
2953 #########################################################################
2955 #########################################################################
2956 sc520_cdp_config : unconfig
2957 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2959 sc520_spunk_config : unconfig
2960 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2962 sc520_spunk_rel_config : unconfig
2963 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2965 #========================================================================
2967 #========================================================================
2968 #########################################################################
2970 #########################################################################
2972 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2974 incaip_100MHz_config \
2975 incaip_133MHz_config \
2976 incaip_150MHz_config \
2977 incaip_config: unconfig
2978 @mkdir -p $(obj)include
2979 @[ -z "$(findstring _100MHz,$@)" ] || \
2980 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2981 $(XECHO) "... with 100MHz system clock" ; \
2983 @[ -z "$(findstring _133MHz,$@)" ] || \
2984 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2985 $(XECHO) "... with 133MHz system clock" ; \
2987 @[ -z "$(findstring _150MHz,$@)" ] || \
2988 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2989 $(XECHO) "... with 150MHz system clock" ; \
2991 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2993 tb0229_config: unconfig
2994 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2996 #########################################################################
2998 #########################################################################
3000 dbau1000_config : unconfig
3001 @mkdir -p $(obj)include
3002 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3003 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3005 dbau1100_config : unconfig
3006 @mkdir -p $(obj)include
3007 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3008 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3010 dbau1500_config : unconfig
3011 @mkdir -p $(obj)include
3012 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3013 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3015 dbau1550_config : unconfig
3016 @mkdir -p $(obj)include
3017 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3018 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3020 dbau1550_el_config : unconfig
3021 @mkdir -p $(obj)include
3022 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3023 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3025 gth2_config : unconfig
3026 @mkdir -p $(obj)include
3027 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3028 @$(MKCONFIG) -a gth2 mips mips gth2
3030 pb1000_config : unconfig
3031 @mkdir -p $(obj)include
3032 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3033 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3035 qemu_mips_config : unconfig
3036 @mkdir -p $(obj)include
3037 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3038 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3040 #########################################################################
3042 #########################################################################
3044 purple_config : unconfig
3045 @$(MKCONFIG) $(@:_config=) mips mips purple
3047 #========================================================================
3049 #========================================================================
3050 #########################################################################
3052 #########################################################################
3054 ADNPESC1_DNPEVA2_base_32_config \
3055 ADNPESC1_base_32_config \
3056 ADNPESC1_config: unconfig
3057 @mkdir -p $(obj)include
3058 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
3059 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3060 $(XECHO) "... DNP/EVA2 configuration" ; \
3062 @[ -z "$(findstring _base_32,$@)" ] || \
3063 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3064 $(XECHO) "... NIOS 'base_32' configuration" ; \
3066 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3067 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3068 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3070 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3072 DK1C20_safe_32_config \
3073 DK1C20_standard_32_config \
3074 DK1C20_config: unconfig
3075 @mkdir -p $(obj)include
3076 @[ -z "$(findstring _safe_32,$@)" ] || \
3077 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3078 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3080 @[ -z "$(findstring _standard_32,$@)" ] || \
3081 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3082 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3084 @[ -z "$(findstring DK1C20_config,$@)" ] || \
3085 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3086 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3088 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3090 DK1S10_safe_32_config \
3091 DK1S10_standard_32_config \
3092 DK1S10_mtx_ldk_20_config \
3093 DK1S10_config: unconfig
3094 @mkdir -p $(obj)include
3095 @[ -z "$(findstring _safe_32,$@)" ] || \
3096 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3097 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3099 @[ -z "$(findstring _standard_32,$@)" ] || \
3100 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3101 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3103 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3104 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3105 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3107 @[ -z "$(findstring DK1S10_config,$@)" ] || \
3108 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3109 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3111 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
3113 #########################################################################
3115 #########################################################################
3117 EP1C20_config : unconfig
3118 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3120 EP1S10_config : unconfig
3121 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3123 EP1S40_config : unconfig
3124 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3126 PK1C20_config : unconfig
3127 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3129 PCI5441_config : unconfig
3130 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3132 #========================================================================
3134 #========================================================================
3136 ml401_config: unconfig
3137 @mkdir -p $(obj)include
3138 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
3139 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3141 suzaku_config: unconfig
3142 @mkdir -p $(obj)include
3143 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3144 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3146 xupv2p_config: unconfig
3147 @mkdir -p $(obj)include
3148 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
3149 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
3151 #========================================================================
3153 #========================================================================
3155 # Analog Devices boards
3156 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3158 $(BFIN_BOARDS:%=%_config) : unconfig
3159 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3165 #========================================================================
3167 #========================================================================
3169 atngw100_config : unconfig
3170 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3172 atstk1002_config : unconfig
3173 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3175 atstk1003_config : unconfig
3176 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3178 atstk1004_config : unconfig
3179 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3181 atstk1006_config : unconfig
3182 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3184 favr-32-ezkit_config : unconfig
3185 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3187 hammerhead_config : unconfig
3188 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3190 mimc200_config : unconfig
3191 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3193 #========================================================================
3195 #========================================================================
3197 #########################################################################
3198 ## sh2 (Renesas SuperH)
3199 #########################################################################
3200 rsk7203_config: unconfig
3202 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3203 @./mkconfig -a $(@:_config=) sh sh2 rsk7203 renesas
3205 #########################################################################
3206 ## sh3 (Renesas SuperH)
3207 #########################################################################
3209 mpr2_config: unconfig
3210 @mkdir -p $(obj)include
3211 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3212 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3214 ms7720se_config: unconfig
3215 @mkdir -p $(obj)include
3216 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3217 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3219 #########################################################################
3220 ## sh4 (Renesas SuperH)
3221 #########################################################################
3223 MigoR_config : unconfig
3224 @mkdir -p $(obj)include
3225 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3226 @./mkconfig -a $(@:_config=) sh sh4 MigoR renesas
3228 ms7750se_config: unconfig
3229 @mkdir -p $(obj)include
3230 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3231 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3233 ms7722se_config : unconfig
3234 @mkdir -p $(obj)include
3235 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3236 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3238 r2dplus_config : unconfig
3239 @mkdir -p $(obj)include
3240 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3241 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3243 r7780mp_config: unconfig
3244 @mkdir -p $(obj)include
3245 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3246 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3248 sh7763rdp_config : unconfig
3249 @mkdir -p $(obj)include
3250 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3251 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3253 sh7785lcr_config : unconfig
3255 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3256 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr renesas
3258 ap325rxa_config : unconfig
3259 @mkdir -p $(obj)include
3260 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3261 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3263 #========================================================================
3265 #========================================================================
3267 #########################################################################
3269 #########################################################################
3271 # Gaisler GR-XC3S-1500 board
3272 gr_xc3s_1500_config : unconfig
3273 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3275 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3276 gr_cpci_ax2000_config : unconfig
3277 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3279 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3280 # Development board Stratix II edition, FPGA Device EP2S60.
3281 gr_ep2s60_config: unconfig
3282 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3284 # Gaisler LEON3 GRSIM simulator
3285 grsim_config : unconfig
3286 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3288 #########################################################################
3290 #########################################################################
3292 # Gaisler LEON2 GRSIM simulator
3293 grsim_leon2_config : unconfig
3294 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3296 #########################################################################
3297 #########################################################################
3298 #########################################################################
3301 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3302 $(obj)examples/hello_world $(obj)examples/interrupt \
3303 $(obj)examples/mem_to_mem_idma2intr \
3304 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3305 $(obj)examples/test_burst $(obj)examples/timer
3306 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3307 $(obj)tools/env/{fw_printenv,fw_setenv} \
3308 $(obj)tools/envcrc \
3309 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3310 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3311 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3312 $(obj)tools/ncb $(obj)tools/ubsha1
3313 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3314 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3315 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3316 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3317 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3318 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3319 @rm -f $(obj)include/bmp_logo.h
3320 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3321 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3322 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3323 @find $(OBJTREE) -type f \
3324 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3325 -o -name '*.o' -o -name '*.a' \) -print \
3329 @find $(OBJTREE) -type f \( -name .depend \
3330 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3333 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3334 $(obj)cscope.* $(obj)*.*~
3335 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3336 @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3337 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3338 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3339 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3340 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3341 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3342 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3343 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3345 ifeq ($(OBJTREE),$(SRCTREE))
3347 distclean: clobber unconfig
3350 distclean: clobber unconfig
3355 F=`basename $(TOPDIR)` ; cd .. ; \
3356 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3358 #########################################################################