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