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
1245 CPCI405_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1250 CPCI405AB_config: unconfig
1251 @echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1254 CPCIISER4_config: unconfig
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1257 CRAYL1_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1260 csb272_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1263 csb472_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1266 DASA_SIM_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1269 DP405_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1272 DU405_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1275 DU440_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1278 ebony_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1281 ERIC_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1284 EXBITGEN_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1287 G2000_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1290 hcu4_config: unconfig
1291 @mkdir -p $(obj)board/netstal/common
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1294 hcu5_config: unconfig
1295 @mkdir -p $(obj)board/netstal/common
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1298 HH405_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1301 HUB405_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1304 JSE_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1307 KAREF_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1310 katmai_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1313 # Kilauea & Haleakala images are identical (recognized via PVR)
1315 haleakala_config: unconfig
1316 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1318 kilauea_nand_config \
1319 haleakala_nand_config: unconfig
1320 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1321 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1322 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1323 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1324 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1325 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1327 korat_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1330 luan_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1333 lwmon5_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1336 makalu_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1339 mcu25_config: unconfig
1340 @mkdir -p $(obj)board/netstal/common
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1343 METROBOX_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1346 MIP405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1349 MIP405T_config: unconfig
1350 @mkdir -p $(obj)include
1351 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1352 @$(XECHO) "Enable subset config for MIP405T"
1353 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1355 ML2_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1358 ml300_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1361 ml507_flash_config: unconfig
1362 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1363 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-rom.lds" > $(obj)board/xilinx/ml507/config.mk
1364 @echo "TEXT_BASE := 0xFE360000" >> $(obj)board/xilinx/ml507/config.mk
1365 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1367 ml507_config: unconfig
1368 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1369 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-ram.lds" > $(obj)board/xilinx/ml507/config.mk
1370 @echo "TEXT_BASE := 0x04000000" >> $(obj)board/xilinx/ml507/config.mk
1371 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1373 ocotea_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1377 ORSG_config: unconfig
1378 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1380 p3p440_config: unconfig
1381 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1383 PCI405_config: unconfig
1384 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1386 pcs440ep_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1389 PIP405_config: unconfig
1390 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1392 PLU405_config: unconfig
1393 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1395 PMC405_config: unconfig
1396 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1398 PMC440_config: unconfig
1399 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1401 PPChameleonEVB_config \
1402 PPChameleonEVB_BA_25_config \
1403 PPChameleonEVB_ME_25_config \
1404 PPChameleonEVB_HI_25_config \
1405 PPChameleonEVB_BA_33_config \
1406 PPChameleonEVB_ME_33_config \
1407 PPChameleonEVB_HI_33_config: unconfig
1408 @mkdir -p $(obj)include
1409 @[ -z "$(findstring EVB_BA,$@)" ] || \
1410 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1411 $(XECHO) "... BASIC model" ; \
1413 @[ -z "$(findstring EVB_ME,$@)" ] || \
1414 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1415 $(XECHO) "... MEDIUM model" ; \
1417 @[ -z "$(findstring EVB_HI,$@)" ] || \
1418 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1419 $(XECHO) "... HIGH-END model" ; \
1421 @[ -z "$(findstring _25,$@)" ] || \
1422 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1423 $(XECHO) "SysClk = 25MHz" ; \
1425 @[ -z "$(findstring _33,$@)" ] || \
1426 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1427 $(XECHO) "SysClk = 33MHz" ; \
1429 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1431 quad100hd_config: unconfig
1432 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1434 redwood_config: unconfig
1435 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1437 sbc405_config: unconfig
1438 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1441 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1444 rainier_config: unconfig
1445 @mkdir -p $(obj)include
1446 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1447 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1448 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1450 sequoia_nand_config \
1451 rainier_nand_config: unconfig
1452 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1453 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1454 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1455 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1456 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1457 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1458 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1459 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1461 taihu_config: unconfig
1462 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1464 taishan_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1467 v5fx30teval_config: unconfig
1468 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1469 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-ram.lds" > $(obj)board/avnet/v5fx30teval/config.mk
1470 @echo "TEXT_BASE := 0x03000000" >> $(obj)board/avnet/v5fx30teval/config.mk
1471 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1473 v5fx30teval_flash_config: unconfig
1474 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1475 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-rom.lds" > $(obj)board/avnet/v5fx30teval/config.mk
1476 @echo "TEXT_BASE := 0xFF1C0000" >> $(obj)board/avnet/v5fx30teval/config.mk
1477 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1479 VOH405_config: unconfig
1480 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1482 VOM405_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1486 W7OLMG_config: unconfig
1487 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1489 # Walnut & Sycamore images are identical (recognized via PVR)
1491 sycamore_config: unconfig
1492 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1494 WUH405_config: unconfig
1495 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1497 xilinx-ppc440-generic_flash_config: unconfig
1498 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic/
1499 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-rom.lds" > $(obj)board/xilinx/ppc440-generic/config.mk
1500 @echo "TEXT_BASE := 0xFE360000" >> $(obj)board/xilinx/ppc440-generic/config.mk
1501 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1503 xilinx-ppc440-generic_config: unconfig
1504 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic/
1505 @echo "LDSCRIPT := $(obj)board/xilinx/ppc440-generic/u-boot-ram.lds" > $(obj)board/xilinx/ppc440-generic/config.mk
1506 @echo "TEXT_BASE := 0x04000000" >> $(obj)board/xilinx/ppc440-generic/config.mk
1507 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1509 XPEDITE1K_config: unconfig
1510 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1513 yellowstone_config: unconfig
1514 @mkdir -p $(obj)include
1515 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1516 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1517 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1519 yucca_config: unconfig
1520 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1522 zeus_config: unconfig
1523 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1525 #########################################################################
1527 #########################################################################
1530 Yukon8220_config: unconfig
1531 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1533 sorcery_config: unconfig
1534 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1536 #########################################################################
1538 #########################################################################
1539 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1541 A3000_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1544 barco_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1547 BMW_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1551 CPC45_ROMBOOT_config: unconfig
1552 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1553 @cd $(obj)include ; \
1554 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1555 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1556 $(XECHO) "... booting from 8-bit flash" ; \
1558 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1559 $(XECHO) "... booting from 64-bit flash" ; \
1561 echo "export CONFIG_BOOT_ROM" >> config.mk;
1563 CU824_config: unconfig
1564 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1566 debris_config: unconfig
1567 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1569 eXalion_config: unconfig
1570 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1572 HIDDEN_DRAGON_config: unconfig
1573 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1575 kvme080_config: unconfig
1576 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1578 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1580 #linkstation_HDLAN_config \
1581 # Remove this line when HDLAN is fixed
1582 linkstation_HGLAN_config: unconfig
1583 @mkdir -p $(obj)include
1585 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1586 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1588 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1590 MOUSSE_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1593 MUSENKI_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1596 MVBLUE_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1599 OXC_config: unconfig
1600 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1602 PN62_config: unconfig
1603 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1605 Sandpoint8240_config: unconfig
1606 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1608 Sandpoint8245_config: unconfig
1609 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1611 sbc8240_config: unconfig
1612 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1614 SL8245_config: unconfig
1615 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1617 utx8245_config: unconfig
1618 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1620 #########################################################################
1622 #########################################################################
1624 atc_config: unconfig
1625 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1627 cogent_mpc8260_config: unconfig
1628 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1631 CPU86_ROMBOOT_config: unconfig
1632 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1633 @cd $(obj)include ; \
1634 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1635 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1636 $(XECHO) "... booting from 8-bit flash" ; \
1638 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1639 $(XECHO) "... booting from 64-bit flash" ; \
1641 echo "export CONFIG_BOOT_ROM" >> config.mk;
1644 CPU87_ROMBOOT_config: unconfig
1645 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1646 @cd $(obj)include ; \
1647 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1648 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1649 $(XECHO) "... booting from 8-bit flash" ; \
1651 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1652 $(XECHO) "... booting from 64-bit flash" ; \
1654 echo "export CONFIG_BOOT_ROM" >> config.mk;
1657 ep8248E_config : unconfig
1658 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1660 ep8260_config: unconfig
1661 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1663 ep82xxm_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1666 gw8260_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1669 hymod_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1672 IDS8247_config: unconfig
1673 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1675 IPHASE4539_config: unconfig
1676 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1679 ISPAN_REVB_config: unconfig
1680 @mkdir -p $(obj)include
1681 @if [ "$(findstring _REVB_,$@)" ] ; then \
1682 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1684 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1686 mgcoge_config : unconfig
1687 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1690 MPC8260ADS_lowboot_config \
1691 MPC8260ADS_33MHz_config \
1692 MPC8260ADS_33MHz_lowboot_config \
1693 MPC8260ADS_40MHz_config \
1694 MPC8260ADS_40MHz_lowboot_config \
1696 MPC8272ADS_lowboot_config \
1698 PQ2FADS_lowboot_config \
1700 PQ2FADS-VR_lowboot_config \
1702 PQ2FADS-ZU_lowboot_config \
1703 PQ2FADS-ZU_66MHz_config \
1704 PQ2FADS-ZU_66MHz_lowboot_config \
1706 @mkdir -p $(obj)include
1707 @mkdir -p $(obj)board/freescale/mpc8260ads
1708 $(if $(findstring PQ2FADS,$@), \
1709 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1710 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1711 $(if $(findstring MHz,$@), \
1712 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1713 $(if $(findstring VR,$@), \
1714 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1715 @[ -z "$(findstring lowboot_,$@)" ] || \
1716 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1717 $(XECHO) "... with lowboot configuration" ; \
1719 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1721 MPC8266ADS_config: unconfig
1722 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1724 muas3001_dev_config \
1725 muas3001_config : unconfig
1726 @mkdir -p $(obj)include
1727 @mkdir -p $(obj)board/muas3001
1728 @if [ "$(findstring dev,$@)" ] ; then \
1729 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1731 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1733 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1735 PM825_ROMBOOT_config \
1736 PM825_BIGFLASH_config \
1737 PM825_ROMBOOT_BIGFLASH_config \
1739 PM826_ROMBOOT_config \
1740 PM826_BIGFLASH_config \
1741 PM826_ROMBOOT_BIGFLASH_config: unconfig
1742 @mkdir -p $(obj)include
1743 @mkdir -p $(obj)board/pm826
1744 @if [ "$(findstring PM825_,$@)" ] ; then \
1745 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1747 >$(obj)include/config.h ; \
1749 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1750 $(XECHO) "... booting from 8-bit flash" ; \
1751 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1752 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1753 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1754 $(XECHO) "... with 32 MB Flash" ; \
1755 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1758 $(XECHO) "... booting from 64-bit flash" ; \
1759 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1760 $(XECHO) "... with 32 MB Flash" ; \
1761 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1762 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1764 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1767 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1771 PM828_ROMBOOT_config \
1772 PM828_ROMBOOT_PCI_config: unconfig
1773 @mkdir -p $(obj)include
1774 @mkdir -p $(obj)board/pm826
1775 @if [ "$(findstring _PCI_,$@)" ] ; then \
1776 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1777 $(XECHO) "... with PCI enabled" ; \
1779 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1780 $(XECHO) "... booting from 8-bit flash" ; \
1781 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1782 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1784 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1786 ppmc8260_config: unconfig
1787 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1789 Rattler8248_config \
1790 Rattler_config: unconfig
1791 @mkdir -p $(obj)include
1792 $(if $(findstring 8248,$@), \
1793 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1794 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1796 RPXsuper_config: unconfig
1797 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1799 rsdproto_config: unconfig
1800 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1802 sacsng_config: unconfig
1803 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1805 sbc8260_config: unconfig
1806 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1808 SCM_config: unconfig
1809 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1821 TQM8265_AA_config: unconfig
1822 @mkdir -p $(obj)include
1824 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1825 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1826 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1827 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1828 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1829 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1830 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1831 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1832 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1833 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1834 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1836 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1837 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1839 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1840 echo "... with $${CFREQ}MHz system clock" ; \
1841 if [ "$${CACHE}" = "yes" ] ; then \
1842 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1843 $(XECHO) "... with L2 Cache support" ; \
1845 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1846 $(XECHO) "... without L2 Cache support" ; \
1848 if [ "$${BMODE}" = "60x" ] ; then \
1849 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1850 $(XECHO) "... with 60x Bus Mode" ; \
1852 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1853 $(XECHO) "... without 60x Bus Mode" ; \
1855 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1857 TQM8272_config: unconfig
1858 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1860 VoVPN-GW_66MHz_config \
1861 VoVPN-GW_100MHz_config: unconfig
1862 @mkdir -p $(obj)include
1863 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1864 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1866 ZPC1900_config: unconfig
1867 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1869 #########################################################################
1871 #########################################################################
1873 M52277EVB_config: unconfig
1874 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1877 M5235EVB_Flash16_config \
1878 M5235EVB_Flash32_config: unconfig
1880 M5235EVB_config) FLASH=16;; \
1881 M5235EVB_Flash16_config) FLASH=16;; \
1882 M5235EVB_Flash32_config) FLASH=32;; \
1884 if [ "$${FLASH}" != "16" ] ; then \
1885 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1886 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1887 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1889 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1890 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1892 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1894 M5249EVB_config : unconfig
1895 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1897 M5253DEMO_config : unconfig
1898 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1900 M5253EVBE_config : unconfig
1901 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1903 cobra5272_config : unconfig
1904 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1906 EB+MCF-EV123_config : unconfig
1907 @mkdir -p $(obj)include
1908 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1909 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1910 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1912 EB+MCF-EV123_internal_config : unconfig
1913 @mkdir -p $(obj)include
1914 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1915 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1916 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1918 idmr_config : unconfig
1919 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1921 M5271EVB_config : unconfig
1922 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1924 M5272C3_config : unconfig
1925 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1927 M5275EVB_config : unconfig
1928 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1930 M5282EVB_config : unconfig
1931 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1934 M5329BFEE_config : unconfig
1936 M5329AFEE_config) NAND=0;; \
1937 M5329BFEE_config) NAND=16;; \
1939 if [ "$${NAND}" != "0" ] ; then \
1940 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1942 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1944 M5373EVB_config : unconfig
1946 M5373EVB_config) NAND=16;; \
1948 if [ "$${NAND}" != "0" ] ; then \
1949 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1951 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1954 M54451EVB_spansion_config \
1955 M54451EVB_stmicro_config : unconfig
1957 M54451EVB_config) FLASH=SPANSION;; \
1958 M54451EVB_spansion_config) FLASH=SPANSION;; \
1959 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1961 if [ "$${FLASH}" = "SPANSION" ] ; then \
1962 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1963 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1964 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1965 $(XECHO) "... with SPANSION boot..." ; \
1967 if [ "$${FLASH}" = "STMICRO" ] ; then \
1968 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1969 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1970 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1971 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1972 $(XECHO) "... with ST Micro boot..." ; \
1974 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1975 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1978 M54455EVB_atmel_config \
1979 M54455EVB_intel_config \
1980 M54455EVB_a33_config \
1981 M54455EVB_a66_config \
1982 M54455EVB_i33_config \
1983 M54455EVB_i66_config \
1984 M54455EVB_stm33_config : unconfig
1986 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1987 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1988 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1989 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1990 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1991 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1992 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1993 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1995 if [ "$${FLASH}" = "INTEL" ] ; then \
1996 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1997 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1998 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1999 $(XECHO) "... with INTEL boot..." ; \
2001 if [ "$${FLASH}" = "ATMEL" ] ; then \
2002 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
2003 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2004 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2005 $(XECHO) "... with ATMEL boot..." ; \
2007 if [ "$${FLASH}" = "STMICRO" ] ; then \
2008 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2009 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
2010 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2011 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2012 $(XECHO) "... with ST Micro boot..." ; \
2014 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2015 $(XECHO) "... with $${FREQ}Hz input clock"
2016 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2024 M5475GFE_config : unconfig
2026 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2027 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2028 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2029 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2030 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2031 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2032 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2034 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
2035 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2036 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2037 if [ "$${RAM1}" != "0" ] ; then \
2038 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2040 if [ "$${CODE}" != "0" ] ; then \
2041 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2043 if [ "$${VID}" == "1" ] ; then \
2044 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2046 if [ "$${USB}" == "1" ] ; then \
2047 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2049 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2058 M5485HFE_config : unconfig
2060 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2061 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2062 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2063 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2064 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2065 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2066 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2067 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2069 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2070 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2071 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2072 if [ "$${RAM1}" != "0" ] ; then \
2073 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2075 if [ "$${CODE}" != "0" ] ; then \
2076 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2078 if [ "$${VID}" == "1" ] ; then \
2079 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2081 if [ "$${USB}" == "1" ] ; then \
2082 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2084 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2086 TASREG_config : unconfig
2087 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2089 #########################################################################
2091 #########################################################################
2093 MPC8313ERDB_33_config \
2094 MPC8313ERDB_66_config \
2095 MPC8313ERDB_NAND_33_config \
2096 MPC8313ERDB_NAND_66_config: unconfig
2097 @mkdir -p $(obj)include
2098 @mkdir -p $(obj)board/freescale/mpc8313erdb
2099 @if [ "$(findstring _33_,$@)" ] ; then \
2100 $(XECHO) -n "...33M ..." ; \
2101 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2103 if [ "$(findstring _66_,$@)" ] ; then \
2104 $(XECHO) -n "...66M..." ; \
2105 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2107 if [ "$(findstring _NAND_,$@)" ] ; then \
2108 $(XECHO) -n "...NAND..." ; \
2109 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2110 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2112 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2113 @if [ "$(findstring _NAND_,$@)" ] ; then \
2114 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2117 MPC8315ERDB_config: unconfig
2118 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2120 MPC8323ERDB_config: unconfig
2121 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2123 MPC832XEMDS_config \
2124 MPC832XEMDS_HOST_33_config \
2125 MPC832XEMDS_HOST_66_config \
2126 MPC832XEMDS_SLAVE_config \
2127 MPC832XEMDS_ATM_config: unconfig
2128 @mkdir -p $(obj)include
2129 @if [ "$(findstring _HOST_,$@)" ] ; then \
2130 $(XECHO) -n "... PCI HOST " ; \
2131 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2133 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2134 $(XECHO) "...PCI SLAVE 66M" ; \
2135 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2136 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2138 if [ "$(findstring _33_,$@)" ] ; then \
2139 $(XECHO) -n "...33M ..." ; \
2140 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2141 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2143 if [ "$(findstring _66_,$@)" ] ; then \
2144 $(XECHO) -n "...66M..." ; \
2145 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2146 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2148 if [ "$(findstring _ATM_,$@)" ] ; then \
2149 $(XECHO) -n "...ATM..." ; \
2150 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2151 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2153 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2155 MPC8349EMDS_config: unconfig
2156 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2159 MPC8349ITX_LOWBOOT_config \
2160 MPC8349ITXGP_config: unconfig
2161 @mkdir -p $(obj)include
2162 @mkdir -p $(obj)board/freescale/mpc8349itx
2163 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2164 @if [ "$(findstring GP,$@)" ] ; then \
2165 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2167 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2168 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2170 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2172 MPC8360EMDS_config \
2173 MPC8360EMDS_HOST_33_config \
2174 MPC8360EMDS_HOST_66_config \
2175 MPC8360EMDS_SLAVE_config \
2176 MPC8360EMDS_ATM_config: unconfig
2177 @mkdir -p $(obj)include
2178 @if [ "$(findstring _HOST_,$@)" ] ; then \
2179 $(XECHO) -n "... PCI HOST " ; \
2180 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2182 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2183 $(XECHO) "...PCI SLAVE 66M" ; \
2184 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2185 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2187 if [ "$(findstring _33_,$@)" ] ; then \
2188 $(XECHO) -n "...33M ..." ; \
2189 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2190 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2192 if [ "$(findstring _66_,$@)" ] ; then \
2193 $(XECHO) -n "...66M..." ; \
2194 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2195 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2197 if [ "$(findstring _ATM_,$@)" ] ; then \
2198 $(XECHO) -n "...ATM..." ; \
2199 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2200 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2202 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2204 MPC8360ERDK_33_config \
2205 MPC8360ERDK_66_config \
2206 MPC8360ERDK_config: unconfig
2207 @mkdir -p $(obj)include
2208 @if [ "$(findstring _33_,$@)" ] ; then \
2209 $(XECHO) -n "... CLKIN 33MHz " ; \
2210 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2212 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2214 MPC837XEMDS_config \
2215 MPC837XEMDS_HOST_config: unconfig
2216 @mkdir -p $(obj)include
2217 @if [ "$(findstring _HOST_,$@)" ] ; then \
2218 $(XECHO) -n "... PCI HOST " ; \
2219 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2221 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2223 MPC837XERDB_config: unconfig
2224 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2226 MVBLM7_config: unconfig
2227 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2229 sbc8349_config: unconfig
2230 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2232 TQM834x_config: unconfig
2233 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2236 #########################################################################
2238 #########################################################################
2240 ATUM8548_config: unconfig
2241 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2243 MPC8536DS_config: unconfig
2244 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2246 MPC8540ADS_config: unconfig
2247 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2249 MPC8540EVAL_config \
2250 MPC8540EVAL_33_config \
2251 MPC8540EVAL_66_config \
2252 MPC8540EVAL_33_slave_config \
2253 MPC8540EVAL_66_slave_config: unconfig
2254 @mkdir -p $(obj)include
2255 @if [ "$(findstring _33_,$@)" ] ; then \
2256 $(XECHO) "... 33 MHz PCI" ; \
2258 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2259 $(XECHO) "... 66 MHz PCI" ; \
2261 if [ "$(findstring _slave_,$@)" ] ; then \
2262 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2263 $(XECHO) " slave" ; \
2265 $(XECHO) " host" ; \
2267 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2269 MPC8560ADS_config: unconfig
2270 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2272 MPC8541CDS_legacy_config \
2273 MPC8541CDS_config: unconfig
2274 @mkdir -p $(obj)include
2275 @if [ "$(findstring _legacy_,$@)" ] ; then \
2276 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2277 $(XECHO) "... legacy" ; \
2279 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2281 MPC8544DS_config: unconfig
2282 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2284 MPC8548CDS_legacy_config \
2285 MPC8548CDS_config: unconfig
2286 @mkdir -p $(obj)include
2287 @if [ "$(findstring _legacy_,$@)" ] ; then \
2288 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2289 $(XECHO) "... legacy" ; \
2291 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2293 MPC8555CDS_legacy_config \
2294 MPC8555CDS_config: unconfig
2295 @mkdir -p $(obj)include
2296 @if [ "$(findstring _legacy_,$@)" ] ; then \
2297 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2298 $(XECHO) "... legacy" ; \
2300 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2302 MPC8568MDS_config: unconfig
2303 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2305 MPC8572DS_config: unconfig
2306 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2308 PM854_config: unconfig
2309 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2311 PM856_config: unconfig
2312 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2316 sbc8540_66_config: unconfig
2317 @mkdir -p $(obj)include
2318 @if [ "$(findstring _66_,$@)" ] ; then \
2319 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2320 $(XECHO) "... 66 MHz PCI" ; \
2322 $(XECHO) "... 33 MHz PCI" ; \
2324 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2326 sbc8548_config: unconfig
2327 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2331 sbc8560_66_config: unconfig
2332 @mkdir -p $(obj)include
2333 @if [ "$(findstring _66_,$@)" ] ; then \
2334 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2335 $(XECHO) "... 66 MHz PCI" ; \
2337 $(XECHO) "... 33 MHz PCI" ; \
2339 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2341 socrates_config: unconfig
2342 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2344 stxgp3_config: unconfig
2345 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2348 stxssa_4M_config: unconfig
2349 @mkdir -p $(obj)include
2350 @if [ "$(findstring _4M_,$@)" ] ; then \
2351 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2352 $(XECHO) "... with 4 MiB flash memory" ; \
2354 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2360 TQM8560_config: unconfig
2361 @mkdir -p $(obj)include
2362 @CTYPE=$(subst TQM,,$(@:_config=)); \
2363 $(XECHO) "... TQM"$${CTYPE}; \
2364 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2365 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2366 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2367 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2368 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2370 #########################################################################
2372 #########################################################################
2374 MPC8610HPCD_config: unconfig
2375 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2377 MPC8641HPCN_config: unconfig
2378 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2380 sbc8641d_config: unconfig
2381 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2383 #########################################################################
2385 #########################################################################
2387 AmigaOneG3SE_config: unconfig
2388 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2390 BAB7xx_config: unconfig
2391 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2393 CPCI750_config: unconfig
2394 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2396 DB64360_config: unconfig
2397 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2399 DB64460_config: unconfig
2400 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2402 ELPPC_config: unconfig
2403 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2406 EVB64260_750CX_config: unconfig
2407 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2409 mpc7448hpc2_config: unconfig
2410 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2412 P3G4_config: unconfig
2413 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2416 p3m7448_config: unconfig
2417 @mkdir -p $(obj)include
2418 @if [ "$(findstring 750_,$@)" ] ; then \
2419 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2421 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2423 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2426 PCIPPC6_config: unconfig
2427 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2429 ppmc7xx_config: unconfig
2430 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2432 ZUMA_config: unconfig
2433 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2435 #========================================================================
2437 #========================================================================
2438 #########################################################################
2439 ## StrongARM Systems
2440 #########################################################################
2442 assabet_config : unconfig
2443 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2445 dnp1110_config : unconfig
2446 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2448 gcplus_config : unconfig
2449 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2451 lart_config : unconfig
2452 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2454 shannon_config : unconfig
2455 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2457 #########################################################################
2459 #########################################################################
2461 #########################################################################
2462 ## Atmel AT91RM9200 Systems
2463 #########################################################################
2465 at91rm9200dk_config : unconfig
2466 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2468 at91sam9261ek_config : unconfig
2469 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2471 at91sam9263ek_config : unconfig
2472 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2474 at91sam9rlek_config : unconfig
2475 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2477 cmc_pu2_config : unconfig
2478 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2480 csb637_config : unconfig
2481 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2483 kb9202_config : unconfig
2484 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2486 m501sk_config : unconfig
2487 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2489 mp2usb_config : unconfig
2490 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2492 #########################################################################
2493 ## Atmel ARM926EJ-S Systems
2494 #########################################################################
2496 at91cap9adk_config : unconfig
2497 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2499 at91sam9260ek_config : unconfig
2500 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2502 ########################################################################
2503 ## ARM Integrator boards - see doc/README-integrator for more info.
2504 integratorap_config \
2513 ap946es_config: unconfig
2514 @board/integratorap/split_by_variant.sh $@
2516 integratorcp_config \
2525 cp1026_config: unconfig
2526 @board/integratorcp/split_by_variant.sh $@
2528 davinci_dvevm_config : unconfig
2529 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2531 davinci_schmoogie_config : unconfig
2532 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2534 davinci_sffsdr_config : unconfig
2535 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2537 davinci_sonata_config : unconfig
2538 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2541 lpd7a404_config: unconfig
2542 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2544 mx1ads_config : unconfig
2545 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2547 mx1fs2_config : unconfig
2548 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2550 netstar_config: unconfig
2551 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2553 omap1510inn_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2556 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2558 omap1610inn_config \
2559 omap1610inn_cs0boot_config \
2560 omap1610inn_cs3boot_config \
2561 omap1610inn_cs_autoboot_config \
2563 omap1610h2_cs0boot_config \
2564 omap1610h2_cs3boot_config \
2565 omap1610h2_cs_autoboot_config: unconfig
2566 @mkdir -p $(obj)include
2567 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2568 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2569 $(XECHO) "... configured for CS0 boot"; \
2570 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2571 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2572 $(XECHO) "... configured for CS_AUTO boot"; \
2574 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2575 $(XECHO) "... configured for CS3 boot"; \
2577 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2579 omap5912osk_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2582 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2585 omap730p2_cs0boot_config \
2586 omap730p2_cs3boot_config : unconfig
2587 @mkdir -p $(obj)include
2588 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2589 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2590 $(XECHO) "... configured for CS0 boot"; \
2592 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2593 $(XECHO) "... configured for CS3 boot"; \
2595 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2597 sbc2410x_config: unconfig
2598 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2600 scb9328_config : unconfig
2601 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2603 smdk2400_config : unconfig
2604 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2606 smdk2410_config : unconfig
2607 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2609 SX1_config : unconfig
2610 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2612 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2613 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2616 trab_bigram_config \
2617 trab_bigflash_config \
2618 trab_old_config: unconfig
2619 @mkdir -p $(obj)include
2620 @mkdir -p $(obj)board/trab
2621 @[ -z "$(findstring _bigram,$@)" ] || \
2622 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2623 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2624 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2626 @[ -z "$(findstring _bigflash,$@)" ] || \
2627 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2628 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2629 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2630 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2632 @[ -z "$(findstring _old,$@)" ] || \
2633 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2634 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2635 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2636 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2638 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2640 VCMA9_config : unconfig
2641 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2643 #########################################################################
2644 # ARM supplied Versatile development boards
2645 #########################################################################
2647 cm4008_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2650 cm41xx_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2654 versatileab_config \
2655 versatilepb_config : unconfig
2656 @board/versatile/split_by_variant.sh $@
2658 voiceblue_config: unconfig
2659 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2661 #########################################################################
2663 #########################################################################
2665 B2_config : unconfig
2666 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2668 #########################################################################
2670 #########################################################################
2672 armadillo_config: unconfig
2673 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2675 ep7312_config : unconfig
2676 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2678 impa7_config : unconfig
2679 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2681 modnet50_config : unconfig
2682 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2684 evb4510_config : unconfig
2685 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2687 lpc2292sodimm_config: unconfig
2688 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2690 SMN42_config : unconfig
2691 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2693 #########################################################################
2695 #########################################################################
2697 actux1_config : unconfig
2698 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2700 actux2_config : unconfig
2701 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2703 actux3_config : unconfig
2704 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2706 actux4_config : unconfig
2707 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2709 cerf250_config : unconfig
2710 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2712 cradle_config : unconfig
2713 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2715 csb226_config : unconfig
2716 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2718 delta_config : unconfig
2719 @$(MKCONFIG) $(@:_config=) arm pxa delta
2721 innokom_config : unconfig
2722 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2724 ixdp425_config : unconfig
2725 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2727 ixdpg425_config : unconfig
2728 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2730 lubbock_config : unconfig
2731 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2733 pleb2_config : unconfig
2734 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2736 logodl_config : unconfig
2737 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2740 scpu_config: unconfig
2741 @mkdir -p $(obj)include
2742 @if [ "$(findstring scpu_,$@)" ] ; then \
2743 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2744 $(XECHO) "... on SCPU board variant" ; \
2746 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2748 pxa255_idp_config: unconfig
2749 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2751 trizepsiv_config : unconfig
2752 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2754 wepep250_config : unconfig
2755 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2757 xaeniax_config : unconfig
2758 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2760 xm250_config : unconfig
2761 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2763 xsengine_config : unconfig
2764 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2767 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2769 #########################################################################
2771 #########################################################################
2773 apollon_config : unconfig
2774 @mkdir -p $(obj)include
2775 @mkdir -p $(obj)onenand_ipl/board/apollon
2776 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2777 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2778 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2780 imx31_litekit_config : unconfig
2781 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2783 imx31_phycore_config : unconfig
2784 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2786 mx31ads_config : unconfig
2787 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2789 omap2420h4_config : unconfig
2790 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2792 #########################################################################
2794 #########################################################################
2795 smdk6400_noUSB_config \
2796 smdk6400_config : unconfig
2797 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2798 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2799 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2800 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2801 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2802 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2804 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2805 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2807 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2809 #========================================================================
2811 #========================================================================
2812 #########################################################################
2814 #########################################################################
2815 sc520_cdp_config : unconfig
2816 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2818 sc520_spunk_config : unconfig
2819 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2821 sc520_spunk_rel_config : unconfig
2822 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2824 #========================================================================
2826 #========================================================================
2827 #########################################################################
2829 #########################################################################
2831 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2833 incaip_100MHz_config \
2834 incaip_133MHz_config \
2835 incaip_150MHz_config \
2836 incaip_config: unconfig
2837 @mkdir -p $(obj)include
2838 @[ -z "$(findstring _100MHz,$@)" ] || \
2839 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2840 $(XECHO) "... with 100MHz system clock" ; \
2842 @[ -z "$(findstring _133MHz,$@)" ] || \
2843 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2844 $(XECHO) "... with 133MHz system clock" ; \
2846 @[ -z "$(findstring _150MHz,$@)" ] || \
2847 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2848 $(XECHO) "... with 150MHz system clock" ; \
2850 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2852 tb0229_config: unconfig
2853 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2855 #########################################################################
2857 #########################################################################
2859 dbau1000_config : unconfig
2860 @mkdir -p $(obj)include
2861 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2862 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2864 dbau1100_config : unconfig
2865 @mkdir -p $(obj)include
2866 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2867 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2869 dbau1500_config : unconfig
2870 @mkdir -p $(obj)include
2871 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2872 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2874 dbau1550_config : unconfig
2875 @mkdir -p $(obj)include
2876 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2877 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2879 dbau1550_el_config : unconfig
2880 @mkdir -p $(obj)include
2881 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2882 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2884 gth2_config : unconfig
2885 @mkdir -p $(obj)include
2886 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2887 @$(MKCONFIG) -a gth2 mips mips gth2
2889 pb1000_config : unconfig
2890 @mkdir -p $(obj)include
2891 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2892 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2894 qemu_mips_config : unconfig
2895 @mkdir -p $(obj)include
2896 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2897 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2899 #########################################################################
2901 #########################################################################
2903 purple_config : unconfig
2904 @$(MKCONFIG) $(@:_config=) mips mips purple
2906 #========================================================================
2908 #========================================================================
2909 #########################################################################
2911 #########################################################################
2913 ADNPESC1_DNPEVA2_base_32_config \
2914 ADNPESC1_base_32_config \
2915 ADNPESC1_config: unconfig
2916 @mkdir -p $(obj)include
2917 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2918 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2919 $(XECHO) "... DNP/EVA2 configuration" ; \
2921 @[ -z "$(findstring _base_32,$@)" ] || \
2922 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2923 $(XECHO) "... NIOS 'base_32' configuration" ; \
2925 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2926 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2927 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2929 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2931 DK1C20_safe_32_config \
2932 DK1C20_standard_32_config \
2933 DK1C20_config: unconfig
2934 @mkdir -p $(obj)include
2935 @[ -z "$(findstring _safe_32,$@)" ] || \
2936 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2937 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2939 @[ -z "$(findstring _standard_32,$@)" ] || \
2940 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2941 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2943 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2944 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2945 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2947 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2949 DK1S10_safe_32_config \
2950 DK1S10_standard_32_config \
2951 DK1S10_mtx_ldk_20_config \
2952 DK1S10_config: unconfig
2953 @mkdir -p $(obj)include
2954 @[ -z "$(findstring _safe_32,$@)" ] || \
2955 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2956 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2958 @[ -z "$(findstring _standard_32,$@)" ] || \
2959 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2960 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2962 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2963 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2964 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2966 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2967 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2968 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2970 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2972 #########################################################################
2974 #########################################################################
2976 EP1C20_config : unconfig
2977 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2979 EP1S10_config : unconfig
2980 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2982 EP1S40_config : unconfig
2983 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2985 PK1C20_config : unconfig
2986 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2988 PCI5441_config : unconfig
2989 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2991 #========================================================================
2993 #========================================================================
2995 ml401_config: unconfig
2996 @mkdir -p $(obj)include
2997 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2998 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3000 suzaku_config: unconfig
3001 @mkdir -p $(obj)include
3002 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3003 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3005 xupv2p_config: unconfig
3006 @mkdir -p $(obj)include
3007 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
3008 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
3010 #========================================================================
3012 #========================================================================
3014 # Analog Devices boards
3015 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3017 $(BFIN_BOARDS:%=%_config) : unconfig
3018 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3024 #========================================================================
3026 #========================================================================
3028 atngw100_config : unconfig
3029 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3031 atstk1002_config : unconfig
3032 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3034 atstk1003_config : unconfig
3035 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3037 atstk1004_config : unconfig
3038 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3040 atstk1006_config : unconfig
3041 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3043 favr-32-ezkit_config : unconfig
3044 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3046 hammerhead_config : unconfig
3047 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3049 mimc200_config : unconfig
3050 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3052 #========================================================================
3054 #========================================================================
3056 #########################################################################
3057 ## sh2 (Renesas SuperH)
3058 #########################################################################
3059 rsk7203_config: unconfig
3061 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3062 @./mkconfig -a $(@:_config=) sh sh2 rsk7203
3064 #########################################################################
3065 ## sh3 (Renesas SuperH)
3066 #########################################################################
3068 mpr2_config: unconfig
3069 @mkdir -p $(obj)include
3070 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3071 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3073 ms7720se_config: unconfig
3074 @mkdir -p $(obj)include
3075 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3076 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3078 #########################################################################
3079 ## sh4 (Renesas SuperH)
3080 #########################################################################
3082 MigoR_config : unconfig
3083 @mkdir -p $(obj)include
3084 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3085 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3087 ms7750se_config: unconfig
3088 @mkdir -p $(obj)include
3089 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3090 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3092 ms7722se_config : unconfig
3093 @mkdir -p $(obj)include
3094 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3095 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3097 r2dplus_config : unconfig
3098 @mkdir -p $(obj)include
3099 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3100 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus
3102 r7780mp_config: unconfig
3103 @mkdir -p $(obj)include
3104 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3105 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp
3107 sh7763rdp_config : unconfig
3108 @mkdir -p $(obj)include
3109 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3110 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp
3112 sh7785lcr_config : unconfig
3114 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3115 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
3117 ap325rxa_config : unconfig
3118 @mkdir -p $(obj)include
3119 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3120 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa
3122 #========================================================================
3124 #========================================================================
3126 #########################################################################
3128 #########################################################################
3130 # Gaisler GR-XC3S-1500 board
3131 gr_xc3s_1500_config : unconfig
3132 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3134 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3135 gr_cpci_ax2000_config : unconfig
3136 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3138 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3139 # Development board Stratix II edition, FPGA Device EP2S60.
3140 gr_ep2s60_config: unconfig
3141 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3143 # Gaisler LEON3 GRSIM simulator
3144 grsim_config : unconfig
3145 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3147 #########################################################################
3149 #########################################################################
3151 # Gaisler LEON2 GRSIM simulator
3152 grsim_leon2_config : unconfig
3153 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3155 #########################################################################
3156 #########################################################################
3157 #########################################################################
3160 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3161 $(obj)examples/hello_world $(obj)examples/interrupt \
3162 $(obj)examples/mem_to_mem_idma2intr \
3163 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3164 $(obj)examples/test_burst $(obj)examples/timer
3165 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3166 $(obj)tools/env/{fw_printenv,fw_setenv} \
3167 $(obj)tools/envcrc \
3168 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3169 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3170 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3171 $(obj)tools/ncb $(obj)tools/ubsha1
3172 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3173 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3174 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3175 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3176 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3177 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3178 @rm -f $(obj)include/bmp_logo.h
3179 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3180 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3181 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3182 @find $(OBJTREE) -type f \
3183 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3184 -o -name '*.o' -o -name '*.a' \) -print \
3188 @find $(OBJTREE) -type f \( -name .depend \
3189 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3192 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3193 $(obj)cscope.* $(obj)*.*~
3194 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3195 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3196 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3197 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3198 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3199 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3200 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3201 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3202 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3204 ifeq ($(OBJTREE),$(SRCTREE))
3206 distclean: clobber unconfig
3209 distclean: clobber unconfig
3214 F=`basename $(TOPDIR)` ; cd .. ; \
3215 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3217 #########################################################################