2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 ifneq "$(SUBLEVEL)" ""
29 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
33 TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34 VERSION_FILE = $(obj)include/version_autogenerated.h
36 HOSTARCH := $(shell uname -m | \
45 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
46 sed -e 's/\(cygwin\).*/cygwin/')
48 # Set shell to bash if possible, otherwise fall back to sh
49 SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
53 export HOSTARCH HOSTOS SHELL
55 # Deal with colliding definitions from tcsh etc.
58 #########################################################################
59 # Allow for silent builds
60 ifeq (,$(findstring s,$(MAKEFLAGS)))
66 #########################################################################
68 # U-boot build supports producing a object files to the separate external
69 # directory. Two use cases are supported:
71 # 1) Add O= to the make command line
72 # 'make O=/tmp/build all'
74 # 2) Set environement variable BUILD_DIR to point to the desired location
75 # 'export BUILD_DIR=/tmp/build'
78 # The second approach can also be used with a MAKEALL script
79 # 'export BUILD_DIR=/tmp/build'
82 # Command line 'O=' setting overrides BUILD_DIR environent variable.
84 # When none of the above methods is used the local build is performed and
85 # the object files are placed in the source directory.
89 ifeq ("$(origin O)", "command line")
95 saved-output := $(BUILD_DIR)
97 # Attempt to create a output directory.
98 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
100 # Verify if it was successful.
101 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103 endif # ifneq ($(BUILD_DIR),)
105 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
109 export TOPDIR SRCTREE OBJTREE
111 MKCONFIG := $(SRCTREE)/mkconfig
114 ifneq ($(OBJTREE),$(SRCTREE))
119 # $(obj) and (src) are defined in config.mk but here in main Makefile
120 # we also need them before config.mk is included which is the case for
121 # some targets like unconfig, clean, clobber, distclean, etc.
122 ifneq ($(OBJTREE),$(SRCTREE))
131 # Make sure CDPATH settings don't interfere
134 #########################################################################
136 ifeq ($(ARCH),powerpc)
140 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
142 # load ARCH, BOARD, and CPU configuration
143 include $(obj)include/config.mk
144 export ARCH CPU BOARD VENDOR SOC
147 ifeq ($(HOSTARCH),$(ARCH))
151 CROSS_COMPILE = ppc_8xx-
154 CROSS_COMPILE = arm-linux-
157 CROSS_COMPILE = i386-linux-
160 CROSS_COMPILE = mips_4KC-
163 CROSS_COMPILE = nios-elf-
166 CROSS_COMPILE = nios2-elf-
169 CROSS_COMPILE = m68k-elf-
171 ifeq ($(ARCH),microblaze)
174 ifeq ($(ARCH),blackfin)
175 CROSS_COMPILE = bfin-uclinux-
178 CROSS_COMPILE = avr32-linux-
181 CROSS_COMPILE = sh4-linux-
184 CROSS_COMPILE = sparc-elf-
186 endif # HOSTARCH,ARCH
187 endif # CROSS_COMPILE
191 # load other configuration
192 include $(TOPDIR)/config.mk
194 #########################################################################
195 # U-Boot objects....order is important (i.e. start must be first)
197 OBJS = cpu/$(CPU)/start.o
199 OBJS += cpu/$(CPU)/start16.o
200 OBJS += cpu/$(CPU)/reset.o
203 OBJS += cpu/$(CPU)/resetvec.o
205 ifeq ($(CPU),mpc85xx)
206 OBJS += cpu/$(CPU)/resetvec.o
209 OBJS := $(addprefix $(obj),$(OBJS))
211 LIBS = lib_generic/libgeneric.a
212 LIBS += lib_generic/lzma/liblzma.a
213 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
214 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
215 LIBS += cpu/$(CPU)/lib$(CPU).a
217 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
220 LIBS += cpu/ixp/npe/libnpe.a
222 LIBS += lib_$(ARCH)/lib$(ARCH).a
223 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
224 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
226 LIBS += disk/libdisk.a
227 LIBS += drivers/bios_emulator/libatibiosemu.a
228 LIBS += drivers/block/libblock.a
229 LIBS += drivers/dma/libdma.a
230 LIBS += drivers/fpga/libfpga.a
231 LIBS += drivers/hwmon/libhwmon.a
232 LIBS += drivers/i2c/libi2c.a
233 LIBS += drivers/input/libinput.a
234 LIBS += drivers/misc/libmisc.a
235 LIBS += drivers/mmc/libmmc.a
236 LIBS += drivers/mtd/libmtd.a
237 LIBS += drivers/mtd/nand/libnand.a
238 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
239 LIBS += drivers/mtd/onenand/libonenand.a
240 LIBS += drivers/mtd/ubi/libubi.a
241 LIBS += drivers/mtd/spi/libspi_flash.a
242 LIBS += drivers/net/libnet.a
243 LIBS += drivers/net/phy/libphy.a
244 LIBS += drivers/net/sk98lin/libsk98lin.a
245 LIBS += drivers/pci/libpci.a
246 LIBS += drivers/pcmcia/libpcmcia.a
247 LIBS += drivers/spi/libspi.a
248 ifeq ($(CPU),mpc83xx)
249 LIBS += drivers/qe/qe.a
251 ifeq ($(CPU),mpc85xx)
252 LIBS += drivers/qe/qe.a
253 LIBS += cpu/mpc8xxx/ddr/libddr.a
254 TAG_SUBDIRS += cpu/mpc8xxx
256 ifeq ($(CPU),mpc86xx)
257 LIBS += cpu/mpc8xxx/ddr/libddr.a
258 TAG_SUBDIRS += cpu/mpc8xxx
260 LIBS += drivers/rtc/librtc.a
261 LIBS += drivers/serial/libserial.a
262 LIBS += drivers/usb/libusb.a
263 LIBS += drivers/video/libvideo.a
264 LIBS += common/libcommon.a
265 LIBS += libfdt/libfdt.a
267 LIBS += post/libpost.a
269 LIBS := $(addprefix $(obj),$(LIBS))
270 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
272 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
273 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
276 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
278 # The "tools" are needed early, so put this first
279 # Don't include stuff already done in $(LIBS)
286 ifeq ($(CONFIG_NAND_U_BOOT),y)
288 U_BOOT_NAND = $(obj)u-boot-nand.bin
291 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
292 ONENAND_IPL = onenand_ipl
293 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
296 __OBJS := $(subst $(obj),,$(OBJS))
297 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
299 #########################################################################
300 #########################################################################
302 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
303 ifeq ($(ARCH),blackfin)
304 ALL += $(obj)u-boot.ldr
309 $(obj)u-boot.hex: $(obj)u-boot
310 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
312 $(obj)u-boot.srec: $(obj)u-boot
313 $(OBJCOPY) -O srec $< $@
315 $(obj)u-boot.bin: $(obj)u-boot
316 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
318 $(obj)u-boot.ldr: $(obj)u-boot
319 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
321 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
322 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
324 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
325 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
327 $(obj)u-boot.img: $(obj)u-boot.bin
328 ./tools/mkimage -A $(ARCH) -T firmware -C none \
329 -a $(TEXT_BASE) -e 0 \
330 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
331 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
334 $(obj)u-boot.sha1: $(obj)u-boot.bin
335 $(obj)tools/ubsha1 $(obj)u-boot.bin
337 $(obj)u-boot.dis: $(obj)u-boot
338 $(OBJDUMP) -d $< > $@
340 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
341 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
342 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
343 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
344 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
345 -Map u-boot.map -o u-boot
347 $(OBJS): depend $(obj)include/autoconf.mk
348 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
350 $(LIBS): depend $(obj)include/autoconf.mk
351 $(MAKE) -C $(dir $(subst $(obj),,$@))
353 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
354 $(MAKE) -C $(dir $(subst $(obj),,$@))
356 $(SUBDIRS): depend $(obj)include/autoconf.mk
359 $(LDSCRIPT): depend $(obj)include/autoconf.mk
360 $(MAKE) -C $(dir $@) $(notdir $@)
362 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
363 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
365 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
366 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
368 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
369 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
371 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
372 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
373 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
376 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
377 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
378 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
381 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
382 @date +'#define U_BOOT_TIME "%T"' >> $@
385 $(MAKE) -C tools/gdb all || exit 1
388 $(MAKE) -C tools/updater all || exit 1
391 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
393 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE)
394 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
396 TAG_SUBDIRS += include
397 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
398 TAG_SUBDIRS += cpu/$(CPU)
399 TAG_SUBDIRS += lib_$(ARCH)
400 TAG_SUBDIRS += fs/cramfs
401 TAG_SUBDIRS += fs/fat
402 TAG_SUBDIRS += fs/fdos
403 TAG_SUBDIRS += fs/jffs2
404 TAG_SUBDIRS += fs/yaffs2
407 TAG_SUBDIRS += common
408 TAG_SUBDIRS += drivers/bios_emulator
409 TAG_SUBDIRS += drivers/block
410 TAG_SUBDIRS += drivers/hwmon
411 TAG_SUBDIRS += drivers/i2c
412 TAG_SUBDIRS += drivers/input
413 TAG_SUBDIRS += drivers/misc
414 TAG_SUBDIRS += drivers/mmc
415 TAG_SUBDIRS += drivers/mtd
416 TAG_SUBDIRS += drivers/mtd/nand
417 TAG_SUBDIRS += drivers/mtd/nand_legacy
418 TAG_SUBDIRS += drivers/mtd/onenand
419 TAG_SUBDIRS += drivers/mtd/spi
420 TAG_SUBDIRS += drivers/net
421 TAG_SUBDIRS += drivers/net/sk98lin
422 TAG_SUBDIRS += drivers/pci
423 TAG_SUBDIRS += drivers/pcmcia
424 TAG_SUBDIRS += drivers/qe
425 TAG_SUBDIRS += drivers/rtc
426 TAG_SUBDIRS += drivers/serial
427 TAG_SUBDIRS += drivers/spi
428 TAG_SUBDIRS += drivers/usb
429 TAG_SUBDIRS += drivers/video
432 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
433 -name '*.[ch]' -print`
436 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
437 -name '*.[ch]' -print`
439 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
443 $(obj)System.map: $(obj)u-boot
445 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
446 sort > $(obj)System.map
449 # Auto-generate the autoconf.mk file (which is included by all makefiles)
451 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
452 # the dep file is only include in this top level makefile to determine when
453 # to regenerate the autoconf.mk file.
454 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
455 @$(XECHO) Generating $@ ; \
457 : Generate the dependancies ; \
458 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
459 -MQ $(obj)include/autoconf.mk include/common.h > $@
461 $(obj)include/autoconf.mk: $(obj)include/config.h
462 @$(XECHO) Generating $@ ; \
464 : Extract the config macros ; \
465 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
466 sed -n -f tools/scripts/define2mk.sed > $@
468 sinclude $(obj)include/autoconf.mk.dep
470 #########################################################################
472 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
473 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
474 $(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
475 dep tags ctags etags cscope $(obj)System.map:
476 @echo "System not configured - see README" >&2
482 git log --no-merges U-Boot-1_1_5.. | \
483 unexpand -a | sed -e 's/\s\s*$$//' > $@
485 include/license.h: tools/bin2header COPYING
486 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
487 #########################################################################
490 @rm -f $(obj)include/config.h $(obj)include/config.mk \
491 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
492 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
494 #========================================================================
496 #========================================================================
498 #########################################################################
500 #########################################################################
502 canmb_config: unconfig
503 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
505 cmi_mpc5xx_config: unconfig
506 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
508 PATI_config: unconfig
509 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
511 #########################################################################
513 #########################################################################
516 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
518 BC3450_config: unconfig
519 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
521 cm5200_config: unconfig
522 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
524 cpci5200_config: unconfig
525 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
527 hmi1001_config: unconfig
528 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
531 Lite5200_LOWBOOT_config \
532 Lite5200_LOWBOOT08_config \
533 icecube_5200_config \
534 icecube_5200_LOWBOOT_config \
535 icecube_5200_LOWBOOT08_config \
536 icecube_5200_DDR_config \
537 icecube_5200_DDR_LOWBOOT_config \
538 icecube_5200_DDR_LOWBOOT08_config \
539 icecube_5100_config: unconfig
540 @mkdir -p $(obj)include
541 @mkdir -p $(obj)board/icecube
542 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
543 { if [ "$(findstring DDR,$@)" ] ; \
544 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
545 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
547 $(XECHO) "... with LOWBOOT configuration" ; \
549 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
550 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
551 echo "... with 8 MB flash only" ; \
552 $(XECHO) "... with LOWBOOT configuration" ; \
554 @[ -z "$(findstring DDR,$@)" ] || \
555 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
556 $(XECHO) "... DDR memory revision" ; \
558 @[ -z "$(findstring 5200,$@)" ] || \
559 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
560 $(XECHO) "... with MPC5200 processor" ; \
562 @[ -z "$(findstring 5100,$@)" ] || \
563 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
564 $(XECHO) "... with MGT5100 processor" ; \
566 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
568 jupiter_config: unconfig
569 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
571 inka4x0_config: unconfig
572 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
575 lite5200b_PM_config \
576 lite5200b_LOWBOOT_config: unconfig
577 @mkdir -p $(obj)include
578 @mkdir -p $(obj)board/icecube
579 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
580 @ $(XECHO) "... DDR memory revision"
581 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
582 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
583 @[ -z "$(findstring _PM_,$@)" ] || \
584 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
585 $(XECHO) "... with power management (low-power mode) support" ; \
587 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
588 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
589 $(XECHO) "... with LOWBOOT configuration" ; \
591 @ $(XECHO) "... with MPC5200B processor"
592 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
595 mcc200_SDRAM_config \
596 mcc200_highboot_config \
597 mcc200_COM12_config \
598 mcc200_COM12_SDRAM_config \
599 mcc200_COM12_highboot_config \
600 mcc200_COM12_highboot_SDRAM_config \
601 mcc200_highboot_SDRAM_config \
604 prs200_highboot_config \
605 prs200_highboot_DDR_config: unconfig
606 @mkdir -p $(obj)include
607 @mkdir -p $(obj)board/mcc200
608 @[ -n "$(findstring highboot,$@)" ] || \
609 { $(XECHO) "... with lowboot configuration" ; \
611 @[ -z "$(findstring highboot,$@)" ] || \
612 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
613 $(XECHO) "... with highboot configuration" ; \
615 @[ -n "$(findstring _SDRAM,$@)" ] || \
616 { if [ -n "$(findstring mcc200,$@)" ]; \
618 $(XECHO) "... with DDR" ; \
620 if [ -n "$(findstring _DDR,$@)" ];\
622 $(XECHO) "... with DDR" ; \
624 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
625 $(XECHO) "... with SDRAM" ; \
629 @[ -z "$(findstring _SDRAM,$@)" ] || \
630 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
631 $(XECHO) "... with SDRAM" ; \
633 @[ -z "$(findstring COM12,$@)" ] || \
634 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
635 $(XECHO) "... with console on COM12" ; \
637 @[ -z "$(findstring prs200,$@)" ] || \
638 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
640 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
642 mecp5200_config: unconfig
643 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
645 motionpro_config: unconfig
646 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
648 mucmc52_config: unconfig
649 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
651 munices_config: unconfig
652 @$(MKCONFIG) munices ppc mpc5xxx munices
654 MVBC_P_config: unconfig
655 @mkdir -p $(obj)include
656 @mkdir -p $(obj)board/mvbc_p
657 @ >$(obj)include/config.h
658 @[ -z "$(findstring MVBC_P,$@)" ] || \
659 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
660 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
662 o2dnt_config: unconfig
663 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
665 pf5200_config: unconfig
666 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
670 PM520_ROMBOOT_config \
671 PM520_ROMBOOT_DDR_config: unconfig
672 @mkdir -p $(obj)include
673 @[ -z "$(findstring DDR,$@)" ] || \
674 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
675 $(XECHO) "... DDR memory revision" ; \
677 @[ -z "$(findstring ROMBOOT,$@)" ] || \
678 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
679 $(XECHO) "... booting from 8-bit flash" ; \
681 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
683 smmaco4_config: unconfig
684 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
686 spieval_config: unconfig
687 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
690 TB5200_config: unconfig
691 @mkdir -p $(obj)include
692 @[ -z "$(findstring _B,$@)" ] || \
693 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
694 $(XECHO) "... with MPC5200B processor" ; \
696 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
700 TOP5200_config: unconfig
701 @mkdir -p $(obj)include
702 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
703 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
707 Total5200_lowboot_config \
708 Total5200_Rev2_config \
709 Total5200_Rev2_lowboot_config: unconfig
710 @mkdir -p $(obj)include
711 @mkdir -p $(obj)board/total5200
712 @[ -z "$(findstring 5100,$@)" ] || \
713 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
714 $(XECHO) "... with MGT5100 processor" ; \
716 @[ -z "$(findstring 5200,$@)" ] || \
717 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
718 $(XECHO) "... with MPC5200 processor" ; \
720 @[ -n "$(findstring Rev,$@)" ] || \
721 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
722 $(XECHO) "... revision 1 board" ; \
724 @[ -z "$(findstring Rev2_,$@)" ] || \
725 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
726 $(XECHO) "... revision 2 board" ; \
728 @[ -z "$(findstring lowboot_,$@)" ] || \
729 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
730 $(XECHO) "... with lowboot configuration" ; \
732 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
735 cam5200_niosflash_config \
739 TQM5200S_HIGHBOOT_config \
741 TQM5200_B_HIGHBOOT_config \
743 TQM5200_STK100_config: unconfig
744 @mkdir -p $(obj)include
745 @mkdir -p $(obj)board/tqc/tqm5200
746 @[ -z "$(findstring cam5200,$@)" ] || \
747 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
748 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
749 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
750 $(XECHO) "... TQM5200S on Cam5200" ; \
752 @[ -z "$(findstring niosflash,$@)" ] || \
753 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
754 $(XECHO) "... with NIOS flash driver" ; \
756 @[ -z "$(findstring fo300,$@)" ] || \
757 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
758 $(XECHO) "... TQM5200 on FO300" ; \
760 @[ -z "$(findstring MiniFAP,$@)" ] || \
761 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
762 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
764 @[ -z "$(findstring STK100,$@)" ] || \
765 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
766 $(XECHO) "... on a STK52XX.100 base board" ; \
768 @[ -z "$(findstring TQM5200_B,$@)" ] || \
769 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
771 @[ -z "$(findstring TQM5200S,$@)" ] || \
772 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
773 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
775 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
776 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
778 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
780 uc101_config: unconfig
781 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
783 v38b_config: unconfig
784 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
786 #########################################################################
788 #########################################################################
791 ads5121_rev2_config \
793 @mkdir -p $(obj)include
794 @if [ "$(findstring rev2,$@)" ] ; then \
795 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
797 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
800 #########################################################################
802 #########################################################################
808 @mkdir -p $(obj)include
809 $(if $(findstring AdderII,$@), \
810 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
811 @$(MKCONFIG) -a Adder ppc mpc8xx adder
813 AdderUSB_config: unconfig
814 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
821 FADS860T_config: unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
824 AMX860_config : unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
827 c2mon_config: unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
833 cogent_mpc8xx_config: unconfig
834 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
836 ELPT860_config: unconfig
837 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
839 EP88x_config: unconfig
840 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
842 ESTEEM192E_config: unconfig
843 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
845 ETX094_config : unconfig
846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
848 FLAGADM_config: unconfig
849 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
851 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
854 GEN860T_config: unconfig
855 @mkdir -p $(obj)include
856 @[ -z "$(findstring _SC,$@)" ] || \
857 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
858 $(XECHO) "With reduced H/W feature set (SC)..." ; \
860 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
862 GENIETV_config: unconfig
863 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
866 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
868 hermes_config : unconfig
869 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
871 HMI10_config : unconfig
872 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
874 IAD210_config: unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
877 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
879 ICU862_100MHz_config \
880 ICU862_config: unconfig
881 @mkdir -p $(obj)include
882 @[ -z "$(findstring _100MHz,$@)" ] || \
883 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
884 $(XECHO) "... with 100MHz system clock" ; \
886 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
888 IP860_config : unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
893 IVML24_config: unconfig
894 @mkdir -p $(obj)include
895 @[ -z "$(findstring IVML24_config,$@)" ] || \
896 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
898 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
899 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
901 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
902 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
904 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
908 IVMS8_config: unconfig
909 @mkdir -p $(obj)include
910 @[ -z "$(findstring IVMS8_config,$@)" ] || \
911 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
913 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
914 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
916 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
917 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
919 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
921 KUP4K_config : unconfig
922 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
924 KUP4X_config : unconfig
925 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
927 LANTEC_config : unconfig
928 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
930 lwmon_config: unconfig
931 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
934 MBX860T_config: unconfig
935 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
937 mgsuvd_config: unconfig
938 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
940 MHPC_config: unconfig
941 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
943 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
946 NETVIA_config: unconfig
947 @mkdir -p $(obj)include
948 @[ -z "$(findstring NETVIA_config,$@)" ] || \
949 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
950 $(XECHO) "... Version 1" ; \
952 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
953 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
954 $(XECHO) "... Version 2" ; \
956 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
958 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
961 NETPHONE_config: unconfig
962 @mkdir -p $(obj)include
963 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
964 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
966 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
967 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
969 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
971 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
973 NETTA_ISDN_6412_SWAPHOOK_config \
974 NETTA_ISDN_SWAPHOOK_config \
975 NETTA_6412_SWAPHOOK_config \
976 NETTA_SWAPHOOK_config \
977 NETTA_ISDN_6412_config \
980 NETTA_config: unconfig
981 @mkdir -p $(obj)include
982 @[ -z "$(findstring ISDN_,$@)" ] || \
983 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
985 @[ -n "$(findstring ISDN_,$@)" ] || \
986 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
988 @[ -z "$(findstring 6412_,$@)" ] || \
989 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
991 @[ -n "$(findstring 6412_,$@)" ] || \
992 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
994 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
995 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
997 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
998 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
1000 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
1002 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
1005 NETTA2_config: unconfig
1006 @mkdir -p $(obj)include
1007 @[ -z "$(findstring NETTA2_config,$@)" ] || \
1008 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1010 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1011 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1013 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1017 CP850_config: unconfig
1018 @mkdir -p $(obj)include
1019 @[ -z "$(findstring CP850,$@)" ] || \
1020 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1021 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1023 @[ -z "$(findstring Rev1,$@)" ] || \
1024 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1026 @[ -z "$(findstring Rev2,$@)" ] || \
1027 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1029 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1031 NX823_config: unconfig
1032 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1034 pcu_e_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1037 QS850_config: unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1040 QS823_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1043 QS860T_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1046 quantum_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1049 R360MPI_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1052 RBC823_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1055 RPXClassic_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1058 RPXlite_config: unconfig
1059 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1061 RPXlite_DW_64_config \
1062 RPXlite_DW_LCD_config \
1063 RPXlite_DW_64_LCD_config \
1064 RPXlite_DW_NVRAM_config \
1065 RPXlite_DW_NVRAM_64_config \
1066 RPXlite_DW_NVRAM_LCD_config \
1067 RPXlite_DW_NVRAM_64_LCD_config \
1068 RPXlite_DW_config: unconfig
1069 @mkdir -p $(obj)include
1070 @[ -z "$(findstring _64,$@)" ] || \
1071 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1072 $(XECHO) "... with 64MHz system clock ..."; \
1074 @[ -z "$(findstring _LCD,$@)" ] || \
1075 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1076 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1077 $(XECHO) "... with LCD display ..."; \
1079 @[ -z "$(findstring _NVRAM,$@)" ] || \
1080 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1081 $(XECHO) "... with ENV in NVRAM ..."; \
1083 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1085 rmu_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1088 RRvision_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1091 RRvision_LCD_config: unconfig
1092 @mkdir -p $(obj)include
1093 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1094 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1095 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1097 SM850_config : unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1100 spc1920_config: unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1103 SPD823TS_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1106 stxxtc_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1109 svm_sc8xx_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1112 SXNI855T_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1115 # EMK MPC8xx based modules
1116 TOP860_config: unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1119 # Play some tricks for configuration selection
1120 # Only 855 and 860 boards may come with FEC
1121 # and only 823 boards may have LCD support
1122 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1128 TQM823L_LCD_config \
1141 virtlab2_config: unconfig
1142 @mkdir -p $(obj)include
1143 @[ -z "$(findstring _LCD,$@)" ] || \
1144 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1145 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1146 $(XECHO) "... with LCD display" ; \
1148 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1150 TTTech_config: unconfig
1151 @mkdir -p $(obj)include
1152 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1153 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1154 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1156 uc100_config : unconfig
1157 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1159 v37_config: unconfig
1160 @mkdir -p $(obj)include
1161 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1162 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1163 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1165 wtk_config: unconfig
1166 @mkdir -p $(obj)include
1167 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1168 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1169 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1171 #########################################################################
1173 #########################################################################
1174 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1176 acadia_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1179 acadia_nand_config: unconfig
1180 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1181 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1182 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1183 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1184 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1185 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1187 ADCIOP_config: unconfig
1188 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1190 alpr_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1193 AP1000_config:unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1196 APC405_config: unconfig
1197 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1199 AR405_config: unconfig
1200 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1202 ASH405_config: unconfig
1203 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1205 bamboo_config: unconfig
1206 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1208 bamboo_nand_config: unconfig
1209 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1210 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1211 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1212 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1213 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1214 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1216 bubinga_config: unconfig
1217 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1219 CANBT_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1222 # Arches, Canyonlands & Glacier use different U-Boot images
1224 canyonlands_config \
1225 glacier_config: unconfig
1226 @mkdir -p $(obj)include
1227 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1228 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1229 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1231 canyonlands_nand_config \
1232 glacier_nand_config: unconfig
1233 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1234 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1235 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1236 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1237 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1238 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1239 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1240 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1243 CATcenter_25_config \
1244 CATcenter_33_config: unconfig
1245 @mkdir -p $(obj)include
1246 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1247 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1248 @[ -z "$(findstring _25,$@)" ] || \
1249 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1250 $(XECHO) "SysClk = 25MHz" ; \
1252 @[ -z "$(findstring _33,$@)" ] || \
1253 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1254 $(XECHO) "SysClk = 33MHz" ; \
1256 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1258 CMS700_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1261 CPCI2DP_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1267 CPCI405AB_config: unconfig
1268 @mkdir -p $(obj)board/esd/cpci405
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1271 CPCIISER4_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1274 CRAYL1_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1277 csb272_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1280 csb472_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1283 DASA_SIM_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1286 DP405_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1289 DU405_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1292 DU440_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1295 ebony_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1298 ERIC_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1301 EXBITGEN_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1304 fx12mm_flash_config: unconfig
1305 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1306 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1307 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1308 > $(obj)board/avnet/fx12mm/config.tmp
1309 @echo "TEXT_BASE := 0xFFCB0000" \
1310 >> $(obj)board/avnet/fx12mm/config.tmp
1311 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1313 fx12mm_config: unconfig
1314 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1315 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1316 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1317 > $(obj)board/avnet/fx12mm/config.tmp
1318 @echo "TEXT_BASE := 0x03000000" \
1319 >> $(obj)board/avnet/fx12mm/config.tmp
1320 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1322 G2000_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1325 hcu4_config: unconfig
1326 @mkdir -p $(obj)board/netstal/common
1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1329 hcu5_config: unconfig
1330 @mkdir -p $(obj)board/netstal/common
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1333 HH405_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1336 HUB405_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1339 JSE_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1342 KAREF_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1345 katmai_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1348 # Kilauea & Haleakala images are identical (recognized via PVR)
1350 haleakala_config: unconfig
1351 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1353 kilauea_nand_config \
1354 haleakala_nand_config: unconfig
1355 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1356 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1357 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1358 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1359 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1360 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1362 korat_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1365 luan_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1368 lwmon5_config: unconfig
1369 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1371 makalu_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1374 mcu25_config: unconfig
1375 @mkdir -p $(obj)board/netstal/common
1376 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1378 METROBOX_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1381 MIP405_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1384 MIP405T_config: unconfig
1385 @mkdir -p $(obj)include
1386 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1387 @$(XECHO) "Enable subset config for MIP405T"
1388 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1390 ML2_config: unconfig
1391 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1393 ml300_config: unconfig
1394 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1396 ml507_flash_config: unconfig
1397 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1398 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1399 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1400 > $(obj)board/xilinx/ml507/config.tmp
1401 @echo "TEXT_BASE := 0xFE360000" \
1402 >> $(obj)board/xilinx/ml507/config.tmp
1403 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1405 ml507_config: unconfig
1406 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1407 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1408 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1409 > $(obj)board/xilinx/ml507/config.tmp
1410 @echo "TEXT_BASE := 0x04000000" \
1411 >> $(obj)board/xilinx/ml507/config.tmp
1412 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1414 neo_config: unconfig
1415 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1417 ocotea_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1421 ORSG_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1424 p3p440_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1427 PCI405_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1430 pcs440ep_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1433 PIP405_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1436 PLU405_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1439 PMC405_config: unconfig
1440 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1442 PMC440_config: unconfig
1443 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1445 PPChameleonEVB_config \
1446 PPChameleonEVB_BA_25_config \
1447 PPChameleonEVB_ME_25_config \
1448 PPChameleonEVB_HI_25_config \
1449 PPChameleonEVB_BA_33_config \
1450 PPChameleonEVB_ME_33_config \
1451 PPChameleonEVB_HI_33_config: unconfig
1452 @mkdir -p $(obj)include
1453 @[ -z "$(findstring EVB_BA,$@)" ] || \
1454 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1455 $(XECHO) "... BASIC model" ; \
1457 @[ -z "$(findstring EVB_ME,$@)" ] || \
1458 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1459 $(XECHO) "... MEDIUM model" ; \
1461 @[ -z "$(findstring EVB_HI,$@)" ] || \
1462 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1463 $(XECHO) "... HIGH-END model" ; \
1465 @[ -z "$(findstring _25,$@)" ] || \
1466 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1467 $(XECHO) "SysClk = 25MHz" ; \
1469 @[ -z "$(findstring _33,$@)" ] || \
1470 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1471 $(XECHO) "SysClk = 33MHz" ; \
1473 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1475 quad100hd_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1478 redwood_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1481 sbc405_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1485 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1488 rainier_config: unconfig
1489 @mkdir -p $(obj)include
1490 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1491 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1492 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1494 sequoia_nand_config \
1495 rainier_nand_config: unconfig
1496 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1497 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1498 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1499 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1500 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1501 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1502 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1503 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1505 taihu_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1508 taishan_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1511 v5fx30teval_config: unconfig
1512 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1513 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1514 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1515 > $(obj)board/avnet/v5fx30teval/config.tmp
1516 @echo "TEXT_BASE := 0x03000000" \
1517 >> $(obj)board/avnet/v5fx30teval/config.tmp
1518 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1520 v5fx30teval_flash_config: unconfig
1521 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1522 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1523 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1524 > $(obj)board/avnet/v5fx30teval/config.tmp
1525 @echo "TEXT_BASE := 0xFF1C0000" \
1526 >> $(obj)board/avnet/v5fx30teval/config.tmp
1527 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1529 VOH405_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1532 VOM405_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1536 W7OLMG_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1539 # Walnut & Sycamore images are identical (recognized via PVR)
1541 sycamore_config: unconfig
1542 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1544 WUH405_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1547 xilinx-ppc405-generic_flash_config: unconfig
1548 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1549 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1550 > $(obj)board/xilinx/ppc405-generic/config.tmp
1551 @echo "TEXT_BASE := 0xFE360000" \
1552 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1553 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1555 xilinx-ppc405-generic_config: unconfig
1556 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1557 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1558 > $(obj)board/xilinx/ppc405-generic/config.tmp
1559 @echo "TEXT_BASE := 0x04000000" \
1560 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1561 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1563 xilinx-ppc440-generic_flash_config: unconfig
1564 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1565 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1566 > $(obj)board/xilinx/ppc440-generic/config.tmp
1567 @echo "TEXT_BASE := 0xFE360000" \
1568 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1569 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1571 xilinx-ppc440-generic_config: unconfig
1572 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1573 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1574 > $(obj)board/xilinx/ppc440-generic/config.tmp
1575 @echo "TEXT_BASE := 0x04000000" \
1576 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1577 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1579 XPEDITE1K_config: unconfig
1580 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1583 yellowstone_config: unconfig
1584 @mkdir -p $(obj)include
1585 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1586 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1587 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1589 yucca_config: unconfig
1590 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1592 zeus_config: unconfig
1593 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1595 #########################################################################
1597 #########################################################################
1600 Yukon8220_config: unconfig
1601 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1603 sorcery_config: unconfig
1604 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1606 #########################################################################
1608 #########################################################################
1609 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1611 A3000_config: unconfig
1612 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1614 barco_config: unconfig
1615 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1617 BMW_config: unconfig
1618 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1621 CPC45_ROMBOOT_config: unconfig
1622 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1623 @cd $(obj)include ; \
1624 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1625 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1626 $(XECHO) "... booting from 8-bit flash" ; \
1628 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1629 $(XECHO) "... booting from 64-bit flash" ; \
1631 echo "export CONFIG_BOOT_ROM" >> config.mk;
1633 CU824_config: unconfig
1634 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1636 debris_config: unconfig
1637 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1639 eXalion_config: unconfig
1640 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1642 HIDDEN_DRAGON_config: unconfig
1643 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1645 kvme080_config: unconfig
1646 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1648 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1650 #linkstation_HDLAN_config \
1651 # Remove this line when HDLAN is fixed
1652 linkstation_HGLAN_config: unconfig
1653 @mkdir -p $(obj)include
1655 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1656 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1658 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1660 MOUSSE_config: unconfig
1661 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1663 MUSENKI_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1666 MVBLUE_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1669 OXC_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1672 PN62_config: unconfig
1673 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1675 Sandpoint8240_config: unconfig
1676 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1678 Sandpoint8245_config: unconfig
1679 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1681 sbc8240_config: unconfig
1682 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1684 SL8245_config: unconfig
1685 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1687 utx8245_config: unconfig
1688 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1690 #########################################################################
1692 #########################################################################
1694 atc_config: unconfig
1695 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1697 cogent_mpc8260_config: unconfig
1698 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1701 CPU86_ROMBOOT_config: unconfig
1702 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1703 @cd $(obj)include ; \
1704 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1705 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1706 $(XECHO) "... booting from 8-bit flash" ; \
1708 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1709 $(XECHO) "... booting from 64-bit flash" ; \
1711 echo "export CONFIG_BOOT_ROM" >> config.mk;
1714 CPU87_ROMBOOT_config: unconfig
1715 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1716 @cd $(obj)include ; \
1717 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1718 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1719 $(XECHO) "... booting from 8-bit flash" ; \
1721 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1722 $(XECHO) "... booting from 64-bit flash" ; \
1724 echo "export CONFIG_BOOT_ROM" >> config.mk;
1727 ep8248E_config : unconfig
1728 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1730 ep8260_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1733 ep82xxm_config: unconfig
1734 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1736 gw8260_config: unconfig
1737 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1739 hymod_config: unconfig
1740 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1742 IDS8247_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1745 IPHASE4539_config: unconfig
1746 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1749 ISPAN_REVB_config: unconfig
1750 @mkdir -p $(obj)include
1751 @if [ "$(findstring _REVB_,$@)" ] ; then \
1752 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1754 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1756 mgcoge_config : unconfig
1757 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1760 MPC8260ADS_lowboot_config \
1761 MPC8260ADS_33MHz_config \
1762 MPC8260ADS_33MHz_lowboot_config \
1763 MPC8260ADS_40MHz_config \
1764 MPC8260ADS_40MHz_lowboot_config \
1766 MPC8272ADS_lowboot_config \
1768 PQ2FADS_lowboot_config \
1770 PQ2FADS-VR_lowboot_config \
1772 PQ2FADS-ZU_lowboot_config \
1773 PQ2FADS-ZU_66MHz_config \
1774 PQ2FADS-ZU_66MHz_lowboot_config \
1776 @mkdir -p $(obj)include
1777 @mkdir -p $(obj)board/freescale/mpc8260ads
1778 $(if $(findstring PQ2FADS,$@), \
1779 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1780 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1781 $(if $(findstring MHz,$@), \
1782 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1783 $(if $(findstring VR,$@), \
1784 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1785 @[ -z "$(findstring lowboot_,$@)" ] || \
1786 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1787 $(XECHO) "... with lowboot configuration" ; \
1789 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1791 MPC8266ADS_config: unconfig
1792 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1794 muas3001_dev_config \
1795 muas3001_config : unconfig
1796 @mkdir -p $(obj)include
1797 @mkdir -p $(obj)board/muas3001
1798 @if [ "$(findstring dev,$@)" ] ; then \
1799 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1801 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1803 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1805 PM825_ROMBOOT_config \
1806 PM825_BIGFLASH_config \
1807 PM825_ROMBOOT_BIGFLASH_config \
1809 PM826_ROMBOOT_config \
1810 PM826_BIGFLASH_config \
1811 PM826_ROMBOOT_BIGFLASH_config: unconfig
1812 @mkdir -p $(obj)include
1813 @mkdir -p $(obj)board/pm826
1814 @if [ "$(findstring PM825_,$@)" ] ; then \
1815 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1817 >$(obj)include/config.h ; \
1819 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1820 $(XECHO) "... booting from 8-bit flash" ; \
1821 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1822 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1823 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1824 $(XECHO) "... with 32 MB Flash" ; \
1825 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1828 $(XECHO) "... booting from 64-bit flash" ; \
1829 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1830 $(XECHO) "... with 32 MB Flash" ; \
1831 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1832 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1834 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1837 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1841 PM828_ROMBOOT_config \
1842 PM828_ROMBOOT_PCI_config: unconfig
1843 @mkdir -p $(obj)include
1844 @mkdir -p $(obj)board/pm826
1845 @if [ "$(findstring _PCI_,$@)" ] ; then \
1846 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1847 $(XECHO) "... with PCI enabled" ; \
1849 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1850 $(XECHO) "... booting from 8-bit flash" ; \
1851 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1852 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1854 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1856 ppmc8260_config: unconfig
1857 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1859 Rattler8248_config \
1860 Rattler_config: unconfig
1861 @mkdir -p $(obj)include
1862 $(if $(findstring 8248,$@), \
1863 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1864 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1866 RPXsuper_config: unconfig
1867 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1869 rsdproto_config: unconfig
1870 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1872 sacsng_config: unconfig
1873 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1875 sbc8260_config: unconfig
1876 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1878 SCM_config: unconfig
1879 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1891 TQM8265_AA_config: unconfig
1892 @mkdir -p $(obj)include
1894 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1895 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1896 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1897 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1898 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1899 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1900 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1901 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1902 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1903 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1904 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1906 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1907 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1909 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1910 echo "... with $${CFREQ}MHz system clock" ; \
1911 if [ "$${CACHE}" = "yes" ] ; then \
1912 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1913 $(XECHO) "... with L2 Cache support" ; \
1915 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1916 $(XECHO) "... without L2 Cache support" ; \
1918 if [ "$${BMODE}" = "60x" ] ; then \
1919 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1920 $(XECHO) "... with 60x Bus Mode" ; \
1922 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1923 $(XECHO) "... without 60x Bus Mode" ; \
1925 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1927 TQM8272_config: unconfig
1928 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1930 VoVPN-GW_66MHz_config \
1931 VoVPN-GW_100MHz_config: unconfig
1932 @mkdir -p $(obj)include
1933 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1934 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1936 ZPC1900_config: unconfig
1937 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1939 #########################################################################
1941 #########################################################################
1944 M52277EVB_spansion_config \
1945 M52277EVB_stmicro_config : unconfig
1947 M52277EVB_config) FLASH=SPANSION;; \
1948 M52277EVB_spansion_config) FLASH=SPANSION;; \
1949 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1951 if [ "$${FLASH}" = "SPANSION" ] ; then \
1952 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1953 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1954 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1955 $(XECHO) "... with SPANSION boot..." ; \
1957 if [ "$${FLASH}" = "STMICRO" ] ; then \
1958 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1959 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1960 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1961 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1962 $(XECHO) "... with ST Micro boot..." ; \
1964 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1967 M5235EVB_Flash16_config \
1968 M5235EVB_Flash32_config: unconfig
1970 M5235EVB_config) FLASH=16;; \
1971 M5235EVB_Flash16_config) FLASH=16;; \
1972 M5235EVB_Flash32_config) FLASH=32;; \
1974 if [ "$${FLASH}" != "16" ] ; then \
1975 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1976 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1977 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1979 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1980 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1982 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1984 M5249EVB_config : unconfig
1985 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1987 M5253DEMO_config : unconfig
1988 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1990 M5253EVBE_config : unconfig
1991 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1993 cobra5272_config : unconfig
1994 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1996 EB+MCF-EV123_config : unconfig
1997 @mkdir -p $(obj)include
1998 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1999 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2000 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2002 EB+MCF-EV123_internal_config : unconfig
2003 @mkdir -p $(obj)include
2004 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2005 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2006 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2008 idmr_config : unconfig
2009 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2011 M5271EVB_config : unconfig
2012 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2014 M5272C3_config : unconfig
2015 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2017 M5275EVB_config : unconfig
2018 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2020 M5282EVB_config : unconfig
2021 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2023 M53017EVB_config : unconfig
2024 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2027 M5329BFEE_config : unconfig
2029 M5329AFEE_config) NAND=0;; \
2030 M5329BFEE_config) NAND=16;; \
2032 if [ "$${NAND}" != "0" ] ; then \
2033 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2035 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2037 M5373EVB_config : unconfig
2039 M5373EVB_config) NAND=16;; \
2041 if [ "$${NAND}" != "0" ] ; then \
2042 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2044 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2047 M54451EVB_spansion_config \
2048 M54451EVB_stmicro_config : unconfig
2050 M54451EVB_config) FLASH=SPANSION;; \
2051 M54451EVB_spansion_config) FLASH=SPANSION;; \
2052 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2054 if [ "$${FLASH}" = "SPANSION" ] ; then \
2055 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2056 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2057 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2058 $(XECHO) "... with SPANSION boot..." ; \
2060 if [ "$${FLASH}" = "STMICRO" ] ; then \
2061 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2062 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2063 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2064 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2065 $(XECHO) "... with ST Micro boot..." ; \
2067 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2068 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2071 M54455EVB_atmel_config \
2072 M54455EVB_intel_config \
2073 M54455EVB_a33_config \
2074 M54455EVB_a66_config \
2075 M54455EVB_i33_config \
2076 M54455EVB_i66_config \
2077 M54455EVB_stm33_config : unconfig
2079 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2080 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2081 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2082 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2083 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2084 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2085 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2086 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2088 if [ "$${FLASH}" = "INTEL" ] ; then \
2089 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2090 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2091 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2092 $(XECHO) "... with INTEL boot..." ; \
2094 if [ "$${FLASH}" = "ATMEL" ] ; then \
2095 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2096 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2097 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2098 $(XECHO) "... with ATMEL boot..." ; \
2100 if [ "$${FLASH}" = "STMICRO" ] ; then \
2101 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2102 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2103 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2104 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2105 $(XECHO) "... with ST Micro boot..." ; \
2107 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2108 $(XECHO) "... with $${FREQ}Hz input clock"
2109 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2117 M5475GFE_config : unconfig
2119 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2120 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2121 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2122 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2123 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2124 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2125 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2127 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2128 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2129 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2130 if [ "$${RAM1}" != "0" ] ; then \
2131 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2133 if [ "$${CODE}" != "0" ] ; then \
2134 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2136 if [ "$${VID}" == "1" ] ; then \
2137 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2139 if [ "$${USB}" == "1" ] ; then \
2140 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2142 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2151 M5485HFE_config : unconfig
2153 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2154 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2155 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2156 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2157 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2158 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2159 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2160 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2162 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2163 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2164 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2165 if [ "$${RAM1}" != "0" ] ; then \
2166 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2168 if [ "$${CODE}" != "0" ] ; then \
2169 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2171 if [ "$${VID}" == "1" ] ; then \
2172 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2174 if [ "$${USB}" == "1" ] ; then \
2175 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2177 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2179 TASREG_config : unconfig
2180 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2182 #########################################################################
2184 #########################################################################
2186 MPC8313ERDB_33_config \
2187 MPC8313ERDB_66_config \
2188 MPC8313ERDB_NAND_33_config \
2189 MPC8313ERDB_NAND_66_config: unconfig
2190 @mkdir -p $(obj)include
2191 @mkdir -p $(obj)board/freescale/mpc8313erdb
2192 @if [ "$(findstring _33_,$@)" ] ; then \
2193 $(XECHO) -n "...33M ..." ; \
2194 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2196 if [ "$(findstring _66_,$@)" ] ; then \
2197 $(XECHO) -n "...66M..." ; \
2198 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2200 if [ "$(findstring _NAND_,$@)" ] ; then \
2201 $(XECHO) -n "...NAND..." ; \
2202 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2203 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2205 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2206 @if [ "$(findstring _NAND_,$@)" ] ; then \
2207 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2210 MPC8315ERDB_config: unconfig
2211 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2213 MPC8323ERDB_config: unconfig
2214 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2216 MPC832XEMDS_config \
2217 MPC832XEMDS_HOST_33_config \
2218 MPC832XEMDS_HOST_66_config \
2219 MPC832XEMDS_SLAVE_config \
2220 MPC832XEMDS_ATM_config: unconfig
2221 @mkdir -p $(obj)include
2222 @if [ "$(findstring _HOST_,$@)" ] ; then \
2223 $(XECHO) -n "... PCI HOST " ; \
2224 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2226 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2227 $(XECHO) "...PCI SLAVE 66M" ; \
2228 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2229 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2231 if [ "$(findstring _33_,$@)" ] ; then \
2232 $(XECHO) -n "...33M ..." ; \
2233 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2234 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2236 if [ "$(findstring _66_,$@)" ] ; then \
2237 $(XECHO) -n "...66M..." ; \
2238 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2239 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2241 if [ "$(findstring _ATM_,$@)" ] ; then \
2242 $(XECHO) -n "...ATM..." ; \
2243 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2244 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2246 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2248 MPC8349EMDS_config: unconfig
2249 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2252 MPC8349ITX_LOWBOOT_config \
2253 MPC8349ITXGP_config: unconfig
2254 @mkdir -p $(obj)include
2255 @mkdir -p $(obj)board/freescale/mpc8349itx
2256 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2257 @if [ "$(findstring GP,$@)" ] ; then \
2258 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2260 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2261 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2263 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2265 MPC8360EMDS_config \
2266 MPC8360EMDS_HOST_33_config \
2267 MPC8360EMDS_HOST_66_config \
2268 MPC8360EMDS_SLAVE_config \
2269 MPC8360EMDS_ATM_config: unconfig
2270 @mkdir -p $(obj)include
2271 @if [ "$(findstring _HOST_,$@)" ] ; then \
2272 $(XECHO) -n "... PCI HOST " ; \
2273 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2275 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2276 $(XECHO) "...PCI SLAVE 66M" ; \
2277 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2278 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2280 if [ "$(findstring _33_,$@)" ] ; then \
2281 $(XECHO) -n "...33M ..." ; \
2282 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2283 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2285 if [ "$(findstring _66_,$@)" ] ; then \
2286 $(XECHO) -n "...66M..." ; \
2287 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2288 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2290 if [ "$(findstring _ATM_,$@)" ] ; then \
2291 $(XECHO) -n "...ATM..." ; \
2292 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2293 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2295 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2297 MPC8360ERDK_33_config \
2298 MPC8360ERDK_66_config \
2299 MPC8360ERDK_config: unconfig
2300 @mkdir -p $(obj)include
2301 @if [ "$(findstring _33_,$@)" ] ; then \
2302 $(XECHO) -n "... CLKIN 33MHz " ; \
2303 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2305 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2307 MPC837XEMDS_config \
2308 MPC837XEMDS_HOST_config: unconfig
2309 @mkdir -p $(obj)include
2310 @if [ "$(findstring _HOST_,$@)" ] ; then \
2311 $(XECHO) -n "... PCI HOST " ; \
2312 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2314 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2316 MPC837XERDB_config: unconfig
2317 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2319 MVBLM7_config: unconfig
2320 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2322 sbc8349_config: unconfig
2323 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2325 TQM834x_config: unconfig
2326 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2329 #########################################################################
2331 #########################################################################
2333 ATUM8548_config: unconfig
2334 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2336 MPC8536DS_config: unconfig
2337 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2339 MPC8540ADS_config: unconfig
2340 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2342 MPC8540EVAL_config \
2343 MPC8540EVAL_33_config \
2344 MPC8540EVAL_66_config \
2345 MPC8540EVAL_33_slave_config \
2346 MPC8540EVAL_66_slave_config: unconfig
2347 @mkdir -p $(obj)include
2348 @if [ "$(findstring _33_,$@)" ] ; then \
2349 $(XECHO) "... 33 MHz PCI" ; \
2351 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2352 $(XECHO) "... 66 MHz PCI" ; \
2354 if [ "$(findstring _slave_,$@)" ] ; then \
2355 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2356 $(XECHO) " slave" ; \
2358 $(XECHO) " host" ; \
2360 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2362 MPC8560ADS_config: unconfig
2363 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2365 MPC8541CDS_legacy_config \
2366 MPC8541CDS_config: unconfig
2367 @mkdir -p $(obj)include
2368 @if [ "$(findstring _legacy_,$@)" ] ; then \
2369 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2370 $(XECHO) "... legacy" ; \
2372 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2374 MPC8544DS_config: unconfig
2375 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2377 MPC8548CDS_legacy_config \
2378 MPC8548CDS_config: unconfig
2379 @mkdir -p $(obj)include
2380 @if [ "$(findstring _legacy_,$@)" ] ; then \
2381 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2382 $(XECHO) "... legacy" ; \
2384 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2386 MPC8555CDS_legacy_config \
2387 MPC8555CDS_config: unconfig
2388 @mkdir -p $(obj)include
2389 @if [ "$(findstring _legacy_,$@)" ] ; then \
2390 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2391 $(XECHO) "... legacy" ; \
2393 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2395 MPC8568MDS_config: unconfig
2396 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2398 MPC8572DS_config: unconfig
2399 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2401 PM854_config: unconfig
2402 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2404 PM856_config: unconfig
2405 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2409 sbc8540_66_config: unconfig
2410 @mkdir -p $(obj)include
2411 @if [ "$(findstring _66_,$@)" ] ; then \
2412 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2413 $(XECHO) "... 66 MHz PCI" ; \
2415 $(XECHO) "... 33 MHz PCI" ; \
2417 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2419 sbc8548_config: unconfig
2420 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2424 sbc8560_66_config: unconfig
2425 @mkdir -p $(obj)include
2426 @if [ "$(findstring _66_,$@)" ] ; then \
2427 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2428 $(XECHO) "... 66 MHz PCI" ; \
2430 $(XECHO) "... 33 MHz PCI" ; \
2432 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2434 socrates_config: unconfig
2435 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2437 stxgp3_config: unconfig
2438 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2441 stxssa_4M_config: unconfig
2442 @mkdir -p $(obj)include
2443 @if [ "$(findstring _4M_,$@)" ] ; then \
2444 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2445 $(XECHO) "... with 4 MiB flash memory" ; \
2447 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2453 TQM8560_config: unconfig
2454 @mkdir -p $(obj)include
2455 @CTYPE=$(subst TQM,,$(@:_config=)); \
2456 $(XECHO) "... TQM"$${CTYPE}; \
2457 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2458 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2459 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2460 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2461 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2463 #########################################################################
2465 #########################################################################
2467 MPC8610HPCD_config: unconfig
2468 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2470 MPC8641HPCN_36BIT_config \
2471 MPC8641HPCN_config: unconfig
2472 @mkdir -p $(obj)include
2473 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2474 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2475 $(XECHO) "... enabling 36-bit physical addressing." ; \
2477 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2479 sbc8641d_config: unconfig
2480 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2482 #########################################################################
2484 #########################################################################
2486 AmigaOneG3SE_config: unconfig
2487 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2489 BAB7xx_config: unconfig
2490 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2492 CPCI750_config: unconfig
2493 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2495 DB64360_config: unconfig
2496 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2498 DB64460_config: unconfig
2499 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2501 ELPPC_config: unconfig
2502 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2505 EVB64260_750CX_config: unconfig
2506 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2508 mpc7448hpc2_config: unconfig
2509 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2511 P3G4_config: unconfig
2512 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2515 p3m7448_config: unconfig
2516 @mkdir -p $(obj)include
2517 @if [ "$(findstring 750_,$@)" ] ; then \
2518 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2520 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2522 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2525 PCIPPC6_config: unconfig
2526 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2528 ppmc7xx_config: unconfig
2529 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2531 ZUMA_config: unconfig
2532 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2534 #========================================================================
2536 #========================================================================
2537 #########################################################################
2538 ## StrongARM Systems
2539 #########################################################################
2541 assabet_config : unconfig
2542 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2544 dnp1110_config : unconfig
2545 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2547 gcplus_config : unconfig
2548 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2550 lart_config : unconfig
2551 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2553 shannon_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2556 #########################################################################
2558 #########################################################################
2560 #########################################################################
2561 ## Atmel AT91RM9200 Systems
2562 #########################################################################
2564 at91rm9200dk_config : unconfig
2565 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2567 cmc_pu2_config : unconfig
2568 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2570 csb637_config : unconfig
2571 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2573 kb9202_config : unconfig
2574 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2576 m501sk_config : unconfig
2577 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2579 mp2usb_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2582 #########################################################################
2583 ## Atmel ARM926EJ-S Systems
2584 #########################################################################
2586 afeb9260_config: unconfig
2587 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
2589 at91cap9adk_config : unconfig
2590 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2592 at91sam9260ek_nandflash_config \
2593 at91sam9260ek_dataflash_cs0_config \
2594 at91sam9260ek_dataflash_cs1_config \
2595 at91sam9260ek_config : unconfig
2596 @if [ "$(findstring _nandflash,$@)" ] ; then \
2597 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2598 $(XECHO) "... with environment variable in NAND FLASH" ; \
2599 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2600 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2601 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2603 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2604 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2606 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2608 at91sam9261ek_nandflash_config \
2609 at91sam9261ek_dataflash_cs0_config \
2610 at91sam9261ek_dataflash_cs3_config \
2611 at91sam9261ek_config : unconfig
2612 @if [ "$(findstring _nandflash,$@)" ] ; then \
2613 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2614 $(XECHO) "... with environment variable in NAND FLASH" ; \
2615 elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
2616 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
2617 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
2619 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2620 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2622 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
2624 at91sam9263ek_nandflash_config \
2625 at91sam9263ek_dataflash_config \
2626 at91sam9263ek_dataflash_cs0_config \
2627 at91sam9263ek_config : unconfig
2628 @if [ "$(findstring _nandflash,$@)" ] ; then \
2629 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2630 $(XECHO) "... with environment variable in NAND FLASH" ; \
2632 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2633 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2635 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
2637 at91sam9rlek_nandflash_config \
2638 at91sam9rlek_dataflash_config \
2639 at91sam9rlek_dataflash_cs0_config \
2640 at91sam9rlek_config : unconfig
2641 @if [ "$(findstring _nandflash,$@)" ] ; then \
2642 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2643 $(XECHO) "... with environment variable in NAND FLASH" ; \
2645 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2646 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2648 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
2650 ########################################################################
2651 ## ARM Integrator boards - see doc/README-integrator for more info.
2652 integratorap_config \
2661 ap946es_config: unconfig
2662 @board/integratorap/split_by_variant.sh $@
2664 integratorcp_config \
2673 cp1026_config: unconfig
2674 @board/integratorcp/split_by_variant.sh $@
2676 davinci_dvevm_config : unconfig
2677 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2679 davinci_schmoogie_config : unconfig
2680 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2682 davinci_sffsdr_config : unconfig
2683 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2685 davinci_sonata_config : unconfig
2686 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2689 lpd7a404_config: unconfig
2690 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2692 mx1ads_config : unconfig
2693 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2695 mx1fs2_config : unconfig
2696 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2698 netstar_config: unconfig
2699 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2701 omap1510inn_config : unconfig
2702 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2704 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2706 omap1610inn_config \
2707 omap1610inn_cs0boot_config \
2708 omap1610inn_cs3boot_config \
2709 omap1610inn_cs_autoboot_config \
2711 omap1610h2_cs0boot_config \
2712 omap1610h2_cs3boot_config \
2713 omap1610h2_cs_autoboot_config: unconfig
2714 @mkdir -p $(obj)include
2715 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2716 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2717 $(XECHO) "... configured for CS0 boot"; \
2718 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2719 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2720 $(XECHO) "... configured for CS_AUTO boot"; \
2722 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2723 $(XECHO) "... configured for CS3 boot"; \
2725 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2727 omap5912osk_config : unconfig
2728 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2730 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2733 omap730p2_cs0boot_config \
2734 omap730p2_cs3boot_config : unconfig
2735 @mkdir -p $(obj)include
2736 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2737 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2738 $(XECHO) "... configured for CS0 boot"; \
2740 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2741 $(XECHO) "... configured for CS3 boot"; \
2743 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2745 sbc2410x_config: unconfig
2746 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2748 scb9328_config : unconfig
2749 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2751 smdk2400_config : unconfig
2752 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2754 smdk2410_config : unconfig
2755 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2757 SX1_config : unconfig
2758 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2760 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2761 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2764 trab_bigram_config \
2765 trab_bigflash_config \
2766 trab_old_config: unconfig
2767 @mkdir -p $(obj)include
2768 @mkdir -p $(obj)board/trab
2769 @[ -z "$(findstring _bigram,$@)" ] || \
2770 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2771 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2772 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2774 @[ -z "$(findstring _bigflash,$@)" ] || \
2775 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2776 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2777 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2778 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2780 @[ -z "$(findstring _old,$@)" ] || \
2781 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2782 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2783 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2784 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2786 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2788 VCMA9_config : unconfig
2789 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2791 #########################################################################
2792 # ARM supplied Versatile development boards
2793 #########################################################################
2795 cm4008_config : unconfig
2796 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2798 cm41xx_config : unconfig
2799 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2802 versatileab_config \
2803 versatilepb_config : unconfig
2804 @board/versatile/split_by_variant.sh $@
2806 voiceblue_config: unconfig
2807 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2809 #########################################################################
2811 #########################################################################
2813 B2_config : unconfig
2814 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2816 #########################################################################
2818 #########################################################################
2820 armadillo_config: unconfig
2821 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2823 ep7312_config : unconfig
2824 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2826 impa7_config : unconfig
2827 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2829 modnet50_config : unconfig
2830 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2832 evb4510_config : unconfig
2833 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2835 lpc2292sodimm_config: unconfig
2836 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2838 SMN42_config : unconfig
2839 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2841 #########################################################################
2843 #########################################################################
2845 actux1_config : unconfig
2846 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2848 actux2_config : unconfig
2849 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2851 actux3_config : unconfig
2852 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2854 actux4_config : unconfig
2855 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2857 cerf250_config : unconfig
2858 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2860 cradle_config : unconfig
2861 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2863 csb226_config : unconfig
2864 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2866 delta_config : unconfig
2867 @$(MKCONFIG) $(@:_config=) arm pxa delta
2869 innokom_config : unconfig
2870 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2872 ixdp425_config : unconfig
2873 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2875 ixdpg425_config : unconfig
2876 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2878 lubbock_config : unconfig
2879 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2881 pleb2_config : unconfig
2882 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2884 logodl_config : unconfig
2885 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2888 scpu_config: unconfig
2889 @mkdir -p $(obj)include
2890 @if [ "$(findstring scpu_,$@)" ] ; then \
2891 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2892 $(XECHO) "... on SCPU board variant" ; \
2894 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2896 pxa255_idp_config: unconfig
2897 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2899 trizepsiv_config : unconfig
2900 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2902 wepep250_config : unconfig
2903 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2905 xaeniax_config : unconfig
2906 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2908 xm250_config : unconfig
2909 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2911 xsengine_config : unconfig
2912 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2915 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2917 #########################################################################
2919 #########################################################################
2921 apollon_config : unconfig
2922 @mkdir -p $(obj)include
2923 @mkdir -p $(obj)onenand_ipl/board/apollon
2924 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2925 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2926 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2928 imx31_litekit_config : unconfig
2929 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2931 imx31_phycore_config : unconfig
2932 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2934 mx31ads_config : unconfig
2935 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2937 omap2420h4_config : unconfig
2938 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2940 #########################################################################
2942 #########################################################################
2943 smdk6400_noUSB_config \
2944 smdk6400_config : unconfig
2945 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2946 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2947 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2948 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2949 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2950 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2952 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2953 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2955 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2957 #========================================================================
2959 #========================================================================
2960 #########################################################################
2962 #########################################################################
2963 sc520_cdp_config : unconfig
2964 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2966 sc520_spunk_config : unconfig
2967 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2969 sc520_spunk_rel_config : unconfig
2970 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2972 #========================================================================
2974 #========================================================================
2975 #########################################################################
2977 #########################################################################
2979 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2981 incaip_100MHz_config \
2982 incaip_133MHz_config \
2983 incaip_150MHz_config \
2984 incaip_config: unconfig
2985 @mkdir -p $(obj)include
2986 @[ -z "$(findstring _100MHz,$@)" ] || \
2987 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2988 $(XECHO) "... with 100MHz system clock" ; \
2990 @[ -z "$(findstring _133MHz,$@)" ] || \
2991 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2992 $(XECHO) "... with 133MHz system clock" ; \
2994 @[ -z "$(findstring _150MHz,$@)" ] || \
2995 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2996 $(XECHO) "... with 150MHz system clock" ; \
2998 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3000 tb0229_config: unconfig
3001 @$(MKCONFIG) $(@:_config=) mips mips tb0229
3003 #########################################################################
3005 #########################################################################
3007 dbau1000_config : unconfig
3008 @mkdir -p $(obj)include
3009 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3010 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3012 dbau1100_config : unconfig
3013 @mkdir -p $(obj)include
3014 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3015 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3017 dbau1500_config : unconfig
3018 @mkdir -p $(obj)include
3019 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3020 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3022 dbau1550_config : unconfig
3023 @mkdir -p $(obj)include
3024 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3025 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3027 dbau1550_el_config : unconfig
3028 @mkdir -p $(obj)include
3029 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3030 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3032 gth2_config : unconfig
3033 @mkdir -p $(obj)include
3034 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3035 @$(MKCONFIG) -a gth2 mips mips gth2
3037 pb1000_config : unconfig
3038 @mkdir -p $(obj)include
3039 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3040 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3042 qemu_mips_config : unconfig
3043 @mkdir -p $(obj)include
3044 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3045 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3047 #########################################################################
3049 #########################################################################
3051 purple_config : unconfig
3052 @$(MKCONFIG) $(@:_config=) mips mips purple
3054 #========================================================================
3056 #========================================================================
3057 #########################################################################
3059 #########################################################################
3061 ADNPESC1_DNPEVA2_base_32_config \
3062 ADNPESC1_base_32_config \
3063 ADNPESC1_config: unconfig
3064 @mkdir -p $(obj)include
3065 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
3066 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3067 $(XECHO) "... DNP/EVA2 configuration" ; \
3069 @[ -z "$(findstring _base_32,$@)" ] || \
3070 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3071 $(XECHO) "... NIOS 'base_32' configuration" ; \
3073 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3074 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3075 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3077 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3079 DK1C20_safe_32_config \
3080 DK1C20_standard_32_config \
3081 DK1C20_config: unconfig
3082 @mkdir -p $(obj)include
3083 @[ -z "$(findstring _safe_32,$@)" ] || \
3084 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3085 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3087 @[ -z "$(findstring _standard_32,$@)" ] || \
3088 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3089 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3091 @[ -z "$(findstring DK1C20_config,$@)" ] || \
3092 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3093 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3095 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3097 DK1S10_safe_32_config \
3098 DK1S10_standard_32_config \
3099 DK1S10_mtx_ldk_20_config \
3100 DK1S10_config: unconfig
3101 @mkdir -p $(obj)include
3102 @[ -z "$(findstring _safe_32,$@)" ] || \
3103 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3104 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3106 @[ -z "$(findstring _standard_32,$@)" ] || \
3107 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3108 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3110 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3111 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3112 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3114 @[ -z "$(findstring DK1S10_config,$@)" ] || \
3115 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3116 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3118 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
3120 #########################################################################
3122 #########################################################################
3124 EP1C20_config : unconfig
3125 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3127 EP1S10_config : unconfig
3128 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3130 EP1S40_config : unconfig
3131 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3133 PK1C20_config : unconfig
3134 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3136 PCI5441_config : unconfig
3137 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3139 #========================================================================
3141 #========================================================================
3143 ml401_config: unconfig
3144 @mkdir -p $(obj)include
3145 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
3146 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3148 suzaku_config: unconfig
3149 @mkdir -p $(obj)include
3150 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3151 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3153 #========================================================================
3155 #========================================================================
3157 # Analog Devices boards
3158 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3160 $(BFIN_BOARDS:%=%_config) : unconfig
3161 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3167 #========================================================================
3169 #========================================================================
3171 atngw100_config : unconfig
3172 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3174 atstk1002_config : unconfig
3175 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3177 atstk1003_config : unconfig
3178 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3180 atstk1004_config : unconfig
3181 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3183 atstk1006_config : unconfig
3184 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3186 favr-32-ezkit_config : unconfig
3187 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3189 hammerhead_config : unconfig
3190 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3192 mimc200_config : unconfig
3193 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3195 #========================================================================
3197 #========================================================================
3199 #########################################################################
3200 ## sh2 (Renesas SuperH)
3201 #########################################################################
3202 rsk7203_config: unconfig
3204 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3205 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3207 #########################################################################
3208 ## sh3 (Renesas SuperH)
3209 #########################################################################
3211 mpr2_config: unconfig
3212 @mkdir -p $(obj)include
3213 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3214 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3216 ms7720se_config: unconfig
3217 @mkdir -p $(obj)include
3218 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3219 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3221 #########################################################################
3222 ## sh4 (Renesas SuperH)
3223 #########################################################################
3225 MigoR_config : unconfig
3226 @mkdir -p $(obj)include
3227 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3228 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3230 ms7750se_config: unconfig
3231 @mkdir -p $(obj)include
3232 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3233 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3235 ms7722se_config : unconfig
3236 @mkdir -p $(obj)include
3237 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3238 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3240 r2dplus_config : unconfig
3241 @mkdir -p $(obj)include
3242 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3243 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3245 r7780mp_config: unconfig
3246 @mkdir -p $(obj)include
3247 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3248 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3250 sh7763rdp_config : unconfig
3251 @mkdir -p $(obj)include
3252 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3253 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3255 sh7785lcr_config : unconfig
3257 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3258 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr renesas
3260 ap325rxa_config : unconfig
3261 @mkdir -p $(obj)include
3262 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3263 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3265 #========================================================================
3267 #========================================================================
3269 #########################################################################
3271 #########################################################################
3273 # Gaisler GR-XC3S-1500 board
3274 gr_xc3s_1500_config : unconfig
3275 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3277 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3278 gr_cpci_ax2000_config : unconfig
3279 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3281 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3282 # Development board Stratix II edition, FPGA Device EP2S60.
3283 gr_ep2s60_config: unconfig
3284 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3286 # Gaisler LEON3 GRSIM simulator
3287 grsim_config : unconfig
3288 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3290 #########################################################################
3292 #########################################################################
3294 # Gaisler LEON2 GRSIM simulator
3295 grsim_leon2_config : unconfig
3296 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3298 #########################################################################
3299 #########################################################################
3300 #########################################################################
3303 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3304 $(obj)examples/hello_world $(obj)examples/interrupt \
3305 $(obj)examples/mem_to_mem_idma2intr \
3306 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3307 $(obj)examples/test_burst $(obj)examples/timer
3308 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3309 $(obj)tools/env/{fw_printenv,fw_setenv} \
3310 $(obj)tools/envcrc \
3311 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3312 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3313 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3314 $(obj)tools/ncb $(obj)tools/ubsha1
3315 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3316 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3317 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3318 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3319 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3320 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3321 @rm -f $(obj)include/bmp_logo.h
3322 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3323 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3324 @rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3325 @find $(OBJTREE) -type f \
3326 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3327 -o -name '*.o' -o -name '*.a' \) -print \
3331 @find $(OBJTREE) -type f \( -name .depend \
3332 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3335 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3336 $(obj)cscope.* $(obj)*.*~
3337 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3338 @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3339 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3340 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3341 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3342 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3343 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3344 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3345 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3347 ifeq ($(OBJTREE),$(SRCTREE))
3349 distclean: clobber unconfig
3352 distclean: clobber unconfig
3357 F=`basename $(TOPDIR)` ; cd .. ; \
3358 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3360 #########################################################################