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/sk98lin/libsk98lin.a
231 LIBS += drivers/pci/libpci.a
232 LIBS += drivers/pcmcia/libpcmcia.a
233 LIBS += drivers/spi/libspi.a
234 ifeq ($(CPU),mpc83xx)
235 LIBS += drivers/qe/qe.a
237 ifeq ($(CPU),mpc85xx)
238 LIBS += drivers/qe/qe.a
240 LIBS += drivers/rtc/librtc.a
241 LIBS += drivers/serial/libserial.a
242 LIBS += drivers/usb/libusb.a
243 LIBS += drivers/video/libvideo.a
244 LIBS += common/libcommon.a
245 LIBS += libfdt/libfdt.a
247 LIBS += post/libpost.a
249 LIBS := $(addprefix $(obj),$(LIBS))
250 .PHONY : $(LIBS) $(VERSION_FILE)
252 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
253 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
256 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
258 # The "tools" are needed early, so put this first
259 # Don't include stuff already done in $(LIBS)
266 ifeq ($(CONFIG_NAND_U_BOOT),y)
268 U_BOOT_NAND = $(obj)u-boot-nand.bin
271 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
272 ONENAND_IPL = onenand_ipl
273 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
276 __OBJS := $(subst $(obj),,$(OBJS))
277 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
279 #########################################################################
280 #########################################################################
282 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
283 ifeq ($(ARCH),blackfin)
284 ALL += $(obj)u-boot.ldr
289 $(obj)u-boot.hex: $(obj)u-boot
290 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
292 $(obj)u-boot.srec: $(obj)u-boot
293 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
295 $(obj)u-boot.bin: $(obj)u-boot
296 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
298 $(obj)u-boot.ldr: $(obj)u-boot
299 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
301 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
302 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
304 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
305 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
307 $(obj)u-boot.img: $(obj)u-boot.bin
308 ./tools/mkimage -A $(ARCH) -T firmware -C none \
309 -a $(TEXT_BASE) -e 0 \
310 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
311 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
314 $(obj)u-boot.sha1: $(obj)u-boot.bin
315 $(obj)tools/ubsha1 $(obj)u-boot.bin
317 $(obj)u-boot.dis: $(obj)u-boot
318 $(OBJDUMP) -d $< > $@
320 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
321 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
322 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
323 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
324 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
325 -Map u-boot.map -o u-boot
327 $(OBJS): depend $(obj)include/autoconf.mk
328 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
330 $(LIBS): depend $(obj)include/autoconf.mk
331 $(MAKE) -C $(dir $(subst $(obj),,$@))
333 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
334 $(MAKE) -C $(dir $(subst $(obj),,$@))
336 $(SUBDIRS): depend $(obj)include/autoconf.mk
339 $(LDSCRIPT): depend $(obj)include/autoconf.mk
340 $(MAKE) -C $(dir $@) $(notdir $@)
342 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
343 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
345 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
346 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
348 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
349 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
351 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
352 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
353 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
356 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
357 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
359 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
362 $(MAKE) -C tools/gdb all || exit 1
365 $(MAKE) -C tools/updater all || exit 1
368 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
370 depend dep: $(VERSION_FILE)
371 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
373 TAG_SUBDIRS += include
374 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
375 TAG_SUBDIRS += cpu/$(CPU)
376 TAG_SUBDIRS += lib_$(ARCH)
377 TAG_SUBDIRS += fs/cramfs
378 TAG_SUBDIRS += fs/fat
379 TAG_SUBDIRS += fs/fdos
380 TAG_SUBDIRS += fs/jffs2
381 TAG_SUBDIRS += fs/yaffs2
384 TAG_SUBDIRS += common
385 TAG_SUBDIRS += drivers/bios_emulator
386 TAG_SUBDIRS += drivers/block
387 TAG_SUBDIRS += drivers/hwmon
388 TAG_SUBDIRS += drivers/i2c
389 TAG_SUBDIRS += drivers/input
390 TAG_SUBDIRS += drivers/misc
391 TAG_SUBDIRS += drivers/mmc
392 TAG_SUBDIRS += drivers/mtd
393 TAG_SUBDIRS += drivers/mtd/nand
394 TAG_SUBDIRS += drivers/mtd/nand_legacy
395 TAG_SUBDIRS += drivers/mtd/onenand
396 TAG_SUBDIRS += drivers/mtd/spi
397 TAG_SUBDIRS += drivers/net
398 TAG_SUBDIRS += drivers/net/sk98lin
399 TAG_SUBDIRS += drivers/pci
400 TAG_SUBDIRS += drivers/pcmcia
401 TAG_SUBDIRS += drivers/qe
402 TAG_SUBDIRS += drivers/rtc
403 TAG_SUBDIRS += drivers/serial
404 TAG_SUBDIRS += drivers/spi
405 TAG_SUBDIRS += drivers/usb
406 TAG_SUBDIRS += drivers/video
409 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
410 -name '*.[ch]' -print`
413 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
414 -name '*.[ch]' -print`
416 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
420 $(obj)System.map: $(obj)u-boot
422 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
423 sort > $(obj)System.map
426 # Auto-generate the autoconf.mk file (which is included by all makefiles)
428 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
429 # the dep file is only include in this top level makefile to determine when
430 # to regenerate the autoconf.mk file.
431 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
432 @$(XECHO) Generating $@ ; \
434 : Generate the dependancies ; \
435 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
436 -MQ $(obj)include/autoconf.mk include/common.h > $@
438 $(obj)include/autoconf.mk: $(obj)include/config.h
439 @$(XECHO) Generating $@ ; \
441 : Extract the config macros ; \
442 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
443 sed -n -f tools/scripts/define2mk.sed > $@
445 sinclude $(obj)include/autoconf.mk.dep
447 #########################################################################
449 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
450 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
451 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
452 dep tags ctags etags cscope $(obj)System.map:
453 @echo "System not configured - see README" >&2
459 git log --no-merges U-Boot-1_1_5.. | \
460 unexpand -a | sed -e 's/\s\s*$$//' > $@
462 include/license.h: tools/bin2header COPYING
463 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
464 #########################################################################
467 @rm -f $(obj)include/config.h $(obj)include/config.mk \
468 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
469 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
471 #========================================================================
473 #========================================================================
475 #########################################################################
477 #########################################################################
479 canmb_config: unconfig
480 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
482 cmi_mpc5xx_config: unconfig
483 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
485 PATI_config: unconfig
486 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
488 #########################################################################
490 #########################################################################
493 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
495 BC3450_config: unconfig
496 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
498 cm5200_config: unconfig
499 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
501 cpci5200_config: unconfig
502 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
504 hmi1001_config: unconfig
505 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
508 Lite5200_LOWBOOT_config \
509 Lite5200_LOWBOOT08_config \
510 icecube_5200_config \
511 icecube_5200_LOWBOOT_config \
512 icecube_5200_LOWBOOT08_config \
513 icecube_5200_DDR_config \
514 icecube_5200_DDR_LOWBOOT_config \
515 icecube_5200_DDR_LOWBOOT08_config \
516 icecube_5100_config: unconfig
517 @mkdir -p $(obj)include
518 @mkdir -p $(obj)board/icecube
519 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
520 { if [ "$(findstring DDR,$@)" ] ; \
521 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
522 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
524 $(XECHO) "... with LOWBOOT configuration" ; \
526 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
527 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
528 echo "... with 8 MB flash only" ; \
529 $(XECHO) "... with LOWBOOT configuration" ; \
531 @[ -z "$(findstring DDR,$@)" ] || \
532 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
533 $(XECHO) "... DDR memory revision" ; \
535 @[ -z "$(findstring 5200,$@)" ] || \
536 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
537 $(XECHO) "... with MPC5200 processor" ; \
539 @[ -z "$(findstring 5100,$@)" ] || \
540 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
541 $(XECHO) "... with MGT5100 processor" ; \
543 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
545 jupiter_config: unconfig
546 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
548 inka4x0_config: unconfig
549 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
552 lite5200b_PM_config \
553 lite5200b_LOWBOOT_config: unconfig
554 @mkdir -p $(obj)include
555 @mkdir -p $(obj)board/icecube
556 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
557 @ $(XECHO) "... DDR memory revision"
558 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
559 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
560 @[ -z "$(findstring _PM_,$@)" ] || \
561 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
562 $(XECHO) "... with power management (low-power mode) support" ; \
564 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
565 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
566 $(XECHO) "... with LOWBOOT configuration" ; \
568 @ $(XECHO) "... with MPC5200B processor"
569 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
572 mcc200_SDRAM_config \
573 mcc200_highboot_config \
574 mcc200_COM12_config \
575 mcc200_COM12_SDRAM_config \
576 mcc200_COM12_highboot_config \
577 mcc200_COM12_highboot_SDRAM_config \
578 mcc200_highboot_SDRAM_config \
581 prs200_highboot_config \
582 prs200_highboot_DDR_config: unconfig
583 @mkdir -p $(obj)include
584 @mkdir -p $(obj)board/mcc200
585 @[ -n "$(findstring highboot,$@)" ] || \
586 { $(XECHO) "... with lowboot configuration" ; \
588 @[ -z "$(findstring highboot,$@)" ] || \
589 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
590 $(XECHO) "... with highboot configuration" ; \
592 @[ -n "$(findstring _SDRAM,$@)" ] || \
593 { if [ -n "$(findstring mcc200,$@)" ]; \
595 $(XECHO) "... with DDR" ; \
597 if [ -n "$(findstring _DDR,$@)" ];\
599 $(XECHO) "... with DDR" ; \
601 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
602 $(XECHO) "... with SDRAM" ; \
606 @[ -z "$(findstring _SDRAM,$@)" ] || \
607 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
608 $(XECHO) "... with SDRAM" ; \
610 @[ -z "$(findstring COM12,$@)" ] || \
611 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
612 $(XECHO) "... with console on COM12" ; \
614 @[ -z "$(findstring prs200,$@)" ] || \
615 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
617 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
619 mecp5200_config: unconfig
620 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
622 motionpro_config: unconfig
623 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
625 munices_config: unconfig
626 @$(MKCONFIG) munices ppc mpc5xxx munices
628 MVBC_P_config: unconfig
629 @mkdir -p $(obj)include
630 @mkdir -p $(obj)board/mvbc_p
631 @ >$(obj)include/config.h
632 @[ -z "$(findstring MVBC_P,$@)" ] || \
633 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
634 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
636 o2dnt_config: unconfig
637 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
639 pf5200_config: unconfig
640 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
644 PM520_ROMBOOT_config \
645 PM520_ROMBOOT_DDR_config: unconfig
646 @mkdir -p $(obj)include
647 @[ -z "$(findstring DDR,$@)" ] || \
648 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
649 $(XECHO) "... DDR memory revision" ; \
651 @[ -z "$(findstring ROMBOOT,$@)" ] || \
652 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
653 $(XECHO) "... booting from 8-bit flash" ; \
655 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
657 smmaco4_config: unconfig
658 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
660 spieval_config: unconfig
661 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
664 TB5200_config: unconfig
665 @mkdir -p $(obj)include
666 @[ -z "$(findstring _B,$@)" ] || \
667 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
668 $(XECHO) "... with MPC5200B processor" ; \
670 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
674 TOP5200_config: unconfig
675 @mkdir -p $(obj)include
676 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
677 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
681 Total5200_lowboot_config \
682 Total5200_Rev2_config \
683 Total5200_Rev2_lowboot_config: unconfig
684 @mkdir -p $(obj)include
685 @mkdir -p $(obj)board/total5200
686 @[ -z "$(findstring 5100,$@)" ] || \
687 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
688 $(XECHO) "... with MGT5100 processor" ; \
690 @[ -z "$(findstring 5200,$@)" ] || \
691 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
692 $(XECHO) "... with MPC5200 processor" ; \
694 @[ -n "$(findstring Rev,$@)" ] || \
695 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
696 $(XECHO) "... revision 1 board" ; \
698 @[ -z "$(findstring Rev2_,$@)" ] || \
699 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
700 $(XECHO) "... revision 2 board" ; \
702 @[ -z "$(findstring lowboot_,$@)" ] || \
703 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
704 $(XECHO) "... with lowboot configuration" ; \
706 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
709 cam5200_niosflash_config \
713 TQM5200S_HIGHBOOT_config \
715 TQM5200_B_HIGHBOOT_config \
717 TQM5200_STK100_config: unconfig
718 @mkdir -p $(obj)include
719 @mkdir -p $(obj)board/tqc/tqm5200
720 @[ -z "$(findstring cam5200,$@)" ] || \
721 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
722 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
723 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
724 $(XECHO) "... TQM5200S on Cam5200" ; \
726 @[ -z "$(findstring niosflash,$@)" ] || \
727 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
728 $(XECHO) "... with NIOS flash driver" ; \
730 @[ -z "$(findstring fo300,$@)" ] || \
731 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
732 $(XECHO) "... TQM5200 on FO300" ; \
734 @[ -z "$(findstring MiniFAP,$@)" ] || \
735 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
736 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
738 @[ -z "$(findstring STK100,$@)" ] || \
739 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
740 $(XECHO) "... on a STK52XX.100 base board" ; \
742 @[ -z "$(findstring TQM5200_B,$@)" ] || \
743 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
745 @[ -z "$(findstring TQM5200S,$@)" ] || \
746 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
747 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
749 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
750 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
752 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
754 uc101_config: unconfig
755 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
757 v38b_config: unconfig
758 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
760 #########################################################################
762 #########################################################################
765 ads5121_rev2_config \
767 @mkdir -p $(obj)include
768 @if [ "$(findstring rev2,$@)" ] ; then \
769 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
771 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
774 #########################################################################
776 #########################################################################
782 @mkdir -p $(obj)include
783 $(if $(findstring AdderII,$@), \
784 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
785 @$(MKCONFIG) -a Adder ppc mpc8xx adder
787 AdderUSB_config: unconfig
788 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
795 FADS860T_config: unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
798 AMX860_config : unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
801 c2mon_config: unconfig
802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
805 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
807 cogent_mpc8xx_config: unconfig
808 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
810 ELPT860_config: unconfig
811 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
813 EP88x_config: unconfig
814 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
816 ESTEEM192E_config: unconfig
817 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
819 ETX094_config : unconfig
820 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
822 FLAGADM_config: unconfig
823 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
825 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
828 GEN860T_config: unconfig
829 @mkdir -p $(obj)include
830 @[ -z "$(findstring _SC,$@)" ] || \
831 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
832 $(XECHO) "With reduced H/W feature set (SC)..." ; \
834 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
836 GENIETV_config: unconfig
837 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
840 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
842 hermes_config : unconfig
843 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
845 HMI10_config : unconfig
846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
848 IAD210_config: unconfig
849 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
851 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
853 ICU862_100MHz_config \
854 ICU862_config: unconfig
855 @mkdir -p $(obj)include
856 @[ -z "$(findstring _100MHz,$@)" ] || \
857 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
858 $(XECHO) "... with 100MHz system clock" ; \
860 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
862 IP860_config : unconfig
863 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
867 IVML24_config: unconfig
868 @mkdir -p $(obj)include
869 @[ -z "$(findstring IVML24_config,$@)" ] || \
870 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
872 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
873 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
875 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
876 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
878 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
882 IVMS8_config: unconfig
883 @mkdir -p $(obj)include
884 @[ -z "$(findstring IVMS8_config,$@)" ] || \
885 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
887 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
888 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
890 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
891 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
893 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
895 KUP4K_config : unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
898 KUP4X_config : unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
901 LANTEC_config : unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
904 lwmon_config: unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
908 MBX860T_config: unconfig
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
911 mgsuvd_config: unconfig
912 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
914 MHPC_config: unconfig
915 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
917 MVS1_config : unconfig
918 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
920 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
923 NETVIA_config: unconfig
924 @mkdir -p $(obj)include
925 @[ -z "$(findstring NETVIA_config,$@)" ] || \
926 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
927 $(XECHO) "... Version 1" ; \
929 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
930 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
931 $(XECHO) "... Version 2" ; \
933 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
935 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
938 NETPHONE_config: unconfig
939 @mkdir -p $(obj)include
940 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
941 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
943 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
944 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
946 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
948 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
950 NETTA_ISDN_6412_SWAPHOOK_config \
951 NETTA_ISDN_SWAPHOOK_config \
952 NETTA_6412_SWAPHOOK_config \
953 NETTA_SWAPHOOK_config \
954 NETTA_ISDN_6412_config \
957 NETTA_config: unconfig
958 @mkdir -p $(obj)include
959 @[ -z "$(findstring ISDN_,$@)" ] || \
960 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
962 @[ -n "$(findstring ISDN_,$@)" ] || \
963 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
965 @[ -z "$(findstring 6412_,$@)" ] || \
966 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
968 @[ -n "$(findstring 6412_,$@)" ] || \
969 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
971 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
972 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
974 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
975 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
977 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
979 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
982 NETTA2_config: unconfig
983 @mkdir -p $(obj)include
984 @[ -z "$(findstring NETTA2_config,$@)" ] || \
985 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
987 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
988 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
990 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
994 CP850_config: unconfig
995 @mkdir -p $(obj)include
996 @[ -z "$(findstring CP850,$@)" ] || \
997 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
998 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1000 @[ -z "$(findstring Rev1,$@)" ] || \
1001 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1003 @[ -z "$(findstring Rev2,$@)" ] || \
1004 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1006 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1008 NX823_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1011 pcu_e_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1014 QS850_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1017 QS823_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1020 QS860T_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1023 quantum_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1026 R360MPI_config: unconfig
1027 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1029 RBC823_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1032 RPXClassic_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1035 RPXlite_config: unconfig
1036 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1038 RPXlite_DW_64_config \
1039 RPXlite_DW_LCD_config \
1040 RPXlite_DW_64_LCD_config \
1041 RPXlite_DW_NVRAM_config \
1042 RPXlite_DW_NVRAM_64_config \
1043 RPXlite_DW_NVRAM_LCD_config \
1044 RPXlite_DW_NVRAM_64_LCD_config \
1045 RPXlite_DW_config: unconfig
1046 @mkdir -p $(obj)include
1047 @[ -z "$(findstring _64,$@)" ] || \
1048 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1049 $(XECHO) "... with 64MHz system clock ..."; \
1051 @[ -z "$(findstring _LCD,$@)" ] || \
1052 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1053 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1054 $(XECHO) "... with LCD display ..."; \
1056 @[ -z "$(findstring _NVRAM,$@)" ] || \
1057 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1058 $(XECHO) "... with ENV in NVRAM ..."; \
1060 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1062 rmu_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1065 RRvision_config: unconfig
1066 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1068 RRvision_LCD_config: unconfig
1069 @mkdir -p $(obj)include
1070 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1071 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1072 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1074 SM850_config : unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1077 spc1920_config: unconfig
1078 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1080 SPD823TS_config: unconfig
1081 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1083 stxxtc_config: unconfig
1084 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1086 svm_sc8xx_config: unconfig
1087 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1089 SXNI855T_config: unconfig
1090 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1092 # EMK MPC8xx based modules
1093 TOP860_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1096 # Play some tricks for configuration selection
1097 # Only 855 and 860 boards may come with FEC
1098 # and only 823 boards may have LCD support
1099 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1105 TQM823L_LCD_config \
1118 virtlab2_config: unconfig
1119 @mkdir -p $(obj)include
1120 @[ -z "$(findstring _LCD,$@)" ] || \
1121 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1122 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1123 $(XECHO) "... with LCD display" ; \
1125 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1127 TTTech_config: unconfig
1128 @mkdir -p $(obj)include
1129 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1130 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1131 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1133 uc100_config : unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1136 v37_config: unconfig
1137 @mkdir -p $(obj)include
1138 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1139 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1140 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1142 wtk_config: unconfig
1143 @mkdir -p $(obj)include
1144 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1145 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1146 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1148 #########################################################################
1150 #########################################################################
1151 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1153 acadia_config: unconfig
1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1156 acadia_nand_config: unconfig
1157 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1158 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1159 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1160 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1161 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1162 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1164 ADCIOP_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1167 alpr_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1170 AP1000_config:unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1173 APC405_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1176 AR405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1179 ASH405_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1182 bamboo_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1185 bamboo_nand_config: unconfig
1186 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1187 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1188 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1189 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1190 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1191 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1193 bubinga_config: unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1196 CANBT_config: unconfig
1197 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1199 # Canyonlands & Glacier use different U-Boot images
1200 canyonlands_config \
1201 glacier_config: unconfig
1202 @mkdir -p $(obj)include
1203 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1204 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1205 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1207 canyonlands_nand_config \
1208 glacier_nand_config: unconfig
1209 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1210 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1211 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1212 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1213 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1214 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1215 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1216 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1219 CATcenter_25_config \
1220 CATcenter_33_config: unconfig
1221 @mkdir -p $(obj)include
1222 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1223 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1224 @[ -z "$(findstring _25,$@)" ] || \
1225 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1226 $(XECHO) "SysClk = 25MHz" ; \
1228 @[ -z "$(findstring _33,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1230 $(XECHO) "SysClk = 33MHz" ; \
1232 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1234 CMS700_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1237 CPCI2DP_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1243 CPCI405AB_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1245 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1247 CPCIISER4_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1250 CRAYL1_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1253 csb272_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1256 csb472_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1259 DASA_SIM_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1262 DP405_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1265 DU405_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1268 DU440_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1271 ebony_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1274 ERIC_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1277 EXBITGEN_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1280 G2000_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1283 hcu4_config: unconfig
1284 @mkdir -p $(obj)board/netstal/common
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1287 hcu5_config: unconfig
1288 @mkdir -p $(obj)board/netstal/common
1289 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1291 HH405_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1294 HUB405_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1297 JSE_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1300 KAREF_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1303 katmai_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1306 # Kilauea & Haleakala images are identical (recognized via PVR)
1308 haleakala_config: unconfig
1309 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1311 kilauea_nand_config \
1312 haleakala_nand_config: unconfig
1313 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1314 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1315 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1316 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1317 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1318 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1320 korat_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1323 luan_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1326 lwmon5_config: unconfig
1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1329 makalu_config: unconfig
1330 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1332 mcu25_config: unconfig
1333 @mkdir -p $(obj)board/netstal/common
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1336 METROBOX_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1339 MIP405_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1342 MIP405T_config: unconfig
1343 @mkdir -p $(obj)include
1344 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1345 @$(XECHO) "Enable subset config for MIP405T"
1346 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1348 ML2_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1351 ml300_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1354 ml507_flash_config: unconfig
1355 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1356 @cp $(obj)board/xilinx/ml507/u-boot-rom.lds $(obj)board/xilinx/ml507/u-boot.lds
1357 @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
1358 @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
1360 ml507_config: unconfig
1361 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1362 @cp $(obj)board/xilinx/ml507/u-boot-ram.lds $(obj)board/xilinx/ml507/u-boot.lds
1363 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1365 ocotea_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1369 ORSG_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1372 p3p440_config: unconfig
1373 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1375 PCI405_config: unconfig
1376 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1378 pcs440ep_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1381 PIP405_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1384 PLU405_config: unconfig
1385 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1387 PMC405_config: unconfig
1388 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1390 PMC440_config: unconfig
1391 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1393 PPChameleonEVB_config \
1394 PPChameleonEVB_BA_25_config \
1395 PPChameleonEVB_ME_25_config \
1396 PPChameleonEVB_HI_25_config \
1397 PPChameleonEVB_BA_33_config \
1398 PPChameleonEVB_ME_33_config \
1399 PPChameleonEVB_HI_33_config: unconfig
1400 @mkdir -p $(obj)include
1401 @[ -z "$(findstring EVB_BA,$@)" ] || \
1402 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1403 $(XECHO) "... BASIC model" ; \
1405 @[ -z "$(findstring EVB_ME,$@)" ] || \
1406 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1407 $(XECHO) "... MEDIUM model" ; \
1409 @[ -z "$(findstring EVB_HI,$@)" ] || \
1410 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1411 $(XECHO) "... HIGH-END model" ; \
1413 @[ -z "$(findstring _25,$@)" ] || \
1414 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1415 $(XECHO) "SysClk = 25MHz" ; \
1417 @[ -z "$(findstring _33,$@)" ] || \
1418 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1419 $(XECHO) "SysClk = 33MHz" ; \
1421 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1423 quad100hd_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1426 redwood_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1429 sbc405_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1433 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1436 rainier_config: unconfig
1437 @mkdir -p $(obj)include
1438 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1439 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1440 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1442 sequoia_nand_config \
1443 rainier_nand_config: unconfig
1444 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1445 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1446 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1447 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1448 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1449 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1450 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1451 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1453 taihu_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1456 taishan_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1459 VOH405_config: unconfig
1460 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1462 VOM405_config: unconfig
1463 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1466 W7OLMG_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1469 # Walnut & Sycamore images are identical (recognized via PVR)
1471 sycamore_config: unconfig
1472 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1474 WUH405_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1477 XPEDITE1K_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1481 yellowstone_config: unconfig
1482 @mkdir -p $(obj)include
1483 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1484 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1485 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1487 yucca_config: unconfig
1488 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1490 zeus_config: unconfig
1491 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1493 #########################################################################
1495 #########################################################################
1498 Yukon8220_config: unconfig
1499 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1501 sorcery_config: unconfig
1502 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1504 #########################################################################
1506 #########################################################################
1507 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1509 A3000_config: unconfig
1510 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1512 barco_config: unconfig
1513 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1515 BMW_config: unconfig
1516 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1519 CPC45_ROMBOOT_config: unconfig
1520 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1521 @cd $(obj)include ; \
1522 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1523 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1524 $(XECHO) "... booting from 8-bit flash" ; \
1526 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1527 $(XECHO) "... booting from 64-bit flash" ; \
1529 echo "export CONFIG_BOOT_ROM" >> config.mk;
1531 CU824_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1534 debris_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1537 eXalion_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1540 HIDDEN_DRAGON_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1543 kvme080_config: unconfig
1544 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1546 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1548 #linkstation_HDLAN_config \
1549 # Remove this line when HDLAN is fixed
1550 linkstation_HGLAN_config: unconfig
1551 @mkdir -p $(obj)include
1553 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1554 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1556 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1558 MOUSSE_config: unconfig
1559 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1561 MUSENKI_config: unconfig
1562 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1564 MVBLUE_config: unconfig
1565 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1567 OXC_config: unconfig
1568 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1570 PN62_config: unconfig
1571 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1573 Sandpoint8240_config: unconfig
1574 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1576 Sandpoint8245_config: unconfig
1577 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1579 sbc8240_config: unconfig
1580 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1582 SL8245_config: unconfig
1583 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1585 utx8245_config: unconfig
1586 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1588 #########################################################################
1590 #########################################################################
1592 atc_config: unconfig
1593 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1595 cogent_mpc8260_config: unconfig
1596 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1599 CPU86_ROMBOOT_config: unconfig
1600 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1601 @cd $(obj)include ; \
1602 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1603 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1604 $(XECHO) "... booting from 8-bit flash" ; \
1606 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1607 $(XECHO) "... booting from 64-bit flash" ; \
1609 echo "export CONFIG_BOOT_ROM" >> config.mk;
1612 CPU87_ROMBOOT_config: unconfig
1613 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1614 @cd $(obj)include ; \
1615 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1616 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1617 $(XECHO) "... booting from 8-bit flash" ; \
1619 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1620 $(XECHO) "... booting from 64-bit flash" ; \
1622 echo "export CONFIG_BOOT_ROM" >> config.mk;
1625 ep8248E_config : unconfig
1626 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1628 ep8260_config: unconfig
1629 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1631 ep82xxm_config: unconfig
1632 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1634 gw8260_config: unconfig
1635 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1637 hymod_config: unconfig
1638 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1640 IDS8247_config: unconfig
1641 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1643 IPHASE4539_config: unconfig
1644 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1647 ISPAN_REVB_config: unconfig
1648 @mkdir -p $(obj)include
1649 @if [ "$(findstring _REVB_,$@)" ] ; then \
1650 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1652 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1654 mgcoge_config : unconfig
1655 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1658 MPC8260ADS_lowboot_config \
1659 MPC8260ADS_33MHz_config \
1660 MPC8260ADS_33MHz_lowboot_config \
1661 MPC8260ADS_40MHz_config \
1662 MPC8260ADS_40MHz_lowboot_config \
1664 MPC8272ADS_lowboot_config \
1666 PQ2FADS_lowboot_config \
1668 PQ2FADS-VR_lowboot_config \
1670 PQ2FADS-ZU_lowboot_config \
1671 PQ2FADS-ZU_66MHz_config \
1672 PQ2FADS-ZU_66MHz_lowboot_config \
1674 @mkdir -p $(obj)include
1675 @mkdir -p $(obj)board/freescale/mpc8260ads
1676 $(if $(findstring PQ2FADS,$@), \
1677 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1678 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1679 $(if $(findstring MHz,$@), \
1680 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1681 $(if $(findstring VR,$@), \
1682 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1683 @[ -z "$(findstring lowboot_,$@)" ] || \
1684 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1685 $(XECHO) "... with lowboot configuration" ; \
1687 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1689 MPC8266ADS_config: unconfig
1690 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1692 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1694 PM825_ROMBOOT_config \
1695 PM825_BIGFLASH_config \
1696 PM825_ROMBOOT_BIGFLASH_config \
1698 PM826_ROMBOOT_config \
1699 PM826_BIGFLASH_config \
1700 PM826_ROMBOOT_BIGFLASH_config: unconfig
1701 @mkdir -p $(obj)include
1702 @mkdir -p $(obj)board/pm826
1703 @if [ "$(findstring PM825_,$@)" ] ; then \
1704 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1706 >$(obj)include/config.h ; \
1708 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1709 $(XECHO) "... booting from 8-bit flash" ; \
1710 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1711 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1712 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1713 $(XECHO) "... with 32 MB Flash" ; \
1714 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1717 $(XECHO) "... booting from 64-bit flash" ; \
1718 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1719 $(XECHO) "... with 32 MB Flash" ; \
1720 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1721 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1723 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1726 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1730 PM828_ROMBOOT_config \
1731 PM828_ROMBOOT_PCI_config: unconfig
1732 @mkdir -p $(obj)include
1733 @mkdir -p $(obj)board/pm826
1734 @if [ "$(findstring _PCI_,$@)" ] ; then \
1735 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1736 $(XECHO) "... with PCI enabled" ; \
1738 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1739 $(XECHO) "... booting from 8-bit flash" ; \
1740 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1741 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1743 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1745 ppmc8260_config: unconfig
1746 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1748 Rattler8248_config \
1749 Rattler_config: unconfig
1750 @mkdir -p $(obj)include
1751 $(if $(findstring 8248,$@), \
1752 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1753 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1755 RPXsuper_config: unconfig
1756 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1758 rsdproto_config: unconfig
1759 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1761 sacsng_config: unconfig
1762 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1764 sbc8260_config: unconfig
1765 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1767 SCM_config: unconfig
1768 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1780 TQM8265_AA_config: unconfig
1781 @mkdir -p $(obj)include
1783 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1784 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1785 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1786 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1787 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1788 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1789 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1790 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1791 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1792 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1793 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1795 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1796 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1798 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1799 echo "... with $${CFREQ}MHz system clock" ; \
1800 if [ "$${CACHE}" = "yes" ] ; then \
1801 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1802 $(XECHO) "... with L2 Cache support" ; \
1804 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1805 $(XECHO) "... without L2 Cache support" ; \
1807 if [ "$${BMODE}" = "60x" ] ; then \
1808 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1809 $(XECHO) "... with 60x Bus Mode" ; \
1811 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1812 $(XECHO) "... without 60x Bus Mode" ; \
1814 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1816 TQM8272_config: unconfig
1817 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1819 VoVPN-GW_66MHz_config \
1820 VoVPN-GW_100MHz_config: unconfig
1821 @mkdir -p $(obj)include
1822 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1823 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1825 ZPC1900_config: unconfig
1826 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1828 #########################################################################
1830 #########################################################################
1832 M52277EVB_config: unconfig
1833 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1836 M5235EVB_Flash16_config \
1837 M5235EVB_Flash32_config: unconfig
1839 M5235EVB_config) FLASH=16;; \
1840 M5235EVB_Flash16_config) FLASH=16;; \
1841 M5235EVB_Flash32_config) FLASH=32;; \
1843 if [ "$${FLASH}" != "16" ] ; then \
1844 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1845 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1846 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1848 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1849 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1851 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1853 M5249EVB_config : unconfig
1854 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1856 M5253DEMO_config : unconfig
1857 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1859 M5253EVBE_config : unconfig
1860 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1862 cobra5272_config : unconfig
1863 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1865 EB+MCF-EV123_config : unconfig
1866 @mkdir -p $(obj)include
1867 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1868 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1869 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1871 EB+MCF-EV123_internal_config : unconfig
1872 @mkdir -p $(obj)include
1873 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1874 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1875 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1877 idmr_config : unconfig
1878 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1880 M5271EVB_config : unconfig
1881 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1883 M5272C3_config : unconfig
1884 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1886 M5275EVB_config : unconfig
1887 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1889 M5282EVB_config : unconfig
1890 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1893 M5329BFEE_config : unconfig
1895 M5329AFEE_config) NAND=0;; \
1896 M5329BFEE_config) NAND=16;; \
1898 if [ "$${NAND}" != "0" ] ; then \
1899 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1901 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1903 M5373EVB_config : unconfig
1905 M5373EVB_config) NAND=16;; \
1907 if [ "$${NAND}" != "0" ] ; then \
1908 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1910 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1913 M54451EVB_spansion_config \
1914 M54451EVB_stmicro_config : unconfig
1916 M54451EVB_config) FLASH=SPANSION;; \
1917 M54451EVB_spansion_config) FLASH=SPANSION;; \
1918 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1920 if [ "$${FLASH}" = "SPANSION" ] ; then \
1921 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1922 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1923 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1924 $(XECHO) "... with SPANSION boot..." ; \
1926 if [ "$${FLASH}" = "STMICRO" ] ; then \
1927 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1928 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1929 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1930 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1931 $(XECHO) "... with ST Micro boot..." ; \
1933 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1934 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1937 M54455EVB_atmel_config \
1938 M54455EVB_intel_config \
1939 M54455EVB_a33_config \
1940 M54455EVB_a66_config \
1941 M54455EVB_i33_config \
1942 M54455EVB_i66_config \
1943 M54455EVB_stm33_config : unconfig
1945 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1946 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1947 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1948 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1949 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1950 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1951 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1952 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1954 if [ "$${FLASH}" = "INTEL" ] ; then \
1955 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1956 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1957 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1958 $(XECHO) "... with INTEL boot..." ; \
1960 if [ "$${FLASH}" = "ATMEL" ] ; then \
1961 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1962 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1963 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1964 $(XECHO) "... with ATMEL boot..." ; \
1966 if [ "$${FLASH}" = "STMICRO" ] ; then \
1967 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1968 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1969 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1970 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1971 $(XECHO) "... with ST Micro boot..." ; \
1973 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1974 $(XECHO) "... with $${FREQ}Hz input clock"
1975 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1983 M5475GFE_config : unconfig
1985 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1986 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1987 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1988 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1989 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1990 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1991 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1993 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1994 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1995 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1996 if [ "$${RAM1}" != "0" ] ; then \
1997 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1999 if [ "$${CODE}" != "0" ] ; then \
2000 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2002 if [ "$${VID}" == "1" ] ; then \
2003 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2005 if [ "$${USB}" == "1" ] ; then \
2006 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2008 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2017 M5485HFE_config : unconfig
2019 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2020 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2021 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2022 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2023 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2024 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2025 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2026 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2028 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2029 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2030 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2031 if [ "$${RAM1}" != "0" ] ; then \
2032 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2034 if [ "$${CODE}" != "0" ] ; then \
2035 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2037 if [ "$${VID}" == "1" ] ; then \
2038 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2040 if [ "$${USB}" == "1" ] ; then \
2041 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2043 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2045 TASREG_config : unconfig
2046 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2048 #########################################################################
2050 #########################################################################
2052 MPC8313ERDB_33_config \
2053 MPC8313ERDB_66_config \
2054 MPC8313ERDB_NAND_33_config \
2055 MPC8313ERDB_NAND_66_config: unconfig
2056 @mkdir -p $(obj)include
2057 @mkdir -p $(obj)board/freescale/mpc8313erdb
2058 @if [ "$(findstring _33_,$@)" ] ; then \
2059 $(XECHO) -n "...33M ..." ; \
2060 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2062 if [ "$(findstring _66_,$@)" ] ; then \
2063 $(XECHO) -n "...66M..." ; \
2064 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2066 if [ "$(findstring _NAND_,$@)" ] ; then \
2067 $(XECHO) -n "...NAND..." ; \
2068 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2069 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2071 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2073 MPC8315ERDB_config: unconfig
2074 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2076 MPC8323ERDB_config: unconfig
2077 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2079 MPC832XEMDS_config \
2080 MPC832XEMDS_HOST_33_config \
2081 MPC832XEMDS_HOST_66_config \
2082 MPC832XEMDS_SLAVE_config \
2083 MPC832XEMDS_ATM_config: unconfig
2084 @mkdir -p $(obj)include
2085 @if [ "$(findstring _HOST_,$@)" ] ; then \
2086 $(XECHO) -n "... PCI HOST " ; \
2087 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2089 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2090 $(XECHO) "...PCI SLAVE 66M" ; \
2091 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2092 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2094 if [ "$(findstring _33_,$@)" ] ; then \
2095 $(XECHO) -n "...33M ..." ; \
2096 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2097 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2099 if [ "$(findstring _66_,$@)" ] ; then \
2100 $(XECHO) -n "...66M..." ; \
2101 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2102 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2104 if [ "$(findstring _ATM_,$@)" ] ; then \
2105 $(XECHO) -n "...ATM..." ; \
2106 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2107 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2109 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2111 MPC8349EMDS_config: unconfig
2112 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2115 MPC8349ITX_LOWBOOT_config \
2116 MPC8349ITXGP_config: unconfig
2117 @mkdir -p $(obj)include
2118 @mkdir -p $(obj)board/freescale/mpc8349itx
2119 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2120 @if [ "$(findstring GP,$@)" ] ; then \
2121 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2123 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2124 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2126 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2128 MPC8360EMDS_config \
2129 MPC8360EMDS_HOST_33_config \
2130 MPC8360EMDS_HOST_66_config \
2131 MPC8360EMDS_SLAVE_config \
2132 MPC8360EMDS_ATM_config: unconfig
2133 @mkdir -p $(obj)include
2134 @if [ "$(findstring _HOST_,$@)" ] ; then \
2135 $(XECHO) -n "... PCI HOST " ; \
2136 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2138 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2139 $(XECHO) "...PCI SLAVE 66M" ; \
2140 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2141 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2143 if [ "$(findstring _33_,$@)" ] ; then \
2144 $(XECHO) -n "...33M ..." ; \
2145 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2146 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2148 if [ "$(findstring _66_,$@)" ] ; then \
2149 $(XECHO) -n "...66M..." ; \
2150 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2151 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2153 if [ "$(findstring _ATM_,$@)" ] ; then \
2154 $(XECHO) -n "...ATM..." ; \
2155 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2156 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2158 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2160 MPC8360ERDK_33_config \
2161 MPC8360ERDK_66_config \
2162 MPC8360ERDK_config: unconfig
2163 @mkdir -p $(obj)include
2164 @if [ "$(findstring _33_,$@)" ] ; then \
2165 $(XECHO) -n "... CLKIN 33MHz " ; \
2166 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2168 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2170 MPC837XEMDS_config \
2171 MPC837XEMDS_HOST_config: unconfig
2172 @mkdir -p $(obj)include
2173 @if [ "$(findstring _HOST_,$@)" ] ; then \
2174 $(XECHO) -n "... PCI HOST " ; \
2175 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2177 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2179 MPC837XERDB_config: unconfig
2180 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2182 MVBLM7_config: unconfig
2183 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2185 sbc8349_config: unconfig
2186 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2188 TQM834x_config: unconfig
2189 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2192 #########################################################################
2194 #########################################################################
2196 ATUM8548_config: unconfig
2197 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2199 MPC8540ADS_config: unconfig
2200 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2202 MPC8540EVAL_config \
2203 MPC8540EVAL_33_config \
2204 MPC8540EVAL_66_config \
2205 MPC8540EVAL_33_slave_config \
2206 MPC8540EVAL_66_slave_config: unconfig
2207 @mkdir -p $(obj)include
2208 @if [ "$(findstring _33_,$@)" ] ; then \
2209 $(XECHO) "... 33 MHz PCI" ; \
2211 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2212 $(XECHO) "... 66 MHz PCI" ; \
2214 if [ "$(findstring _slave_,$@)" ] ; then \
2215 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2216 $(XECHO) " slave" ; \
2218 $(XECHO) " host" ; \
2220 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2222 MPC8560ADS_config: unconfig
2223 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2225 MPC8541CDS_legacy_config \
2226 MPC8541CDS_config: unconfig
2227 @mkdir -p $(obj)include
2228 @if [ "$(findstring _legacy_,$@)" ] ; then \
2229 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2230 $(XECHO) "... legacy" ; \
2232 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2234 MPC8544DS_config: unconfig
2235 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2237 MPC8548CDS_legacy_config \
2238 MPC8548CDS_config: unconfig
2239 @mkdir -p $(obj)include
2240 @if [ "$(findstring _legacy_,$@)" ] ; then \
2241 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2242 $(XECHO) "... legacy" ; \
2244 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2246 MPC8555CDS_legacy_config \
2247 MPC8555CDS_config: unconfig
2248 @mkdir -p $(obj)include
2249 @if [ "$(findstring _legacy_,$@)" ] ; then \
2250 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2251 $(XECHO) "... legacy" ; \
2253 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2255 MPC8568MDS_config: unconfig
2256 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2258 PM854_config: unconfig
2259 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2261 PM856_config: unconfig
2262 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2266 sbc8540_66_config: unconfig
2267 @mkdir -p $(obj)include
2268 @if [ "$(findstring _66_,$@)" ] ; then \
2269 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2270 $(XECHO) "... 66 MHz PCI" ; \
2272 $(XECHO) "... 33 MHz PCI" ; \
2274 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2276 sbc8548_config: unconfig
2277 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2281 sbc8560_66_config: unconfig
2282 @mkdir -p $(obj)include
2283 @if [ "$(findstring _66_,$@)" ] ; then \
2284 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2285 $(XECHO) "... 66 MHz PCI" ; \
2287 $(XECHO) "... 33 MHz PCI" ; \
2289 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2291 socrates_config: unconfig
2292 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2294 stxgp3_config: unconfig
2295 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2298 stxssa_4M_config: unconfig
2299 @mkdir -p $(obj)include
2300 @if [ "$(findstring _4M_,$@)" ] ; then \
2301 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2302 $(XECHO) "... with 4 MiB flash memory" ; \
2304 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2310 TQM8560_config: unconfig
2311 @mkdir -p $(obj)include
2312 @CTYPE=$(subst TQM,,$(@:_config=)); \
2313 $(XECHO) "... TQM"$${CTYPE}; \
2314 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2315 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2316 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2317 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2318 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2320 #########################################################################
2322 #########################################################################
2324 MPC8610HPCD_config: unconfig
2325 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2327 MPC8641HPCN_config: unconfig
2328 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2330 sbc8641d_config: unconfig
2331 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2333 #########################################################################
2335 #########################################################################
2337 AmigaOneG3SE_config: unconfig
2338 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2340 BAB7xx_config: unconfig
2341 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2343 CPCI750_config: unconfig
2344 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2346 DB64360_config: unconfig
2347 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2349 DB64460_config: unconfig
2350 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2352 ELPPC_config: unconfig
2353 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2356 EVB64260_750CX_config: unconfig
2357 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2359 mpc7448hpc2_config: unconfig
2360 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2362 P3G4_config: unconfig
2363 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2366 p3m7448_config: unconfig
2367 @mkdir -p $(obj)include
2368 @if [ "$(findstring 750_,$@)" ] ; then \
2369 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2371 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2373 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2376 PCIPPC6_config: unconfig
2377 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2379 ppmc7xx_config: unconfig
2380 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2382 ZUMA_config: unconfig
2383 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2385 #========================================================================
2387 #========================================================================
2388 #########################################################################
2389 ## StrongARM Systems
2390 #########################################################################
2392 assabet_config : unconfig
2393 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2395 dnp1110_config : unconfig
2396 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2398 gcplus_config : unconfig
2399 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2401 lart_config : unconfig
2402 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2404 shannon_config : unconfig
2405 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2407 #########################################################################
2409 #########################################################################
2411 #########################################################################
2412 ## Atmel AT91RM9200 Systems
2413 #########################################################################
2415 at91rm9200dk_config : unconfig
2416 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2418 at91sam9261ek_config : unconfig
2419 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2421 at91sam9263ek_config : unconfig
2422 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2424 at91sam9rlek_config : unconfig
2425 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2427 cmc_pu2_config : unconfig
2428 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2430 csb637_config : unconfig
2431 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2433 kb9202_config : unconfig
2434 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2436 m501sk_config : unconfig
2437 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2439 mp2usb_config : unconfig
2440 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2442 #########################################################################
2443 ## Atmel ARM926EJ-S Systems
2444 #########################################################################
2446 at91cap9adk_config : unconfig
2447 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2449 at91sam9260ek_config : unconfig
2450 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2452 ########################################################################
2453 ## ARM Integrator boards - see doc/README-integrator for more info.
2454 integratorap_config \
2463 ap946es_config: unconfig
2464 @board/integratorap/split_by_variant.sh $@
2466 integratorcp_config \
2475 cp1026_config: unconfig
2476 @board/integratorcp/split_by_variant.sh $@
2478 davinci_dvevm_config : unconfig
2479 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2481 davinci_schmoogie_config : unconfig
2482 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2484 davinci_sffsdr_config : unconfig
2485 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2487 davinci_sonata_config : unconfig
2488 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2491 lpd7a404_config: unconfig
2492 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2494 mx1ads_config : unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2497 mx1fs2_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2500 netstar_config: unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2503 omap1510inn_config : unconfig
2504 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2506 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2508 omap1610inn_config \
2509 omap1610inn_cs0boot_config \
2510 omap1610inn_cs3boot_config \
2511 omap1610inn_cs_autoboot_config \
2513 omap1610h2_cs0boot_config \
2514 omap1610h2_cs3boot_config \
2515 omap1610h2_cs_autoboot_config: unconfig
2516 @mkdir -p $(obj)include
2517 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2518 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2519 $(XECHO) "... configured for CS0 boot"; \
2520 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2521 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2522 $(XECHO) "... configured for CS_AUTO boot"; \
2524 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2525 $(XECHO) "... configured for CS3 boot"; \
2527 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2529 omap5912osk_config : unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2532 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2535 omap730p2_cs0boot_config \
2536 omap730p2_cs3boot_config : unconfig
2537 @mkdir -p $(obj)include
2538 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2539 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2540 $(XECHO) "... configured for CS0 boot"; \
2542 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2543 $(XECHO) "... configured for CS3 boot"; \
2545 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2547 sbc2410x_config: unconfig
2548 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2550 scb9328_config : unconfig
2551 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2553 smdk2400_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2556 smdk2410_config : unconfig
2557 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2559 SX1_config : unconfig
2560 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2562 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2563 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2566 trab_bigram_config \
2567 trab_bigflash_config \
2568 trab_old_config: unconfig
2569 @mkdir -p $(obj)include
2570 @mkdir -p $(obj)board/trab
2571 @[ -z "$(findstring _bigram,$@)" ] || \
2572 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2573 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2574 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2576 @[ -z "$(findstring _bigflash,$@)" ] || \
2577 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2578 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2579 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2580 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2582 @[ -z "$(findstring _old,$@)" ] || \
2583 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2584 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2585 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2586 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2588 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2590 VCMA9_config : unconfig
2591 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2593 #########################################################################
2594 # ARM supplied Versatile development boards
2595 #########################################################################
2597 cm4008_config : unconfig
2598 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2600 cm41xx_config : unconfig
2601 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2604 versatileab_config \
2605 versatilepb_config : unconfig
2606 @board/versatile/split_by_variant.sh $@
2608 voiceblue_config: unconfig
2609 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2611 #########################################################################
2613 #########################################################################
2615 B2_config : unconfig
2616 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2618 #########################################################################
2620 #########################################################################
2622 armadillo_config: unconfig
2623 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2625 ep7312_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2628 impa7_config : unconfig
2629 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2631 modnet50_config : unconfig
2632 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2634 evb4510_config : unconfig
2635 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2637 lpc2292sodimm_config: unconfig
2638 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2640 SMN42_config : unconfig
2641 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2643 #########################################################################
2645 #########################################################################
2647 actux1_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2650 actux2_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2653 actux3_config : unconfig
2654 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2656 actux4_config : unconfig
2657 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2659 cerf250_config : unconfig
2660 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2662 cradle_config : unconfig
2663 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2665 csb226_config : unconfig
2666 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2668 delta_config : unconfig
2669 @$(MKCONFIG) $(@:_config=) arm pxa delta
2671 innokom_config : unconfig
2672 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2674 ixdp425_config : unconfig
2675 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2677 ixdpg425_config : unconfig
2678 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2680 lubbock_config : unconfig
2681 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2683 pleb2_config : unconfig
2684 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2686 logodl_config : unconfig
2687 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2690 scpu_config: unconfig
2691 @mkdir -p $(obj)include
2692 @if [ "$(findstring scpu_,$@)" ] ; then \
2693 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2694 $(XECHO) "... on SCPU board variant" ; \
2696 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2698 pxa255_idp_config: unconfig
2699 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2701 trizepsiv_config : unconfig
2702 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2704 wepep250_config : unconfig
2705 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2707 xaeniax_config : unconfig
2708 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2710 xm250_config : unconfig
2711 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2713 xsengine_config : unconfig
2714 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2717 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2719 #########################################################################
2721 #########################################################################
2723 apollon_config : unconfig
2724 @mkdir -p $(obj)include
2725 @mkdir -p $(obj)onenand_ipl/board/apollon
2726 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2727 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2728 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2730 imx31_litekit_config : unconfig
2731 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2733 imx31_phycore_config : unconfig
2734 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2736 mx31ads_config : unconfig
2737 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2739 omap2420h4_config : unconfig
2740 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2742 #========================================================================
2744 #========================================================================
2745 #########################################################################
2747 #########################################################################
2748 sc520_cdp_config : unconfig
2749 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2751 sc520_spunk_config : unconfig
2752 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2754 sc520_spunk_rel_config : unconfig
2755 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2757 #========================================================================
2759 #========================================================================
2760 #########################################################################
2762 #########################################################################
2764 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2766 incaip_100MHz_config \
2767 incaip_133MHz_config \
2768 incaip_150MHz_config \
2769 incaip_config: unconfig
2770 @mkdir -p $(obj)include
2771 @[ -z "$(findstring _100MHz,$@)" ] || \
2772 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2773 $(XECHO) "... with 100MHz system clock" ; \
2775 @[ -z "$(findstring _133MHz,$@)" ] || \
2776 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2777 $(XECHO) "... with 133MHz system clock" ; \
2779 @[ -z "$(findstring _150MHz,$@)" ] || \
2780 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2781 $(XECHO) "... with 150MHz system clock" ; \
2783 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2785 tb0229_config: unconfig
2786 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2788 #########################################################################
2790 #########################################################################
2792 dbau1000_config : unconfig
2793 @mkdir -p $(obj)include
2794 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2795 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2797 dbau1100_config : unconfig
2798 @mkdir -p $(obj)include
2799 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2800 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2802 dbau1500_config : unconfig
2803 @mkdir -p $(obj)include
2804 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2805 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2807 dbau1550_config : unconfig
2808 @mkdir -p $(obj)include
2809 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2810 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2812 dbau1550_el_config : unconfig
2813 @mkdir -p $(obj)include
2814 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2815 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2817 gth2_config : unconfig
2818 @mkdir -p $(obj)include
2819 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2820 @$(MKCONFIG) -a gth2 mips mips gth2
2822 pb1000_config : unconfig
2823 @mkdir -p $(obj)include
2824 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2825 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2827 qemu_mips_config : unconfig
2828 @mkdir -p $(obj)include
2829 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2830 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2832 #########################################################################
2834 #########################################################################
2836 purple_config : unconfig
2837 @$(MKCONFIG) $(@:_config=) mips mips purple
2839 #========================================================================
2841 #========================================================================
2842 #########################################################################
2844 #########################################################################
2846 ADNPESC1_DNPEVA2_base_32_config \
2847 ADNPESC1_base_32_config \
2848 ADNPESC1_config: unconfig
2849 @mkdir -p $(obj)include
2850 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2851 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2852 $(XECHO) "... DNP/EVA2 configuration" ; \
2854 @[ -z "$(findstring _base_32,$@)" ] || \
2855 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2856 $(XECHO) "... NIOS 'base_32' configuration" ; \
2858 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2859 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2860 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2862 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2864 DK1C20_safe_32_config \
2865 DK1C20_standard_32_config \
2866 DK1C20_config: unconfig
2867 @mkdir -p $(obj)include
2868 @[ -z "$(findstring _safe_32,$@)" ] || \
2869 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2870 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2872 @[ -z "$(findstring _standard_32,$@)" ] || \
2873 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2874 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2876 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2877 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2878 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2880 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2882 DK1S10_safe_32_config \
2883 DK1S10_standard_32_config \
2884 DK1S10_mtx_ldk_20_config \
2885 DK1S10_config: unconfig
2886 @mkdir -p $(obj)include
2887 @[ -z "$(findstring _safe_32,$@)" ] || \
2888 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2889 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2891 @[ -z "$(findstring _standard_32,$@)" ] || \
2892 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2893 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2895 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2896 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2897 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2899 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2900 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2901 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2903 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2905 #########################################################################
2907 #########################################################################
2909 EP1C20_config : unconfig
2910 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2912 EP1S10_config : unconfig
2913 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2915 EP1S40_config : unconfig
2916 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2918 PK1C20_config : unconfig
2919 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2921 PCI5441_config : unconfig
2922 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2924 #========================================================================
2926 #========================================================================
2928 ml401_config: unconfig
2929 @mkdir -p $(obj)include
2930 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2931 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2933 suzaku_config: unconfig
2934 @mkdir -p $(obj)include
2935 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2936 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2938 xupv2p_config: unconfig
2939 @mkdir -p $(obj)include
2940 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2941 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2943 #========================================================================
2945 #========================================================================
2947 # Analog Devices boards
2948 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2950 $(BFIN_BOARDS:%=%_config) : unconfig
2951 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2957 #========================================================================
2959 #========================================================================
2961 atngw100_config : unconfig
2962 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2964 atstk1002_config : unconfig
2965 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2967 atstk1003_config : unconfig
2968 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2970 atstk1004_config : unconfig
2971 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2973 atstk1006_config : unconfig
2974 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2976 favr-32-ezkit_config : unconfig
2977 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
2979 hammerhead_config : unconfig
2980 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
2982 mimc200_config : unconfig
2983 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
2985 #========================================================================
2987 #========================================================================
2989 #########################################################################
2990 ## sh3 (Renesas SuperH)
2991 #########################################################################
2993 mpr2_config: unconfig
2994 @mkdir -p $(obj)include
2995 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
2996 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2998 ms7720se_config: unconfig
2999 @mkdir -p $(obj)include
3000 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3001 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3003 #########################################################################
3004 ## sh4 (Renesas SuperH)
3005 #########################################################################
3007 MigoR_config : unconfig
3008 @mkdir -p $(obj)include
3009 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3010 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3012 ms7750se_config: unconfig
3013 @mkdir -p $(obj)include
3014 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3015 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3017 ms7722se_config : unconfig
3018 @mkdir -p $(obj)include
3019 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3020 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3022 r2dplus_config : unconfig
3023 @mkdir -p $(obj)include
3024 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3025 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
3027 r7780mp_config: unconfig
3028 @mkdir -p $(obj)include
3029 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3030 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
3032 sh7763rdp_config : unconfig
3033 @mkdir -p $(obj)include
3034 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3035 @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
3037 #========================================================================
3039 #========================================================================
3041 #########################################################################
3043 #########################################################################
3045 # Gaisler GR-XC3S-1500 board
3046 gr_xc3s_1500_config : unconfig
3047 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3049 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3050 gr_cpci_ax2000_config : unconfig
3051 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3053 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3054 # Development board Stratix II edition, FPGA Device EP2S60.
3055 gr_ep2s60_config: unconfig
3056 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3058 # Gaisler LEON3 GRSIM simulator
3059 grsim_config : unconfig
3060 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3062 #########################################################################
3064 #########################################################################
3066 # Gaisler LEON2 GRSIM simulator
3067 grsim_leon2_config : unconfig
3068 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3070 #########################################################################
3071 #########################################################################
3072 #########################################################################
3075 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3076 $(obj)examples/hello_world $(obj)examples/interrupt \
3077 $(obj)examples/mem_to_mem_idma2intr \
3078 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3079 $(obj)examples/test_burst $(obj)examples/timer
3080 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3081 $(obj)tools/env/{fw_printenv,fw_setenv} \
3082 $(obj)tools/envcrc \
3083 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3084 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3085 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3086 $(obj)tools/ncb $(obj)tools/ubsha1
3087 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3088 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3089 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3090 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3091 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3092 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3093 @rm -f $(obj)include/bmp_logo.h
3094 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3095 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3096 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3097 @find $(OBJTREE) -type f \
3098 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3099 -o -name '*.o' -o -name '*.a' \) -print \
3103 @find $(OBJTREE) -type f \( -name .depend \
3104 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3107 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3108 $(obj)cscope.* $(obj)*.*~
3109 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3110 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3111 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3112 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3113 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3114 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3115 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3116 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3117 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3119 ifeq ($(OBJTREE),$(SRCTREE))
3121 distclean: clobber unconfig
3124 distclean: clobber unconfig
3129 F=`basename $(TOPDIR)` ; cd .. ; \
3130 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3132 #########################################################################