2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
56 #########################################################################
58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported:
61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all'
64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory.
79 ifeq ("$(origin O)", "command line")
85 saved-output := $(BUILD_DIR)
87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),)
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
104 ifneq ($(OBJTREE),$(SRCTREE))
109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE))
121 # Make sure CDPATH settings don't interfere
124 #########################################################################
126 ifeq ($(ARCH),powerpc)
130 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
132 # load ARCH, BOARD, and CPU configuration
133 include $(obj)include/config.mk
134 export ARCH CPU BOARD VENDOR SOC
137 ifeq ($(HOSTARCH),$(ARCH))
141 CROSS_COMPILE = ppc_8xx-
144 CROSS_COMPILE = arm-linux-
147 CROSS_COMPILE = i386-linux-
150 CROSS_COMPILE = mips_4KC-
153 CROSS_COMPILE = nios-elf-
156 CROSS_COMPILE = nios2-elf-
159 CROSS_COMPILE = m68k-elf-
161 ifeq ($(ARCH),microblaze)
164 ifeq ($(ARCH),blackfin)
165 CROSS_COMPILE = bfin-uclinux-
168 CROSS_COMPILE = avr32-linux-
171 CROSS_COMPILE = sh4-linux-
174 CROSS_COMPILE = sparc-elf-
176 endif # HOSTARCH,ARCH
177 endif # CROSS_COMPILE
181 # load other configuration
182 include $(TOPDIR)/config.mk
184 #########################################################################
185 # U-Boot objects....order is important (i.e. start must be first)
187 OBJS = cpu/$(CPU)/start.o
189 OBJS += cpu/$(CPU)/start16.o
190 OBJS += cpu/$(CPU)/reset.o
193 OBJS += cpu/$(CPU)/resetvec.o
195 ifeq ($(CPU),mpc85xx)
196 OBJS += cpu/$(CPU)/resetvec.o
199 OBJS := $(addprefix $(obj),$(OBJS))
201 LIBS = lib_generic/libgeneric.a
202 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
203 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
204 LIBS += cpu/$(CPU)/lib$(CPU).a
206 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
209 LIBS += cpu/ixp/npe/libnpe.a
211 LIBS += lib_$(ARCH)/lib$(ARCH).a
212 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
213 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
215 LIBS += disk/libdisk.a
216 LIBS += drivers/bios_emulator/libatibiosemu.a
217 LIBS += drivers/block/libblock.a
218 LIBS += drivers/dma/libdma.a
219 LIBS += drivers/hwmon/libhwmon.a
220 LIBS += drivers/i2c/libi2c.a
221 LIBS += drivers/input/libinput.a
222 LIBS += drivers/misc/libmisc.a
223 LIBS += drivers/mmc/libmmc.a
224 LIBS += drivers/mtd/libmtd.a
225 LIBS += drivers/mtd/nand/libnand.a
226 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
227 LIBS += drivers/mtd/onenand/libonenand.a
228 LIBS += drivers/mtd/spi/libspi_flash.a
229 LIBS += drivers/net/libnet.a
230 LIBS += drivers/net/phy/libphy.a
231 LIBS += drivers/net/sk98lin/libsk98lin.a
232 LIBS += drivers/pci/libpci.a
233 LIBS += drivers/pcmcia/libpcmcia.a
234 LIBS += drivers/spi/libspi.a
235 ifeq ($(CPU),mpc83xx)
236 LIBS += drivers/qe/qe.a
238 ifeq ($(CPU),mpc85xx)
239 LIBS += drivers/qe/qe.a
240 LIBS += cpu/mpc8xxx/ddr/libddr.a
242 ifeq ($(CPU),mpc86xx)
243 LIBS += cpu/mpc8xxx/ddr/libddr.a
245 LIBS += drivers/rtc/librtc.a
246 LIBS += drivers/serial/libserial.a
247 LIBS += drivers/usb/libusb.a
248 LIBS += drivers/video/libvideo.a
249 LIBS += common/libcommon.a
250 LIBS += libfdt/libfdt.a
252 LIBS += post/libpost.a
254 LIBS := $(addprefix $(obj),$(LIBS))
255 .PHONY : $(LIBS) $(VERSION_FILE)
257 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
258 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
261 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
263 # The "tools" are needed early, so put this first
264 # Don't include stuff already done in $(LIBS)
271 ifeq ($(CONFIG_NAND_U_BOOT),y)
273 U_BOOT_NAND = $(obj)u-boot-nand.bin
276 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
277 ONENAND_IPL = onenand_ipl
278 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
281 __OBJS := $(subst $(obj),,$(OBJS))
282 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
284 #########################################################################
285 #########################################################################
287 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
288 ifeq ($(ARCH),blackfin)
289 ALL += $(obj)u-boot.ldr
294 $(obj)u-boot.hex: $(obj)u-boot
295 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
297 $(obj)u-boot.srec: $(obj)u-boot
298 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
300 $(obj)u-boot.bin: $(obj)u-boot
301 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
303 $(obj)u-boot.ldr: $(obj)u-boot
304 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
306 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
307 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
309 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
310 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
312 $(obj)u-boot.img: $(obj)u-boot.bin
313 ./tools/mkimage -A $(ARCH) -T firmware -C none \
314 -a $(TEXT_BASE) -e 0 \
315 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
316 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
319 $(obj)u-boot.sha1: $(obj)u-boot.bin
320 $(obj)tools/ubsha1 $(obj)u-boot.bin
322 $(obj)u-boot.dis: $(obj)u-boot
323 $(OBJDUMP) -d $< > $@
325 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
326 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
327 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
328 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
329 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
330 -Map u-boot.map -o u-boot
332 $(OBJS): depend $(obj)include/autoconf.mk
333 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
335 $(LIBS): depend $(obj)include/autoconf.mk
336 $(MAKE) -C $(dir $(subst $(obj),,$@))
338 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
339 $(MAKE) -C $(dir $(subst $(obj),,$@))
341 $(SUBDIRS): depend $(obj)include/autoconf.mk
344 $(LDSCRIPT): depend $(obj)include/autoconf.mk
345 $(MAKE) -C $(dir $@) $(notdir $@)
347 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
348 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
350 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
351 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
353 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
354 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
356 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
357 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
358 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
361 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
362 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
364 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
367 $(MAKE) -C tools/gdb all || exit 1
370 $(MAKE) -C tools/updater all || exit 1
373 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
375 depend dep: $(VERSION_FILE)
376 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
378 TAG_SUBDIRS += include
379 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
380 TAG_SUBDIRS += cpu/$(CPU)
381 TAG_SUBDIRS += lib_$(ARCH)
382 TAG_SUBDIRS += fs/cramfs
383 TAG_SUBDIRS += fs/fat
384 TAG_SUBDIRS += fs/fdos
385 TAG_SUBDIRS += fs/jffs2
386 TAG_SUBDIRS += fs/yaffs2
389 TAG_SUBDIRS += common
390 TAG_SUBDIRS += drivers/bios_emulator
391 TAG_SUBDIRS += drivers/block
392 TAG_SUBDIRS += drivers/hwmon
393 TAG_SUBDIRS += drivers/i2c
394 TAG_SUBDIRS += drivers/input
395 TAG_SUBDIRS += drivers/misc
396 TAG_SUBDIRS += drivers/mmc
397 TAG_SUBDIRS += drivers/mtd
398 TAG_SUBDIRS += drivers/mtd/nand
399 TAG_SUBDIRS += drivers/mtd/nand_legacy
400 TAG_SUBDIRS += drivers/mtd/onenand
401 TAG_SUBDIRS += drivers/mtd/spi
402 TAG_SUBDIRS += drivers/net
403 TAG_SUBDIRS += drivers/net/sk98lin
404 TAG_SUBDIRS += drivers/pci
405 TAG_SUBDIRS += drivers/pcmcia
406 TAG_SUBDIRS += drivers/qe
407 TAG_SUBDIRS += drivers/rtc
408 TAG_SUBDIRS += drivers/serial
409 TAG_SUBDIRS += drivers/spi
410 TAG_SUBDIRS += drivers/usb
411 TAG_SUBDIRS += drivers/video
414 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
415 -name '*.[ch]' -print`
418 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
419 -name '*.[ch]' -print`
421 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
425 $(obj)System.map: $(obj)u-boot
427 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
428 sort > $(obj)System.map
431 # Auto-generate the autoconf.mk file (which is included by all makefiles)
433 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
434 # the dep file is only include in this top level makefile to determine when
435 # to regenerate the autoconf.mk file.
436 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
437 @$(XECHO) Generating $@ ; \
439 : Generate the dependancies ; \
440 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
441 -MQ $(obj)include/autoconf.mk include/common.h > $@
443 $(obj)include/autoconf.mk: $(obj)include/config.h
444 @$(XECHO) Generating $@ ; \
446 : Extract the config macros ; \
447 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
448 sed -n -f tools/scripts/define2mk.sed > $@
450 sinclude $(obj)include/autoconf.mk.dep
452 #########################################################################
454 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
455 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
456 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
457 dep tags ctags etags cscope $(obj)System.map:
458 @echo "System not configured - see README" >&2
464 git log --no-merges U-Boot-1_1_5.. | \
465 unexpand -a | sed -e 's/\s\s*$$//' > $@
467 include/license.h: tools/bin2header COPYING
468 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
469 #########################################################################
472 @rm -f $(obj)include/config.h $(obj)include/config.mk \
473 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
474 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
476 #========================================================================
478 #========================================================================
480 #########################################################################
482 #########################################################################
484 canmb_config: unconfig
485 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
487 cmi_mpc5xx_config: unconfig
488 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
490 PATI_config: unconfig
491 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
493 #########################################################################
495 #########################################################################
498 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
500 BC3450_config: unconfig
501 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
503 cm5200_config: unconfig
504 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
506 cpci5200_config: unconfig
507 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
509 hmi1001_config: unconfig
510 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
513 Lite5200_LOWBOOT_config \
514 Lite5200_LOWBOOT08_config \
515 icecube_5200_config \
516 icecube_5200_LOWBOOT_config \
517 icecube_5200_LOWBOOT08_config \
518 icecube_5200_DDR_config \
519 icecube_5200_DDR_LOWBOOT_config \
520 icecube_5200_DDR_LOWBOOT08_config \
521 icecube_5100_config: unconfig
522 @mkdir -p $(obj)include
523 @mkdir -p $(obj)board/icecube
524 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
525 { if [ "$(findstring DDR,$@)" ] ; \
526 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
527 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
529 $(XECHO) "... with LOWBOOT configuration" ; \
531 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
532 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
533 echo "... with 8 MB flash only" ; \
534 $(XECHO) "... with LOWBOOT configuration" ; \
536 @[ -z "$(findstring DDR,$@)" ] || \
537 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
538 $(XECHO) "... DDR memory revision" ; \
540 @[ -z "$(findstring 5200,$@)" ] || \
541 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
542 $(XECHO) "... with MPC5200 processor" ; \
544 @[ -z "$(findstring 5100,$@)" ] || \
545 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
546 $(XECHO) "... with MGT5100 processor" ; \
548 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
550 jupiter_config: unconfig
551 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
553 inka4x0_config: unconfig
554 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
557 lite5200b_PM_config \
558 lite5200b_LOWBOOT_config: unconfig
559 @mkdir -p $(obj)include
560 @mkdir -p $(obj)board/icecube
561 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
562 @ $(XECHO) "... DDR memory revision"
563 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
564 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
565 @[ -z "$(findstring _PM_,$@)" ] || \
566 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
567 $(XECHO) "... with power management (low-power mode) support" ; \
569 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
570 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
571 $(XECHO) "... with LOWBOOT configuration" ; \
573 @ $(XECHO) "... with MPC5200B processor"
574 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
577 mcc200_SDRAM_config \
578 mcc200_highboot_config \
579 mcc200_COM12_config \
580 mcc200_COM12_SDRAM_config \
581 mcc200_COM12_highboot_config \
582 mcc200_COM12_highboot_SDRAM_config \
583 mcc200_highboot_SDRAM_config \
586 prs200_highboot_config \
587 prs200_highboot_DDR_config: unconfig
588 @mkdir -p $(obj)include
589 @mkdir -p $(obj)board/mcc200
590 @[ -n "$(findstring highboot,$@)" ] || \
591 { $(XECHO) "... with lowboot configuration" ; \
593 @[ -z "$(findstring highboot,$@)" ] || \
594 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
595 $(XECHO) "... with highboot configuration" ; \
597 @[ -n "$(findstring _SDRAM,$@)" ] || \
598 { if [ -n "$(findstring mcc200,$@)" ]; \
600 $(XECHO) "... with DDR" ; \
602 if [ -n "$(findstring _DDR,$@)" ];\
604 $(XECHO) "... with DDR" ; \
606 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
607 $(XECHO) "... with SDRAM" ; \
611 @[ -z "$(findstring _SDRAM,$@)" ] || \
612 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
613 $(XECHO) "... with SDRAM" ; \
615 @[ -z "$(findstring COM12,$@)" ] || \
616 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
617 $(XECHO) "... with console on COM12" ; \
619 @[ -z "$(findstring prs200,$@)" ] || \
620 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
622 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
624 mecp5200_config: unconfig
625 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
627 motionpro_config: unconfig
628 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
630 mucmc52_config: unconfig
631 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
633 munices_config: unconfig
634 @$(MKCONFIG) munices ppc mpc5xxx munices
636 MVBC_P_config: unconfig
637 @mkdir -p $(obj)include
638 @mkdir -p $(obj)board/mvbc_p
639 @ >$(obj)include/config.h
640 @[ -z "$(findstring MVBC_P,$@)" ] || \
641 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
642 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
644 o2dnt_config: unconfig
645 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
647 pf5200_config: unconfig
648 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
652 PM520_ROMBOOT_config \
653 PM520_ROMBOOT_DDR_config: unconfig
654 @mkdir -p $(obj)include
655 @[ -z "$(findstring DDR,$@)" ] || \
656 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
657 $(XECHO) "... DDR memory revision" ; \
659 @[ -z "$(findstring ROMBOOT,$@)" ] || \
660 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
661 $(XECHO) "... booting from 8-bit flash" ; \
663 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
665 smmaco4_config: unconfig
666 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
668 spieval_config: unconfig
669 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
672 TB5200_config: unconfig
673 @mkdir -p $(obj)include
674 @[ -z "$(findstring _B,$@)" ] || \
675 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
676 $(XECHO) "... with MPC5200B processor" ; \
678 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
682 TOP5200_config: unconfig
683 @mkdir -p $(obj)include
684 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
685 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
689 Total5200_lowboot_config \
690 Total5200_Rev2_config \
691 Total5200_Rev2_lowboot_config: unconfig
692 @mkdir -p $(obj)include
693 @mkdir -p $(obj)board/total5200
694 @[ -z "$(findstring 5100,$@)" ] || \
695 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
696 $(XECHO) "... with MGT5100 processor" ; \
698 @[ -z "$(findstring 5200,$@)" ] || \
699 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
700 $(XECHO) "... with MPC5200 processor" ; \
702 @[ -n "$(findstring Rev,$@)" ] || \
703 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
704 $(XECHO) "... revision 1 board" ; \
706 @[ -z "$(findstring Rev2_,$@)" ] || \
707 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
708 $(XECHO) "... revision 2 board" ; \
710 @[ -z "$(findstring lowboot_,$@)" ] || \
711 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
712 $(XECHO) "... with lowboot configuration" ; \
714 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
717 cam5200_niosflash_config \
721 TQM5200S_HIGHBOOT_config \
723 TQM5200_B_HIGHBOOT_config \
725 TQM5200_STK100_config: unconfig
726 @mkdir -p $(obj)include
727 @mkdir -p $(obj)board/tqc/tqm5200
728 @[ -z "$(findstring cam5200,$@)" ] || \
729 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
730 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
731 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
732 $(XECHO) "... TQM5200S on Cam5200" ; \
734 @[ -z "$(findstring niosflash,$@)" ] || \
735 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
736 $(XECHO) "... with NIOS flash driver" ; \
738 @[ -z "$(findstring fo300,$@)" ] || \
739 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
740 $(XECHO) "... TQM5200 on FO300" ; \
742 @[ -z "$(findstring MiniFAP,$@)" ] || \
743 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
744 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
746 @[ -z "$(findstring STK100,$@)" ] || \
747 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
748 $(XECHO) "... on a STK52XX.100 base board" ; \
750 @[ -z "$(findstring TQM5200_B,$@)" ] || \
751 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
753 @[ -z "$(findstring TQM5200S,$@)" ] || \
754 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
755 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
757 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
758 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
760 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
762 uc101_config: unconfig
763 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
765 v38b_config: unconfig
766 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
768 #########################################################################
770 #########################################################################
773 ads5121_rev2_config \
775 @mkdir -p $(obj)include
776 @if [ "$(findstring rev2,$@)" ] ; then \
777 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
779 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
782 #########################################################################
784 #########################################################################
790 @mkdir -p $(obj)include
791 $(if $(findstring AdderII,$@), \
792 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
793 @$(MKCONFIG) -a Adder ppc mpc8xx adder
795 AdderUSB_config: unconfig
796 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
803 FADS860T_config: unconfig
804 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
806 AMX860_config : unconfig
807 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
809 c2mon_config: unconfig
810 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
813 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
815 cogent_mpc8xx_config: unconfig
816 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
818 ELPT860_config: unconfig
819 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
821 EP88x_config: unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
824 ESTEEM192E_config: unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
827 ETX094_config : unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
830 FLAGADM_config: unconfig
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
833 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
836 GEN860T_config: unconfig
837 @mkdir -p $(obj)include
838 @[ -z "$(findstring _SC,$@)" ] || \
839 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
840 $(XECHO) "With reduced H/W feature set (SC)..." ; \
842 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
844 GENIETV_config: unconfig
845 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
848 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
850 hermes_config : unconfig
851 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
853 HMI10_config : unconfig
854 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
856 IAD210_config: unconfig
857 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
859 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
861 ICU862_100MHz_config \
862 ICU862_config: unconfig
863 @mkdir -p $(obj)include
864 @[ -z "$(findstring _100MHz,$@)" ] || \
865 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
866 $(XECHO) "... with 100MHz system clock" ; \
868 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
870 IP860_config : unconfig
871 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
875 IVML24_config: unconfig
876 @mkdir -p $(obj)include
877 @[ -z "$(findstring IVML24_config,$@)" ] || \
878 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
880 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
881 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
883 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
884 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
886 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
890 IVMS8_config: unconfig
891 @mkdir -p $(obj)include
892 @[ -z "$(findstring IVMS8_config,$@)" ] || \
893 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
895 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
896 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
898 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
899 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
901 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
903 KUP4K_config : unconfig
904 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
906 KUP4X_config : unconfig
907 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
909 LANTEC_config : unconfig
910 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
912 lwmon_config: unconfig
913 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
916 MBX860T_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
919 mgsuvd_config: unconfig
920 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
922 MHPC_config: unconfig
923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
925 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
928 NETVIA_config: unconfig
929 @mkdir -p $(obj)include
930 @[ -z "$(findstring NETVIA_config,$@)" ] || \
931 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
932 $(XECHO) "... Version 1" ; \
934 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
935 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
936 $(XECHO) "... Version 2" ; \
938 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
940 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
943 NETPHONE_config: unconfig
944 @mkdir -p $(obj)include
945 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
946 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
948 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
949 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
951 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
953 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
955 NETTA_ISDN_6412_SWAPHOOK_config \
956 NETTA_ISDN_SWAPHOOK_config \
957 NETTA_6412_SWAPHOOK_config \
958 NETTA_SWAPHOOK_config \
959 NETTA_ISDN_6412_config \
962 NETTA_config: unconfig
963 @mkdir -p $(obj)include
964 @[ -z "$(findstring ISDN_,$@)" ] || \
965 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
967 @[ -n "$(findstring ISDN_,$@)" ] || \
968 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
970 @[ -z "$(findstring 6412_,$@)" ] || \
971 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
973 @[ -n "$(findstring 6412_,$@)" ] || \
974 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
976 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
977 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
979 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
980 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
982 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
984 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
987 NETTA2_config: unconfig
988 @mkdir -p $(obj)include
989 @[ -z "$(findstring NETTA2_config,$@)" ] || \
990 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
992 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
993 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
995 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
999 CP850_config: unconfig
1000 @mkdir -p $(obj)include
1001 @[ -z "$(findstring CP850,$@)" ] || \
1002 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1003 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1005 @[ -z "$(findstring Rev1,$@)" ] || \
1006 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1008 @[ -z "$(findstring Rev2,$@)" ] || \
1009 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1011 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1013 NX823_config: unconfig
1014 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1016 pcu_e_config: unconfig
1017 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1019 QS850_config: unconfig
1020 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1022 QS823_config: unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1025 QS860T_config: unconfig
1026 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1028 quantum_config: unconfig
1029 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1031 R360MPI_config: unconfig
1032 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1034 RBC823_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1037 RPXClassic_config: unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1040 RPXlite_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1043 RPXlite_DW_64_config \
1044 RPXlite_DW_LCD_config \
1045 RPXlite_DW_64_LCD_config \
1046 RPXlite_DW_NVRAM_config \
1047 RPXlite_DW_NVRAM_64_config \
1048 RPXlite_DW_NVRAM_LCD_config \
1049 RPXlite_DW_NVRAM_64_LCD_config \
1050 RPXlite_DW_config: unconfig
1051 @mkdir -p $(obj)include
1052 @[ -z "$(findstring _64,$@)" ] || \
1053 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1054 $(XECHO) "... with 64MHz system clock ..."; \
1056 @[ -z "$(findstring _LCD,$@)" ] || \
1057 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1058 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1059 $(XECHO) "... with LCD display ..."; \
1061 @[ -z "$(findstring _NVRAM,$@)" ] || \
1062 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1063 $(XECHO) "... with ENV in NVRAM ..."; \
1065 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1067 rmu_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1070 RRvision_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1073 RRvision_LCD_config: unconfig
1074 @mkdir -p $(obj)include
1075 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1076 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1077 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1079 SM850_config : unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1082 spc1920_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1085 SPD823TS_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1088 stxxtc_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1091 svm_sc8xx_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1094 SXNI855T_config: unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1097 # EMK MPC8xx based modules
1098 TOP860_config: unconfig
1099 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1101 # Play some tricks for configuration selection
1102 # Only 855 and 860 boards may come with FEC
1103 # and only 823 boards may have LCD support
1104 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1110 TQM823L_LCD_config \
1123 virtlab2_config: unconfig
1124 @mkdir -p $(obj)include
1125 @[ -z "$(findstring _LCD,$@)" ] || \
1126 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1127 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1128 $(XECHO) "... with LCD display" ; \
1130 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1132 TTTech_config: unconfig
1133 @mkdir -p $(obj)include
1134 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1135 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1136 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1138 uc100_config : unconfig
1139 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1141 v37_config: unconfig
1142 @mkdir -p $(obj)include
1143 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1144 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1145 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1147 wtk_config: unconfig
1148 @mkdir -p $(obj)include
1149 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1150 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1151 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1153 #########################################################################
1155 #########################################################################
1156 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1158 acadia_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1161 acadia_nand_config: unconfig
1162 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1163 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1164 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1165 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1166 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1167 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1169 ADCIOP_config: unconfig
1170 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1172 alpr_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1175 AP1000_config:unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1178 APC405_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1181 AR405_config: unconfig
1182 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1184 ASH405_config: unconfig
1185 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1187 bamboo_config: unconfig
1188 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1190 bamboo_nand_config: unconfig
1191 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1192 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1193 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1194 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1195 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1196 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1198 bubinga_config: unconfig
1199 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1201 CANBT_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1204 # Canyonlands & Glacier use different U-Boot images
1205 canyonlands_config \
1206 glacier_config: unconfig
1207 @mkdir -p $(obj)include
1208 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1209 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1210 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1212 canyonlands_nand_config \
1213 glacier_nand_config: unconfig
1214 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1215 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1216 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1217 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1218 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1219 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1220 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1221 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1224 CATcenter_25_config \
1225 CATcenter_33_config: unconfig
1226 @mkdir -p $(obj)include
1227 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1228 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1229 @[ -z "$(findstring _25,$@)" ] || \
1230 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1231 $(XECHO) "SysClk = 25MHz" ; \
1233 @[ -z "$(findstring _33,$@)" ] || \
1234 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1235 $(XECHO) "SysClk = 33MHz" ; \
1237 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1239 CMS700_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1242 CPCI2DP_config: unconfig
1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1248 CPCI405AB_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1250 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1252 CPCIISER4_config: unconfig
1253 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1255 CRAYL1_config: unconfig
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1258 csb272_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1261 csb472_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1264 DASA_SIM_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1267 DP405_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1270 DU405_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1273 DU440_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1276 ebony_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1279 ERIC_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1282 EXBITGEN_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1285 G2000_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1288 hcu4_config: unconfig
1289 @mkdir -p $(obj)board/netstal/common
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1292 hcu5_config: unconfig
1293 @mkdir -p $(obj)board/netstal/common
1294 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1296 HH405_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1299 HUB405_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1302 JSE_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1305 KAREF_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1308 katmai_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1311 # Kilauea & Haleakala images are identical (recognized via PVR)
1313 haleakala_config: unconfig
1314 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1316 kilauea_nand_config \
1317 haleakala_nand_config: unconfig
1318 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1319 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1320 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1321 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1322 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1323 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1325 korat_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1328 luan_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1331 lwmon5_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1334 makalu_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1337 mcu25_config: unconfig
1338 @mkdir -p $(obj)board/netstal/common
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1341 METROBOX_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1344 MIP405_config: unconfig
1345 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1347 MIP405T_config: unconfig
1348 @mkdir -p $(obj)include
1349 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1350 @$(XECHO) "Enable subset config for MIP405T"
1351 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1353 ML2_config: unconfig
1354 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1356 ml300_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1359 ml507_flash_config: unconfig
1360 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1361 @cp $(obj)board/xilinx/ml507/u-boot-rom.lds $(obj)board/xilinx/ml507/u-boot.lds
1362 @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
1363 @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
1365 ml507_config: unconfig
1366 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1367 @cp $(obj)board/xilinx/ml507/u-boot-ram.lds $(obj)board/xilinx/ml507/u-boot.lds
1368 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1370 ocotea_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1374 ORSG_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1377 p3p440_config: unconfig
1378 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1380 PCI405_config: unconfig
1381 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1383 pcs440ep_config: unconfig
1384 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1386 PIP405_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1389 PLU405_config: unconfig
1390 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1392 PMC405_config: unconfig
1393 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1395 PMC440_config: unconfig
1396 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1398 PPChameleonEVB_config \
1399 PPChameleonEVB_BA_25_config \
1400 PPChameleonEVB_ME_25_config \
1401 PPChameleonEVB_HI_25_config \
1402 PPChameleonEVB_BA_33_config \
1403 PPChameleonEVB_ME_33_config \
1404 PPChameleonEVB_HI_33_config: unconfig
1405 @mkdir -p $(obj)include
1406 @[ -z "$(findstring EVB_BA,$@)" ] || \
1407 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1408 $(XECHO) "... BASIC model" ; \
1410 @[ -z "$(findstring EVB_ME,$@)" ] || \
1411 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1412 $(XECHO) "... MEDIUM model" ; \
1414 @[ -z "$(findstring EVB_HI,$@)" ] || \
1415 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1416 $(XECHO) "... HIGH-END model" ; \
1418 @[ -z "$(findstring _25,$@)" ] || \
1419 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1420 $(XECHO) "SysClk = 25MHz" ; \
1422 @[ -z "$(findstring _33,$@)" ] || \
1423 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1424 $(XECHO) "SysClk = 33MHz" ; \
1426 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1428 quad100hd_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1431 redwood_config: unconfig
1432 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1434 sbc405_config: unconfig
1435 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1438 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1441 rainier_config: unconfig
1442 @mkdir -p $(obj)include
1443 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1444 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1445 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1447 sequoia_nand_config \
1448 rainier_nand_config: unconfig
1449 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1450 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1451 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1452 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1453 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1454 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1455 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1456 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1458 taihu_config: unconfig
1459 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1461 taishan_config: unconfig
1462 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1464 VOH405_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1467 VOM405_config: unconfig
1468 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1471 W7OLMG_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1474 # Walnut & Sycamore images are identical (recognized via PVR)
1476 sycamore_config: unconfig
1477 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1479 WUH405_config: unconfig
1480 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1482 XPEDITE1K_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1486 yellowstone_config: unconfig
1487 @mkdir -p $(obj)include
1488 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1489 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1490 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1492 yucca_config: unconfig
1493 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1495 zeus_config: unconfig
1496 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1498 #########################################################################
1500 #########################################################################
1503 Yukon8220_config: unconfig
1504 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1506 sorcery_config: unconfig
1507 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1509 #########################################################################
1511 #########################################################################
1512 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1514 A3000_config: unconfig
1515 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1517 barco_config: unconfig
1518 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1520 BMW_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1524 CPC45_ROMBOOT_config: unconfig
1525 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1526 @cd $(obj)include ; \
1527 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1528 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1529 $(XECHO) "... booting from 8-bit flash" ; \
1531 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1532 $(XECHO) "... booting from 64-bit flash" ; \
1534 echo "export CONFIG_BOOT_ROM" >> config.mk;
1536 CU824_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1539 debris_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1542 eXalion_config: unconfig
1543 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1545 HIDDEN_DRAGON_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1548 kvme080_config: unconfig
1549 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1551 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1553 #linkstation_HDLAN_config \
1554 # Remove this line when HDLAN is fixed
1555 linkstation_HGLAN_config: unconfig
1556 @mkdir -p $(obj)include
1558 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1559 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1561 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1563 MOUSSE_config: unconfig
1564 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1566 MUSENKI_config: unconfig
1567 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1569 MVBLUE_config: unconfig
1570 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1572 OXC_config: unconfig
1573 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1575 PN62_config: unconfig
1576 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1578 Sandpoint8240_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1581 Sandpoint8245_config: unconfig
1582 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1584 sbc8240_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1587 SL8245_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1590 utx8245_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1593 #########################################################################
1595 #########################################################################
1597 atc_config: unconfig
1598 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1600 cogent_mpc8260_config: unconfig
1601 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1604 CPU86_ROMBOOT_config: unconfig
1605 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1606 @cd $(obj)include ; \
1607 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1608 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1609 $(XECHO) "... booting from 8-bit flash" ; \
1611 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1612 $(XECHO) "... booting from 64-bit flash" ; \
1614 echo "export CONFIG_BOOT_ROM" >> config.mk;
1617 CPU87_ROMBOOT_config: unconfig
1618 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1619 @cd $(obj)include ; \
1620 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1621 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1622 $(XECHO) "... booting from 8-bit flash" ; \
1624 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1625 $(XECHO) "... booting from 64-bit flash" ; \
1627 echo "export CONFIG_BOOT_ROM" >> config.mk;
1630 ep8248E_config : unconfig
1631 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1633 ep8260_config: unconfig
1634 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1636 ep82xxm_config: unconfig
1637 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1639 gw8260_config: unconfig
1640 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1642 hymod_config: unconfig
1643 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1645 IDS8247_config: unconfig
1646 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1648 IPHASE4539_config: unconfig
1649 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1652 ISPAN_REVB_config: unconfig
1653 @mkdir -p $(obj)include
1654 @if [ "$(findstring _REVB_,$@)" ] ; then \
1655 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1657 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1659 mgcoge_config : unconfig
1660 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1663 MPC8260ADS_lowboot_config \
1664 MPC8260ADS_33MHz_config \
1665 MPC8260ADS_33MHz_lowboot_config \
1666 MPC8260ADS_40MHz_config \
1667 MPC8260ADS_40MHz_lowboot_config \
1669 MPC8272ADS_lowboot_config \
1671 PQ2FADS_lowboot_config \
1673 PQ2FADS-VR_lowboot_config \
1675 PQ2FADS-ZU_lowboot_config \
1676 PQ2FADS-ZU_66MHz_config \
1677 PQ2FADS-ZU_66MHz_lowboot_config \
1679 @mkdir -p $(obj)include
1680 @mkdir -p $(obj)board/freescale/mpc8260ads
1681 $(if $(findstring PQ2FADS,$@), \
1682 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1683 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1684 $(if $(findstring MHz,$@), \
1685 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1686 $(if $(findstring VR,$@), \
1687 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1688 @[ -z "$(findstring lowboot_,$@)" ] || \
1689 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1690 $(XECHO) "... with lowboot configuration" ; \
1692 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1694 MPC8266ADS_config: unconfig
1695 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1697 muas3001_dev_config \
1698 muas3001_config : unconfig
1699 @mkdir -p $(obj)include
1700 @mkdir -p $(obj)board/muas3001
1701 @if [ "$(findstring dev,$@)" ] ; then \
1702 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1704 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1706 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1708 PM825_ROMBOOT_config \
1709 PM825_BIGFLASH_config \
1710 PM825_ROMBOOT_BIGFLASH_config \
1712 PM826_ROMBOOT_config \
1713 PM826_BIGFLASH_config \
1714 PM826_ROMBOOT_BIGFLASH_config: unconfig
1715 @mkdir -p $(obj)include
1716 @mkdir -p $(obj)board/pm826
1717 @if [ "$(findstring PM825_,$@)" ] ; then \
1718 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1720 >$(obj)include/config.h ; \
1722 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1723 $(XECHO) "... booting from 8-bit flash" ; \
1724 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1725 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1726 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1727 $(XECHO) "... with 32 MB Flash" ; \
1728 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1731 $(XECHO) "... booting from 64-bit flash" ; \
1732 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1733 $(XECHO) "... with 32 MB Flash" ; \
1734 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1735 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1737 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1740 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1744 PM828_ROMBOOT_config \
1745 PM828_ROMBOOT_PCI_config: unconfig
1746 @mkdir -p $(obj)include
1747 @mkdir -p $(obj)board/pm826
1748 @if [ "$(findstring _PCI_,$@)" ] ; then \
1749 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1750 $(XECHO) "... with PCI enabled" ; \
1752 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1753 $(XECHO) "... booting from 8-bit flash" ; \
1754 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1755 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1757 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1759 ppmc8260_config: unconfig
1760 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1762 Rattler8248_config \
1763 Rattler_config: unconfig
1764 @mkdir -p $(obj)include
1765 $(if $(findstring 8248,$@), \
1766 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1767 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1769 RPXsuper_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1772 rsdproto_config: unconfig
1773 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1775 sacsng_config: unconfig
1776 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1778 sbc8260_config: unconfig
1779 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1781 SCM_config: unconfig
1782 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1794 TQM8265_AA_config: unconfig
1795 @mkdir -p $(obj)include
1797 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1798 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1799 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1800 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1801 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1802 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1803 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1804 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1805 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1806 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1807 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1809 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1810 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1812 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1813 echo "... with $${CFREQ}MHz system clock" ; \
1814 if [ "$${CACHE}" = "yes" ] ; then \
1815 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1816 $(XECHO) "... with L2 Cache support" ; \
1818 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1819 $(XECHO) "... without L2 Cache support" ; \
1821 if [ "$${BMODE}" = "60x" ] ; then \
1822 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1823 $(XECHO) "... with 60x Bus Mode" ; \
1825 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1826 $(XECHO) "... without 60x Bus Mode" ; \
1828 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1830 TQM8272_config: unconfig
1831 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1833 VoVPN-GW_66MHz_config \
1834 VoVPN-GW_100MHz_config: unconfig
1835 @mkdir -p $(obj)include
1836 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1837 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1839 ZPC1900_config: unconfig
1840 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1842 #########################################################################
1844 #########################################################################
1846 M52277EVB_config: unconfig
1847 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1850 M5235EVB_Flash16_config \
1851 M5235EVB_Flash32_config: unconfig
1853 M5235EVB_config) FLASH=16;; \
1854 M5235EVB_Flash16_config) FLASH=16;; \
1855 M5235EVB_Flash32_config) FLASH=32;; \
1857 if [ "$${FLASH}" != "16" ] ; then \
1858 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1859 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1860 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1862 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1863 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1865 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1867 M5249EVB_config : unconfig
1868 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1870 M5253DEMO_config : unconfig
1871 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1873 M5253EVBE_config : unconfig
1874 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1876 cobra5272_config : unconfig
1877 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1879 EB+MCF-EV123_config : unconfig
1880 @mkdir -p $(obj)include
1881 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1882 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1883 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1885 EB+MCF-EV123_internal_config : unconfig
1886 @mkdir -p $(obj)include
1887 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1888 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1889 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1891 idmr_config : unconfig
1892 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1894 M5271EVB_config : unconfig
1895 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1897 M5272C3_config : unconfig
1898 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1900 M5275EVB_config : unconfig
1901 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1903 M5282EVB_config : unconfig
1904 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1907 M5329BFEE_config : unconfig
1909 M5329AFEE_config) NAND=0;; \
1910 M5329BFEE_config) NAND=16;; \
1912 if [ "$${NAND}" != "0" ] ; then \
1913 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1915 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1917 M5373EVB_config : unconfig
1919 M5373EVB_config) NAND=16;; \
1921 if [ "$${NAND}" != "0" ] ; then \
1922 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1924 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1927 M54451EVB_spansion_config \
1928 M54451EVB_stmicro_config : unconfig
1930 M54451EVB_config) FLASH=SPANSION;; \
1931 M54451EVB_spansion_config) FLASH=SPANSION;; \
1932 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1934 if [ "$${FLASH}" = "SPANSION" ] ; then \
1935 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1936 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1937 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1938 $(XECHO) "... with SPANSION boot..." ; \
1940 if [ "$${FLASH}" = "STMICRO" ] ; then \
1941 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1942 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1943 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1944 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1945 $(XECHO) "... with ST Micro boot..." ; \
1947 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1948 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1951 M54455EVB_atmel_config \
1952 M54455EVB_intel_config \
1953 M54455EVB_a33_config \
1954 M54455EVB_a66_config \
1955 M54455EVB_i33_config \
1956 M54455EVB_i66_config \
1957 M54455EVB_stm33_config : unconfig
1959 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1960 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1961 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1962 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1963 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1964 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1965 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1966 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1968 if [ "$${FLASH}" = "INTEL" ] ; then \
1969 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1970 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1971 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1972 $(XECHO) "... with INTEL boot..." ; \
1974 if [ "$${FLASH}" = "ATMEL" ] ; then \
1975 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1976 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1977 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1978 $(XECHO) "... with ATMEL boot..." ; \
1980 if [ "$${FLASH}" = "STMICRO" ] ; then \
1981 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1982 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1983 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1984 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1985 $(XECHO) "... with ST Micro boot..." ; \
1987 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1988 $(XECHO) "... with $${FREQ}Hz input clock"
1989 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1997 M5475GFE_config : unconfig
1999 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2000 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2001 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2002 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2003 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2004 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2005 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2007 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
2008 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2009 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2010 if [ "$${RAM1}" != "0" ] ; then \
2011 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2013 if [ "$${CODE}" != "0" ] ; then \
2014 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2016 if [ "$${VID}" == "1" ] ; then \
2017 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2019 if [ "$${USB}" == "1" ] ; then \
2020 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2022 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2031 M5485HFE_config : unconfig
2033 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2034 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2035 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2036 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2037 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2038 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2039 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2040 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2042 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2043 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2044 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2045 if [ "$${RAM1}" != "0" ] ; then \
2046 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2048 if [ "$${CODE}" != "0" ] ; then \
2049 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2051 if [ "$${VID}" == "1" ] ; then \
2052 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2054 if [ "$${USB}" == "1" ] ; then \
2055 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2057 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2059 TASREG_config : unconfig
2060 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2062 #########################################################################
2064 #########################################################################
2066 MPC8313ERDB_33_config \
2067 MPC8313ERDB_66_config \
2068 MPC8313ERDB_NAND_33_config \
2069 MPC8313ERDB_NAND_66_config: unconfig
2070 @mkdir -p $(obj)include
2071 @mkdir -p $(obj)board/freescale/mpc8313erdb
2072 @if [ "$(findstring _33_,$@)" ] ; then \
2073 $(XECHO) -n "...33M ..." ; \
2074 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2076 if [ "$(findstring _66_,$@)" ] ; then \
2077 $(XECHO) -n "...66M..." ; \
2078 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2080 if [ "$(findstring _NAND_,$@)" ] ; then \
2081 $(XECHO) -n "...NAND..." ; \
2082 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2083 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2085 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2086 @if [ "$(findstring _NAND_,$@)" ] ; then \
2087 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2090 MPC8315ERDB_config: unconfig
2091 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2093 MPC8323ERDB_config: unconfig
2094 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2096 MPC832XEMDS_config \
2097 MPC832XEMDS_HOST_33_config \
2098 MPC832XEMDS_HOST_66_config \
2099 MPC832XEMDS_SLAVE_config \
2100 MPC832XEMDS_ATM_config: unconfig
2101 @mkdir -p $(obj)include
2102 @if [ "$(findstring _HOST_,$@)" ] ; then \
2103 $(XECHO) -n "... PCI HOST " ; \
2104 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2106 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2107 $(XECHO) "...PCI SLAVE 66M" ; \
2108 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2109 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2111 if [ "$(findstring _33_,$@)" ] ; then \
2112 $(XECHO) -n "...33M ..." ; \
2113 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2114 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2116 if [ "$(findstring _66_,$@)" ] ; then \
2117 $(XECHO) -n "...66M..." ; \
2118 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2119 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2121 if [ "$(findstring _ATM_,$@)" ] ; then \
2122 $(XECHO) -n "...ATM..." ; \
2123 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2124 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2126 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2128 MPC8349EMDS_config: unconfig
2129 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2132 MPC8349ITX_LOWBOOT_config \
2133 MPC8349ITXGP_config: unconfig
2134 @mkdir -p $(obj)include
2135 @mkdir -p $(obj)board/freescale/mpc8349itx
2136 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2137 @if [ "$(findstring GP,$@)" ] ; then \
2138 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2140 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2141 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2143 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2145 MPC8360EMDS_config \
2146 MPC8360EMDS_HOST_33_config \
2147 MPC8360EMDS_HOST_66_config \
2148 MPC8360EMDS_SLAVE_config \
2149 MPC8360EMDS_ATM_config: unconfig
2150 @mkdir -p $(obj)include
2151 @if [ "$(findstring _HOST_,$@)" ] ; then \
2152 $(XECHO) -n "... PCI HOST " ; \
2153 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2155 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2156 $(XECHO) "...PCI SLAVE 66M" ; \
2157 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2158 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2160 if [ "$(findstring _33_,$@)" ] ; then \
2161 $(XECHO) -n "...33M ..." ; \
2162 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2163 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2165 if [ "$(findstring _66_,$@)" ] ; then \
2166 $(XECHO) -n "...66M..." ; \
2167 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2168 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2170 if [ "$(findstring _ATM_,$@)" ] ; then \
2171 $(XECHO) -n "...ATM..." ; \
2172 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2173 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2175 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2177 MPC8360ERDK_33_config \
2178 MPC8360ERDK_66_config \
2179 MPC8360ERDK_config: unconfig
2180 @mkdir -p $(obj)include
2181 @if [ "$(findstring _33_,$@)" ] ; then \
2182 $(XECHO) -n "... CLKIN 33MHz " ; \
2183 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2185 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2187 MPC837XEMDS_config \
2188 MPC837XEMDS_HOST_config: unconfig
2189 @mkdir -p $(obj)include
2190 @if [ "$(findstring _HOST_,$@)" ] ; then \
2191 $(XECHO) -n "... PCI HOST " ; \
2192 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2194 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2196 MPC837XERDB_config: unconfig
2197 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2199 MVBLM7_config: unconfig
2200 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2202 sbc8349_config: unconfig
2203 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2205 TQM834x_config: unconfig
2206 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2209 #########################################################################
2211 #########################################################################
2213 ATUM8548_config: unconfig
2214 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2216 MPC8536DS_config: unconfig
2217 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2219 MPC8540ADS_config: unconfig
2220 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2222 MPC8540EVAL_config \
2223 MPC8540EVAL_33_config \
2224 MPC8540EVAL_66_config \
2225 MPC8540EVAL_33_slave_config \
2226 MPC8540EVAL_66_slave_config: unconfig
2227 @mkdir -p $(obj)include
2228 @if [ "$(findstring _33_,$@)" ] ; then \
2229 $(XECHO) "... 33 MHz PCI" ; \
2231 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2232 $(XECHO) "... 66 MHz PCI" ; \
2234 if [ "$(findstring _slave_,$@)" ] ; then \
2235 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2236 $(XECHO) " slave" ; \
2238 $(XECHO) " host" ; \
2240 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2242 MPC8560ADS_config: unconfig
2243 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2245 MPC8541CDS_legacy_config \
2246 MPC8541CDS_config: unconfig
2247 @mkdir -p $(obj)include
2248 @if [ "$(findstring _legacy_,$@)" ] ; then \
2249 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2250 $(XECHO) "... legacy" ; \
2252 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2254 MPC8544DS_config: unconfig
2255 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2257 MPC8548CDS_legacy_config \
2258 MPC8548CDS_config: unconfig
2259 @mkdir -p $(obj)include
2260 @if [ "$(findstring _legacy_,$@)" ] ; then \
2261 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2262 $(XECHO) "... legacy" ; \
2264 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2266 MPC8555CDS_legacy_config \
2267 MPC8555CDS_config: unconfig
2268 @mkdir -p $(obj)include
2269 @if [ "$(findstring _legacy_,$@)" ] ; then \
2270 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2271 $(XECHO) "... legacy" ; \
2273 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2275 MPC8568MDS_config: unconfig
2276 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2278 MPC8572DS_config: unconfig
2279 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2281 PM854_config: unconfig
2282 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2284 PM856_config: unconfig
2285 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2289 sbc8540_66_config: unconfig
2290 @mkdir -p $(obj)include
2291 @if [ "$(findstring _66_,$@)" ] ; then \
2292 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2293 $(XECHO) "... 66 MHz PCI" ; \
2295 $(XECHO) "... 33 MHz PCI" ; \
2297 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2299 sbc8548_config: unconfig
2300 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2304 sbc8560_66_config: unconfig
2305 @mkdir -p $(obj)include
2306 @if [ "$(findstring _66_,$@)" ] ; then \
2307 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2308 $(XECHO) "... 66 MHz PCI" ; \
2310 $(XECHO) "... 33 MHz PCI" ; \
2312 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2314 socrates_config: unconfig
2315 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2317 stxgp3_config: unconfig
2318 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2321 stxssa_4M_config: unconfig
2322 @mkdir -p $(obj)include
2323 @if [ "$(findstring _4M_,$@)" ] ; then \
2324 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2325 $(XECHO) "... with 4 MiB flash memory" ; \
2327 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2333 TQM8560_config: unconfig
2334 @mkdir -p $(obj)include
2335 @CTYPE=$(subst TQM,,$(@:_config=)); \
2336 $(XECHO) "... TQM"$${CTYPE}; \
2337 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2338 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2339 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2340 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2341 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2343 #########################################################################
2345 #########################################################################
2347 MPC8610HPCD_config: unconfig
2348 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2350 MPC8641HPCN_config: unconfig
2351 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2353 sbc8641d_config: unconfig
2354 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2356 #########################################################################
2358 #########################################################################
2360 AmigaOneG3SE_config: unconfig
2361 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2363 BAB7xx_config: unconfig
2364 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2366 CPCI750_config: unconfig
2367 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2369 DB64360_config: unconfig
2370 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2372 DB64460_config: unconfig
2373 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2375 ELPPC_config: unconfig
2376 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2379 EVB64260_750CX_config: unconfig
2380 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2382 mpc7448hpc2_config: unconfig
2383 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2385 P3G4_config: unconfig
2386 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2389 p3m7448_config: unconfig
2390 @mkdir -p $(obj)include
2391 @if [ "$(findstring 750_,$@)" ] ; then \
2392 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2394 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2396 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2399 PCIPPC6_config: unconfig
2400 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2402 ppmc7xx_config: unconfig
2403 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2405 ZUMA_config: unconfig
2406 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2408 #========================================================================
2410 #========================================================================
2411 #########################################################################
2412 ## StrongARM Systems
2413 #########################################################################
2415 assabet_config : unconfig
2416 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2418 dnp1110_config : unconfig
2419 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2421 gcplus_config : unconfig
2422 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2424 lart_config : unconfig
2425 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2427 shannon_config : unconfig
2428 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2430 #########################################################################
2432 #########################################################################
2434 #########################################################################
2435 ## Atmel AT91RM9200 Systems
2436 #########################################################################
2438 at91rm9200dk_config : unconfig
2439 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2441 at91sam9261ek_config : unconfig
2442 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2444 at91sam9263ek_config : unconfig
2445 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2447 at91sam9rlek_config : unconfig
2448 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2450 cmc_pu2_config : unconfig
2451 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2453 csb637_config : unconfig
2454 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2456 kb9202_config : unconfig
2457 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2459 m501sk_config : unconfig
2460 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2462 mp2usb_config : unconfig
2463 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2465 #########################################################################
2466 ## Atmel ARM926EJ-S Systems
2467 #########################################################################
2469 at91cap9adk_config : unconfig
2470 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2472 at91sam9260ek_config : unconfig
2473 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2475 ########################################################################
2476 ## ARM Integrator boards - see doc/README-integrator for more info.
2477 integratorap_config \
2486 ap946es_config: unconfig
2487 @board/integratorap/split_by_variant.sh $@
2489 integratorcp_config \
2498 cp1026_config: unconfig
2499 @board/integratorcp/split_by_variant.sh $@
2501 davinci_dvevm_config : unconfig
2502 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2504 davinci_schmoogie_config : unconfig
2505 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2507 davinci_sffsdr_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2510 davinci_sonata_config : unconfig
2511 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2514 lpd7a404_config: unconfig
2515 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2517 mx1ads_config : unconfig
2518 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2520 mx1fs2_config : unconfig
2521 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2523 netstar_config: unconfig
2524 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2526 omap1510inn_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2529 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2531 omap1610inn_config \
2532 omap1610inn_cs0boot_config \
2533 omap1610inn_cs3boot_config \
2534 omap1610inn_cs_autoboot_config \
2536 omap1610h2_cs0boot_config \
2537 omap1610h2_cs3boot_config \
2538 omap1610h2_cs_autoboot_config: unconfig
2539 @mkdir -p $(obj)include
2540 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2541 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2542 $(XECHO) "... configured for CS0 boot"; \
2543 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2544 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2545 $(XECHO) "... configured for CS_AUTO boot"; \
2547 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2548 $(XECHO) "... configured for CS3 boot"; \
2550 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2552 omap5912osk_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2555 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2558 omap730p2_cs0boot_config \
2559 omap730p2_cs3boot_config : unconfig
2560 @mkdir -p $(obj)include
2561 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2562 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2563 $(XECHO) "... configured for CS0 boot"; \
2565 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2566 $(XECHO) "... configured for CS3 boot"; \
2568 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2570 sbc2410x_config: unconfig
2571 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2573 scb9328_config : unconfig
2574 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2576 smdk2400_config : unconfig
2577 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2579 smdk2410_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2582 SX1_config : unconfig
2583 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2585 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2586 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2589 trab_bigram_config \
2590 trab_bigflash_config \
2591 trab_old_config: unconfig
2592 @mkdir -p $(obj)include
2593 @mkdir -p $(obj)board/trab
2594 @[ -z "$(findstring _bigram,$@)" ] || \
2595 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2596 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2597 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2599 @[ -z "$(findstring _bigflash,$@)" ] || \
2600 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2601 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2602 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2603 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2605 @[ -z "$(findstring _old,$@)" ] || \
2606 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2607 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2608 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2609 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2611 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2613 VCMA9_config : unconfig
2614 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2616 #########################################################################
2617 # ARM supplied Versatile development boards
2618 #########################################################################
2620 cm4008_config : unconfig
2621 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2623 cm41xx_config : unconfig
2624 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2627 versatileab_config \
2628 versatilepb_config : unconfig
2629 @board/versatile/split_by_variant.sh $@
2631 voiceblue_config: unconfig
2632 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2634 #########################################################################
2636 #########################################################################
2638 B2_config : unconfig
2639 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2641 #########################################################################
2643 #########################################################################
2645 armadillo_config: unconfig
2646 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2648 ep7312_config : unconfig
2649 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2651 impa7_config : unconfig
2652 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2654 modnet50_config : unconfig
2655 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2657 evb4510_config : unconfig
2658 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2660 lpc2292sodimm_config: unconfig
2661 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2663 SMN42_config : unconfig
2664 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2666 #########################################################################
2668 #########################################################################
2670 actux1_config : unconfig
2671 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2673 actux2_config : unconfig
2674 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2676 actux3_config : unconfig
2677 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2679 actux4_config : unconfig
2680 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2682 cerf250_config : unconfig
2683 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2685 cradle_config : unconfig
2686 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2688 csb226_config : unconfig
2689 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2691 delta_config : unconfig
2692 @$(MKCONFIG) $(@:_config=) arm pxa delta
2694 innokom_config : unconfig
2695 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2697 ixdp425_config : unconfig
2698 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2700 ixdpg425_config : unconfig
2701 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2703 lubbock_config : unconfig
2704 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2706 pleb2_config : unconfig
2707 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2709 logodl_config : unconfig
2710 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2713 scpu_config: unconfig
2714 @mkdir -p $(obj)include
2715 @if [ "$(findstring scpu_,$@)" ] ; then \
2716 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2717 $(XECHO) "... on SCPU board variant" ; \
2719 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2721 pxa255_idp_config: unconfig
2722 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2724 trizepsiv_config : unconfig
2725 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2727 wepep250_config : unconfig
2728 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2730 xaeniax_config : unconfig
2731 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2733 xm250_config : unconfig
2734 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2736 xsengine_config : unconfig
2737 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2740 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2742 #########################################################################
2744 #########################################################################
2746 apollon_config : unconfig
2747 @mkdir -p $(obj)include
2748 @mkdir -p $(obj)onenand_ipl/board/apollon
2749 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2750 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2751 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2753 imx31_litekit_config : unconfig
2754 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2756 imx31_phycore_config : unconfig
2757 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2759 mx31ads_config : unconfig
2760 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2762 omap2420h4_config : unconfig
2763 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2765 #########################################################################
2767 #########################################################################
2768 smdk6400_noUSB_config \
2769 smdk6400_config : unconfig
2770 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2771 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2772 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2773 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2774 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2775 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2777 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2778 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2780 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2782 #========================================================================
2784 #========================================================================
2785 #########################################################################
2787 #########################################################################
2788 sc520_cdp_config : unconfig
2789 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2791 sc520_spunk_config : unconfig
2792 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2794 sc520_spunk_rel_config : unconfig
2795 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2797 #========================================================================
2799 #========================================================================
2800 #########################################################################
2802 #########################################################################
2804 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2806 incaip_100MHz_config \
2807 incaip_133MHz_config \
2808 incaip_150MHz_config \
2809 incaip_config: unconfig
2810 @mkdir -p $(obj)include
2811 @[ -z "$(findstring _100MHz,$@)" ] || \
2812 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2813 $(XECHO) "... with 100MHz system clock" ; \
2815 @[ -z "$(findstring _133MHz,$@)" ] || \
2816 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2817 $(XECHO) "... with 133MHz system clock" ; \
2819 @[ -z "$(findstring _150MHz,$@)" ] || \
2820 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2821 $(XECHO) "... with 150MHz system clock" ; \
2823 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2825 tb0229_config: unconfig
2826 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2828 #########################################################################
2830 #########################################################################
2832 dbau1000_config : unconfig
2833 @mkdir -p $(obj)include
2834 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2835 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2837 dbau1100_config : unconfig
2838 @mkdir -p $(obj)include
2839 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2840 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2842 dbau1500_config : unconfig
2843 @mkdir -p $(obj)include
2844 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2845 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2847 dbau1550_config : unconfig
2848 @mkdir -p $(obj)include
2849 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2850 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2852 dbau1550_el_config : unconfig
2853 @mkdir -p $(obj)include
2854 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2855 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2857 gth2_config : unconfig
2858 @mkdir -p $(obj)include
2859 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2860 @$(MKCONFIG) -a gth2 mips mips gth2
2862 pb1000_config : unconfig
2863 @mkdir -p $(obj)include
2864 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2865 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2867 qemu_mips_config : unconfig
2868 @mkdir -p $(obj)include
2869 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2870 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2872 #########################################################################
2874 #########################################################################
2876 purple_config : unconfig
2877 @$(MKCONFIG) $(@:_config=) mips mips purple
2879 #========================================================================
2881 #========================================================================
2882 #########################################################################
2884 #########################################################################
2886 ADNPESC1_DNPEVA2_base_32_config \
2887 ADNPESC1_base_32_config \
2888 ADNPESC1_config: unconfig
2889 @mkdir -p $(obj)include
2890 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2891 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2892 $(XECHO) "... DNP/EVA2 configuration" ; \
2894 @[ -z "$(findstring _base_32,$@)" ] || \
2895 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2896 $(XECHO) "... NIOS 'base_32' configuration" ; \
2898 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2899 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2900 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2902 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2904 DK1C20_safe_32_config \
2905 DK1C20_standard_32_config \
2906 DK1C20_config: unconfig
2907 @mkdir -p $(obj)include
2908 @[ -z "$(findstring _safe_32,$@)" ] || \
2909 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2910 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2912 @[ -z "$(findstring _standard_32,$@)" ] || \
2913 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2914 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2916 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2917 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2918 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2920 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2922 DK1S10_safe_32_config \
2923 DK1S10_standard_32_config \
2924 DK1S10_mtx_ldk_20_config \
2925 DK1S10_config: unconfig
2926 @mkdir -p $(obj)include
2927 @[ -z "$(findstring _safe_32,$@)" ] || \
2928 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2929 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2931 @[ -z "$(findstring _standard_32,$@)" ] || \
2932 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2933 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2935 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2936 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2937 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2939 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2940 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2941 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2943 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2945 #########################################################################
2947 #########################################################################
2949 EP1C20_config : unconfig
2950 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2952 EP1S10_config : unconfig
2953 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2955 EP1S40_config : unconfig
2956 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2958 PK1C20_config : unconfig
2959 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2961 PCI5441_config : unconfig
2962 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2964 #========================================================================
2966 #========================================================================
2968 ml401_config: unconfig
2969 @mkdir -p $(obj)include
2970 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2971 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2973 suzaku_config: unconfig
2974 @mkdir -p $(obj)include
2975 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2976 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2978 xupv2p_config: unconfig
2979 @mkdir -p $(obj)include
2980 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2981 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2983 #========================================================================
2985 #========================================================================
2987 # Analog Devices boards
2988 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2990 $(BFIN_BOARDS:%=%_config) : unconfig
2991 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2997 #========================================================================
2999 #========================================================================
3001 atngw100_config : unconfig
3002 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3004 atstk1002_config : unconfig
3005 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3007 atstk1003_config : unconfig
3008 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3010 atstk1004_config : unconfig
3011 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3013 atstk1006_config : unconfig
3014 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3016 favr-32-ezkit_config : unconfig
3017 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3019 hammerhead_config : unconfig
3020 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3022 mimc200_config : unconfig
3023 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3025 #========================================================================
3027 #========================================================================
3029 #########################################################################
3030 ## sh2 (Renesas SuperH)
3031 #########################################################################
3032 rsk7203_config: unconfig
3034 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3035 @./mkconfig -a $(@:_config=) sh sh2 rsk7203
3037 #########################################################################
3038 ## sh3 (Renesas SuperH)
3039 #########################################################################
3041 mpr2_config: unconfig
3042 @mkdir -p $(obj)include
3043 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3044 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3046 ms7720se_config: unconfig
3047 @mkdir -p $(obj)include
3048 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3049 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3051 #########################################################################
3052 ## sh4 (Renesas SuperH)
3053 #########################################################################
3055 MigoR_config : unconfig
3056 @mkdir -p $(obj)include
3057 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3058 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3060 ms7750se_config: unconfig
3061 @mkdir -p $(obj)include
3062 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3063 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3065 ms7722se_config : unconfig
3066 @mkdir -p $(obj)include
3067 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3068 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3070 r2dplus_config : unconfig
3071 @mkdir -p $(obj)include
3072 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3073 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus
3075 r7780mp_config: unconfig
3076 @mkdir -p $(obj)include
3077 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3078 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp
3080 sh7763rdp_config : unconfig
3081 @mkdir -p $(obj)include
3082 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3083 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp
3085 sh7785lcr_config : unconfig
3087 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3088 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
3090 ap325rxa_config : unconfig
3091 @mkdir -p $(obj)include
3092 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3093 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa
3095 #========================================================================
3097 #========================================================================
3099 #########################################################################
3101 #########################################################################
3103 # Gaisler GR-XC3S-1500 board
3104 gr_xc3s_1500_config : unconfig
3105 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3107 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3108 gr_cpci_ax2000_config : unconfig
3109 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3111 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3112 # Development board Stratix II edition, FPGA Device EP2S60.
3113 gr_ep2s60_config: unconfig
3114 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3116 # Gaisler LEON3 GRSIM simulator
3117 grsim_config : unconfig
3118 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3120 #########################################################################
3122 #########################################################################
3124 # Gaisler LEON2 GRSIM simulator
3125 grsim_leon2_config : unconfig
3126 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3128 #########################################################################
3129 #########################################################################
3130 #########################################################################
3133 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3134 $(obj)examples/hello_world $(obj)examples/interrupt \
3135 $(obj)examples/mem_to_mem_idma2intr \
3136 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3137 $(obj)examples/test_burst $(obj)examples/timer
3138 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3139 $(obj)tools/env/{fw_printenv,fw_setenv} \
3140 $(obj)tools/envcrc \
3141 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3142 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3143 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3144 $(obj)tools/ncb $(obj)tools/ubsha1
3145 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3146 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3147 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3148 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3149 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3150 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3151 @rm -f $(obj)include/bmp_logo.h
3152 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3153 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3154 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3155 @find $(OBJTREE) -type f \
3156 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3157 -o -name '*.o' -o -name '*.a' \) -print \
3161 @find $(OBJTREE) -type f \( -name .depend \
3162 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3165 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3166 $(obj)cscope.* $(obj)*.*~
3167 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3168 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3169 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3170 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3171 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3172 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3173 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3174 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3175 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3177 ifeq ($(OBJTREE),$(SRCTREE))
3179 distclean: clobber unconfig
3182 distclean: clobber unconfig
3187 F=`basename $(TOPDIR)` ; cd .. ; \
3188 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3190 #########################################################################