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 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
920 NETVIA_config: unconfig
921 @mkdir -p $(obj)include
922 @[ -z "$(findstring NETVIA_config,$@)" ] || \
923 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
924 $(XECHO) "... Version 1" ; \
926 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
927 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
928 $(XECHO) "... Version 2" ; \
930 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
932 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
935 NETPHONE_config: unconfig
936 @mkdir -p $(obj)include
937 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
938 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
940 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
941 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
943 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
945 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
947 NETTA_ISDN_6412_SWAPHOOK_config \
948 NETTA_ISDN_SWAPHOOK_config \
949 NETTA_6412_SWAPHOOK_config \
950 NETTA_SWAPHOOK_config \
951 NETTA_ISDN_6412_config \
954 NETTA_config: unconfig
955 @mkdir -p $(obj)include
956 @[ -z "$(findstring ISDN_,$@)" ] || \
957 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
959 @[ -n "$(findstring ISDN_,$@)" ] || \
960 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
962 @[ -z "$(findstring 6412_,$@)" ] || \
963 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
965 @[ -n "$(findstring 6412_,$@)" ] || \
966 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
968 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
969 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
971 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
972 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
974 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
976 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
979 NETTA2_config: unconfig
980 @mkdir -p $(obj)include
981 @[ -z "$(findstring NETTA2_config,$@)" ] || \
982 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
984 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
985 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
987 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
991 CP850_config: unconfig
992 @mkdir -p $(obj)include
993 @[ -z "$(findstring CP850,$@)" ] || \
994 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
995 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
997 @[ -z "$(findstring Rev1,$@)" ] || \
998 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1000 @[ -z "$(findstring Rev2,$@)" ] || \
1001 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1003 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1005 NX823_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1008 pcu_e_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1011 QS850_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1014 QS823_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1017 QS860T_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1020 quantum_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1023 R360MPI_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1026 RBC823_config: unconfig
1027 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1029 RPXClassic_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1032 RPXlite_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1035 RPXlite_DW_64_config \
1036 RPXlite_DW_LCD_config \
1037 RPXlite_DW_64_LCD_config \
1038 RPXlite_DW_NVRAM_config \
1039 RPXlite_DW_NVRAM_64_config \
1040 RPXlite_DW_NVRAM_LCD_config \
1041 RPXlite_DW_NVRAM_64_LCD_config \
1042 RPXlite_DW_config: unconfig
1043 @mkdir -p $(obj)include
1044 @[ -z "$(findstring _64,$@)" ] || \
1045 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1046 $(XECHO) "... with 64MHz system clock ..."; \
1048 @[ -z "$(findstring _LCD,$@)" ] || \
1049 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1050 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1051 $(XECHO) "... with LCD display ..."; \
1053 @[ -z "$(findstring _NVRAM,$@)" ] || \
1054 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1055 $(XECHO) "... with ENV in NVRAM ..."; \
1057 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1059 rmu_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1062 RRvision_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1065 RRvision_LCD_config: unconfig
1066 @mkdir -p $(obj)include
1067 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1068 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1069 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1071 SM850_config : unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1074 spc1920_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1077 SPD823TS_config: unconfig
1078 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1080 stxxtc_config: unconfig
1081 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1083 svm_sc8xx_config: unconfig
1084 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1086 SXNI855T_config: unconfig
1087 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1089 # EMK MPC8xx based modules
1090 TOP860_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1093 # Play some tricks for configuration selection
1094 # Only 855 and 860 boards may come with FEC
1095 # and only 823 boards may have LCD support
1096 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1102 TQM823L_LCD_config \
1115 virtlab2_config: unconfig
1116 @mkdir -p $(obj)include
1117 @[ -z "$(findstring _LCD,$@)" ] || \
1118 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1119 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1120 $(XECHO) "... with LCD display" ; \
1122 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1124 TTTech_config: unconfig
1125 @mkdir -p $(obj)include
1126 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1127 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1128 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1130 uc100_config : unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1133 v37_config: unconfig
1134 @mkdir -p $(obj)include
1135 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1136 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1137 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1139 wtk_config: unconfig
1140 @mkdir -p $(obj)include
1141 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1142 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1143 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1145 #########################################################################
1147 #########################################################################
1148 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1150 acadia_config: unconfig
1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1153 acadia_nand_config: unconfig
1154 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1155 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1156 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1157 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1158 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1159 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1161 ADCIOP_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1164 alpr_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1167 AP1000_config:unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1170 APC405_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1173 AR405_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1176 ASH405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1179 bamboo_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1182 bamboo_nand_config: unconfig
1183 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1184 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1185 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1186 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1187 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1188 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1190 bubinga_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1193 CANBT_config: unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1196 # Canyonlands & Glacier use different U-Boot images
1197 canyonlands_config \
1198 glacier_config: unconfig
1199 @mkdir -p $(obj)include
1200 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1201 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1202 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1204 canyonlands_nand_config \
1205 glacier_nand_config: unconfig
1206 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1207 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1208 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1209 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1210 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1211 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1212 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1213 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1216 CATcenter_25_config \
1217 CATcenter_33_config: unconfig
1218 @mkdir -p $(obj)include
1219 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1220 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1221 @[ -z "$(findstring _25,$@)" ] || \
1222 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1223 $(XECHO) "SysClk = 25MHz" ; \
1225 @[ -z "$(findstring _33,$@)" ] || \
1226 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1227 $(XECHO) "SysClk = 33MHz" ; \
1229 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1231 CMS700_config: unconfig
1232 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1234 CPCI2DP_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1240 CPCI405AB_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1242 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1244 CPCIISER4_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1247 CRAYL1_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1250 csb272_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1253 csb472_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1256 DASA_SIM_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1259 DP405_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1262 DU405_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1265 DU440_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1268 ebony_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1271 ERIC_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1274 EXBITGEN_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1277 G2000_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1280 hcu4_config: unconfig
1281 @mkdir -p $(obj)board/netstal/common
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1284 hcu5_config: unconfig
1285 @mkdir -p $(obj)board/netstal/common
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1288 HH405_config: unconfig
1289 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1291 HUB405_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1294 JSE_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1297 KAREF_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1300 katmai_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1303 # Kilauea & Haleakala images are identical (recognized via PVR)
1305 haleakala_config: unconfig
1306 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1308 kilauea_nand_config \
1309 haleakala_nand_config: unconfig
1310 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1311 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1312 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1313 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1314 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1315 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1317 korat_config: unconfig
1318 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1320 luan_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1323 lwmon5_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1326 makalu_config: unconfig
1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1329 mcu25_config: unconfig
1330 @mkdir -p $(obj)board/netstal/common
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1333 METROBOX_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1336 MIP405_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1339 MIP405T_config: unconfig
1340 @mkdir -p $(obj)include
1341 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1342 @$(XECHO) "Enable subset config for MIP405T"
1343 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1345 ML2_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1348 ml300_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1351 ml507_flash_config: unconfig
1352 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1353 @cp $(obj)board/xilinx/ml507/u-boot-rom.lds $(obj)board/xilinx/ml507/u-boot.lds
1354 @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
1355 @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
1357 ml507_config: unconfig
1358 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1359 @cp $(obj)board/xilinx/ml507/u-boot-ram.lds $(obj)board/xilinx/ml507/u-boot.lds
1360 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1362 ocotea_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1366 ORSG_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1369 p3p440_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1372 PCI405_config: unconfig
1373 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1375 pcs440ep_config: unconfig
1376 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1378 PIP405_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1381 PLU405_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1384 PMC405_config: unconfig
1385 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1387 PMC440_config: unconfig
1388 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1390 PPChameleonEVB_config \
1391 PPChameleonEVB_BA_25_config \
1392 PPChameleonEVB_ME_25_config \
1393 PPChameleonEVB_HI_25_config \
1394 PPChameleonEVB_BA_33_config \
1395 PPChameleonEVB_ME_33_config \
1396 PPChameleonEVB_HI_33_config: unconfig
1397 @mkdir -p $(obj)include
1398 @[ -z "$(findstring EVB_BA,$@)" ] || \
1399 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1400 $(XECHO) "... BASIC model" ; \
1402 @[ -z "$(findstring EVB_ME,$@)" ] || \
1403 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1404 $(XECHO) "... MEDIUM model" ; \
1406 @[ -z "$(findstring EVB_HI,$@)" ] || \
1407 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1408 $(XECHO) "... HIGH-END model" ; \
1410 @[ -z "$(findstring _25,$@)" ] || \
1411 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1412 $(XECHO) "SysClk = 25MHz" ; \
1414 @[ -z "$(findstring _33,$@)" ] || \
1415 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1416 $(XECHO) "SysClk = 33MHz" ; \
1418 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1420 quad100hd_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1423 redwood_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1426 sbc405_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1433 rainier_config: unconfig
1434 @mkdir -p $(obj)include
1435 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1436 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1437 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1439 sequoia_nand_config \
1440 rainier_nand_config: unconfig
1441 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1442 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1443 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1444 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1445 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1446 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1447 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1448 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1450 taihu_config: unconfig
1451 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1453 taishan_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1456 VOH405_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1459 VOM405_config: unconfig
1460 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1463 W7OLMG_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1466 # Walnut & Sycamore images are identical (recognized via PVR)
1468 sycamore_config: unconfig
1469 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1471 WUH405_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1474 XPEDITE1K_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1478 yellowstone_config: unconfig
1479 @mkdir -p $(obj)include
1480 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1481 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1482 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1484 yucca_config: unconfig
1485 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1487 zeus_config: unconfig
1488 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1490 #########################################################################
1492 #########################################################################
1495 Yukon8220_config: unconfig
1496 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1498 sorcery_config: unconfig
1499 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1501 #########################################################################
1503 #########################################################################
1504 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1506 A3000_config: unconfig
1507 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1509 barco_config: unconfig
1510 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1512 BMW_config: unconfig
1513 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1516 CPC45_ROMBOOT_config: unconfig
1517 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1518 @cd $(obj)include ; \
1519 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1520 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1521 $(XECHO) "... booting from 8-bit flash" ; \
1523 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1524 $(XECHO) "... booting from 64-bit flash" ; \
1526 echo "export CONFIG_BOOT_ROM" >> config.mk;
1528 CU824_config: unconfig
1529 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1531 debris_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1534 eXalion_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1537 HIDDEN_DRAGON_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1540 kvme080_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1543 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1545 #linkstation_HDLAN_config \
1546 # Remove this line when HDLAN is fixed
1547 linkstation_HGLAN_config: unconfig
1548 @mkdir -p $(obj)include
1550 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1551 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1553 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1555 MOUSSE_config: unconfig
1556 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1558 MUSENKI_config: unconfig
1559 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1561 MVBLUE_config: unconfig
1562 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1564 OXC_config: unconfig
1565 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1567 PN62_config: unconfig
1568 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1570 Sandpoint8240_config: unconfig
1571 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1573 Sandpoint8245_config: unconfig
1574 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1576 sbc8240_config: unconfig
1577 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1579 SL8245_config: unconfig
1580 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1582 utx8245_config: unconfig
1583 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1585 #########################################################################
1587 #########################################################################
1589 atc_config: unconfig
1590 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1592 cogent_mpc8260_config: unconfig
1593 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1596 CPU86_ROMBOOT_config: unconfig
1597 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1598 @cd $(obj)include ; \
1599 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1600 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1601 $(XECHO) "... booting from 8-bit flash" ; \
1603 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1604 $(XECHO) "... booting from 64-bit flash" ; \
1606 echo "export CONFIG_BOOT_ROM" >> config.mk;
1609 CPU87_ROMBOOT_config: unconfig
1610 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1611 @cd $(obj)include ; \
1612 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1613 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1614 $(XECHO) "... booting from 8-bit flash" ; \
1616 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1617 $(XECHO) "... booting from 64-bit flash" ; \
1619 echo "export CONFIG_BOOT_ROM" >> config.mk;
1622 ep8248E_config : unconfig
1623 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1625 ep8260_config: unconfig
1626 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1628 ep82xxm_config: unconfig
1629 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1631 gw8260_config: unconfig
1632 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1634 hymod_config: unconfig
1635 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1637 IDS8247_config: unconfig
1638 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1640 IPHASE4539_config: unconfig
1641 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1644 ISPAN_REVB_config: unconfig
1645 @mkdir -p $(obj)include
1646 @if [ "$(findstring _REVB_,$@)" ] ; then \
1647 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1649 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1651 mgcoge_config : unconfig
1652 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1655 MPC8260ADS_lowboot_config \
1656 MPC8260ADS_33MHz_config \
1657 MPC8260ADS_33MHz_lowboot_config \
1658 MPC8260ADS_40MHz_config \
1659 MPC8260ADS_40MHz_lowboot_config \
1661 MPC8272ADS_lowboot_config \
1663 PQ2FADS_lowboot_config \
1665 PQ2FADS-VR_lowboot_config \
1667 PQ2FADS-ZU_lowboot_config \
1668 PQ2FADS-ZU_66MHz_config \
1669 PQ2FADS-ZU_66MHz_lowboot_config \
1671 @mkdir -p $(obj)include
1672 @mkdir -p $(obj)board/freescale/mpc8260ads
1673 $(if $(findstring PQ2FADS,$@), \
1674 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1675 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1676 $(if $(findstring MHz,$@), \
1677 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1678 $(if $(findstring VR,$@), \
1679 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1680 @[ -z "$(findstring lowboot_,$@)" ] || \
1681 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1682 $(XECHO) "... with lowboot configuration" ; \
1684 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1686 MPC8266ADS_config: unconfig
1687 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1689 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1691 PM825_ROMBOOT_config \
1692 PM825_BIGFLASH_config \
1693 PM825_ROMBOOT_BIGFLASH_config \
1695 PM826_ROMBOOT_config \
1696 PM826_BIGFLASH_config \
1697 PM826_ROMBOOT_BIGFLASH_config: unconfig
1698 @mkdir -p $(obj)include
1699 @mkdir -p $(obj)board/pm826
1700 @if [ "$(findstring PM825_,$@)" ] ; then \
1701 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1703 >$(obj)include/config.h ; \
1705 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1706 $(XECHO) "... booting from 8-bit flash" ; \
1707 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1708 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1709 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1710 $(XECHO) "... with 32 MB Flash" ; \
1711 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1714 $(XECHO) "... booting from 64-bit flash" ; \
1715 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1716 $(XECHO) "... with 32 MB Flash" ; \
1717 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1718 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1720 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1723 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1727 PM828_ROMBOOT_config \
1728 PM828_ROMBOOT_PCI_config: unconfig
1729 @mkdir -p $(obj)include
1730 @mkdir -p $(obj)board/pm826
1731 @if [ "$(findstring _PCI_,$@)" ] ; then \
1732 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1733 $(XECHO) "... with PCI enabled" ; \
1735 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1736 $(XECHO) "... booting from 8-bit flash" ; \
1737 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1738 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1740 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1742 ppmc8260_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1745 Rattler8248_config \
1746 Rattler_config: unconfig
1747 @mkdir -p $(obj)include
1748 $(if $(findstring 8248,$@), \
1749 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1750 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1752 RPXsuper_config: unconfig
1753 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1755 rsdproto_config: unconfig
1756 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1758 sacsng_config: unconfig
1759 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1761 sbc8260_config: unconfig
1762 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1764 SCM_config: unconfig
1765 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1777 TQM8265_AA_config: unconfig
1778 @mkdir -p $(obj)include
1780 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1781 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1782 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1783 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1784 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1785 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1786 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1787 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1788 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1789 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1790 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1792 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1793 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1795 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1796 echo "... with $${CFREQ}MHz system clock" ; \
1797 if [ "$${CACHE}" = "yes" ] ; then \
1798 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1799 $(XECHO) "... with L2 Cache support" ; \
1801 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1802 $(XECHO) "... without L2 Cache support" ; \
1804 if [ "$${BMODE}" = "60x" ] ; then \
1805 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1806 $(XECHO) "... with 60x Bus Mode" ; \
1808 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1809 $(XECHO) "... without 60x Bus Mode" ; \
1811 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1813 TQM8272_config: unconfig
1814 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1816 VoVPN-GW_66MHz_config \
1817 VoVPN-GW_100MHz_config: unconfig
1818 @mkdir -p $(obj)include
1819 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1820 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1822 ZPC1900_config: unconfig
1823 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1825 #########################################################################
1827 #########################################################################
1829 M52277EVB_config: unconfig
1830 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1833 M5235EVB_Flash16_config \
1834 M5235EVB_Flash32_config: unconfig
1836 M5235EVB_config) FLASH=16;; \
1837 M5235EVB_Flash16_config) FLASH=16;; \
1838 M5235EVB_Flash32_config) FLASH=32;; \
1840 if [ "$${FLASH}" != "16" ] ; then \
1841 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1842 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1843 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1845 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1846 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1848 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1850 M5249EVB_config : unconfig
1851 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1853 M5253DEMO_config : unconfig
1854 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1856 M5253EVBE_config : unconfig
1857 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1859 cobra5272_config : unconfig
1860 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1862 EB+MCF-EV123_config : unconfig
1863 @mkdir -p $(obj)include
1864 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1865 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1866 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1868 EB+MCF-EV123_internal_config : unconfig
1869 @mkdir -p $(obj)include
1870 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1871 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1872 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1874 idmr_config : unconfig
1875 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1877 M5271EVB_config : unconfig
1878 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1880 M5272C3_config : unconfig
1881 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1883 M5275EVB_config : unconfig
1884 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1886 M5282EVB_config : unconfig
1887 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1890 M5329BFEE_config : unconfig
1892 M5329AFEE_config) NAND=0;; \
1893 M5329BFEE_config) NAND=16;; \
1895 if [ "$${NAND}" != "0" ] ; then \
1896 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1898 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1900 M5373EVB_config : unconfig
1902 M5373EVB_config) NAND=16;; \
1904 if [ "$${NAND}" != "0" ] ; then \
1905 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1907 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1910 M54451EVB_spansion_config \
1911 M54451EVB_stmicro_config : unconfig
1913 M54451EVB_config) FLASH=SPANSION;; \
1914 M54451EVB_spansion_config) FLASH=SPANSION;; \
1915 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1917 if [ "$${FLASH}" = "SPANSION" ] ; then \
1918 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1919 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1920 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1921 $(XECHO) "... with SPANSION boot..." ; \
1923 if [ "$${FLASH}" = "STMICRO" ] ; then \
1924 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1925 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1926 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1927 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1928 $(XECHO) "... with ST Micro boot..." ; \
1930 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1931 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1934 M54455EVB_atmel_config \
1935 M54455EVB_intel_config \
1936 M54455EVB_a33_config \
1937 M54455EVB_a66_config \
1938 M54455EVB_i33_config \
1939 M54455EVB_i66_config \
1940 M54455EVB_stm33_config : unconfig
1942 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1943 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1944 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1945 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1946 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1947 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1948 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1949 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1951 if [ "$${FLASH}" = "INTEL" ] ; then \
1952 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1953 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1954 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1955 $(XECHO) "... with INTEL boot..." ; \
1957 if [ "$${FLASH}" = "ATMEL" ] ; then \
1958 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1959 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1960 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1961 $(XECHO) "... with ATMEL boot..." ; \
1963 if [ "$${FLASH}" = "STMICRO" ] ; then \
1964 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1965 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1966 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1967 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1968 $(XECHO) "... with ST Micro boot..." ; \
1970 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1971 $(XECHO) "... with $${FREQ}Hz input clock"
1972 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1980 M5475GFE_config : unconfig
1982 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1983 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1984 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1985 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1986 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1987 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1988 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1990 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1991 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1992 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1993 if [ "$${RAM1}" != "0" ] ; then \
1994 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1996 if [ "$${CODE}" != "0" ] ; then \
1997 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1999 if [ "$${VID}" == "1" ] ; then \
2000 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2002 if [ "$${USB}" == "1" ] ; then \
2003 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2005 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2014 M5485HFE_config : unconfig
2016 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2017 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2018 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2019 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2020 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2021 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2022 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2023 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2025 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2026 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2027 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2028 if [ "$${RAM1}" != "0" ] ; then \
2029 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2031 if [ "$${CODE}" != "0" ] ; then \
2032 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2034 if [ "$${VID}" == "1" ] ; then \
2035 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2037 if [ "$${USB}" == "1" ] ; then \
2038 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2040 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2042 TASREG_config : unconfig
2043 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2045 #########################################################################
2047 #########################################################################
2049 MPC8313ERDB_33_config \
2050 MPC8313ERDB_66_config \
2051 MPC8313ERDB_NAND_33_config \
2052 MPC8313ERDB_NAND_66_config: unconfig
2053 @mkdir -p $(obj)include
2054 @mkdir -p $(obj)board/freescale/mpc8313erdb
2055 @if [ "$(findstring _33_,$@)" ] ; then \
2056 $(XECHO) -n "...33M ..." ; \
2057 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2059 if [ "$(findstring _66_,$@)" ] ; then \
2060 $(XECHO) -n "...66M..." ; \
2061 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2063 if [ "$(findstring _NAND_,$@)" ] ; then \
2064 $(XECHO) -n "...NAND..." ; \
2065 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2066 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2068 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2070 MPC8315ERDB_config: unconfig
2071 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2073 MPC8323ERDB_config: unconfig
2074 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2076 MPC832XEMDS_config \
2077 MPC832XEMDS_HOST_33_config \
2078 MPC832XEMDS_HOST_66_config \
2079 MPC832XEMDS_SLAVE_config \
2080 MPC832XEMDS_ATM_config: unconfig
2081 @mkdir -p $(obj)include
2082 @if [ "$(findstring _HOST_,$@)" ] ; then \
2083 $(XECHO) -n "... PCI HOST " ; \
2084 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2086 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2087 $(XECHO) "...PCI SLAVE 66M" ; \
2088 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2089 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2091 if [ "$(findstring _33_,$@)" ] ; then \
2092 $(XECHO) -n "...33M ..." ; \
2093 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2094 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2096 if [ "$(findstring _66_,$@)" ] ; then \
2097 $(XECHO) -n "...66M..." ; \
2098 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2099 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2101 if [ "$(findstring _ATM_,$@)" ] ; then \
2102 $(XECHO) -n "...ATM..." ; \
2103 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2104 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2106 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2108 MPC8349EMDS_config: unconfig
2109 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2112 MPC8349ITX_LOWBOOT_config \
2113 MPC8349ITXGP_config: unconfig
2114 @mkdir -p $(obj)include
2115 @mkdir -p $(obj)board/freescale/mpc8349itx
2116 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2117 @if [ "$(findstring GP,$@)" ] ; then \
2118 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2120 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2121 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2123 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2125 MPC8360EMDS_config \
2126 MPC8360EMDS_HOST_33_config \
2127 MPC8360EMDS_HOST_66_config \
2128 MPC8360EMDS_SLAVE_config \
2129 MPC8360EMDS_ATM_config: unconfig
2130 @mkdir -p $(obj)include
2131 @if [ "$(findstring _HOST_,$@)" ] ; then \
2132 $(XECHO) -n "... PCI HOST " ; \
2133 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2135 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2136 $(XECHO) "...PCI SLAVE 66M" ; \
2137 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2138 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2140 if [ "$(findstring _33_,$@)" ] ; then \
2141 $(XECHO) -n "...33M ..." ; \
2142 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2143 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2145 if [ "$(findstring _66_,$@)" ] ; then \
2146 $(XECHO) -n "...66M..." ; \
2147 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2148 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2150 if [ "$(findstring _ATM_,$@)" ] ; then \
2151 $(XECHO) -n "...ATM..." ; \
2152 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2153 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2155 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2157 MPC8360ERDK_33_config \
2158 MPC8360ERDK_66_config \
2159 MPC8360ERDK_config: unconfig
2160 @mkdir -p $(obj)include
2161 @if [ "$(findstring _33_,$@)" ] ; then \
2162 $(XECHO) -n "... CLKIN 33MHz " ; \
2163 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2165 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2167 MPC837XEMDS_config \
2168 MPC837XEMDS_HOST_config: unconfig
2169 @mkdir -p $(obj)include
2170 @if [ "$(findstring _HOST_,$@)" ] ; then \
2171 $(XECHO) -n "... PCI HOST " ; \
2172 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2174 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2176 MPC837XERDB_config: unconfig
2177 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2179 MVBLM7_config: unconfig
2180 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2182 sbc8349_config: unconfig
2183 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2185 TQM834x_config: unconfig
2186 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2189 #########################################################################
2191 #########################################################################
2193 ATUM8548_config: unconfig
2194 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2196 MPC8540ADS_config: unconfig
2197 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2199 MPC8540EVAL_config \
2200 MPC8540EVAL_33_config \
2201 MPC8540EVAL_66_config \
2202 MPC8540EVAL_33_slave_config \
2203 MPC8540EVAL_66_slave_config: unconfig
2204 @mkdir -p $(obj)include
2205 @if [ "$(findstring _33_,$@)" ] ; then \
2206 $(XECHO) "... 33 MHz PCI" ; \
2208 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2209 $(XECHO) "... 66 MHz PCI" ; \
2211 if [ "$(findstring _slave_,$@)" ] ; then \
2212 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2213 $(XECHO) " slave" ; \
2215 $(XECHO) " host" ; \
2217 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2219 MPC8560ADS_config: unconfig
2220 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2222 MPC8541CDS_legacy_config \
2223 MPC8541CDS_config: unconfig
2224 @mkdir -p $(obj)include
2225 @if [ "$(findstring _legacy_,$@)" ] ; then \
2226 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2227 $(XECHO) "... legacy" ; \
2229 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2231 MPC8544DS_config: unconfig
2232 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2234 MPC8548CDS_legacy_config \
2235 MPC8548CDS_config: unconfig
2236 @mkdir -p $(obj)include
2237 @if [ "$(findstring _legacy_,$@)" ] ; then \
2238 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2239 $(XECHO) "... legacy" ; \
2241 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2243 MPC8555CDS_legacy_config \
2244 MPC8555CDS_config: unconfig
2245 @mkdir -p $(obj)include
2246 @if [ "$(findstring _legacy_,$@)" ] ; then \
2247 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2248 $(XECHO) "... legacy" ; \
2250 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2252 MPC8568MDS_config: unconfig
2253 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2255 PM854_config: unconfig
2256 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2258 PM856_config: unconfig
2259 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2263 sbc8540_66_config: unconfig
2264 @mkdir -p $(obj)include
2265 @if [ "$(findstring _66_,$@)" ] ; then \
2266 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2267 $(XECHO) "... 66 MHz PCI" ; \
2269 $(XECHO) "... 33 MHz PCI" ; \
2271 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2273 sbc8548_config: unconfig
2274 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2278 sbc8560_66_config: unconfig
2279 @mkdir -p $(obj)include
2280 @if [ "$(findstring _66_,$@)" ] ; then \
2281 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2282 $(XECHO) "... 66 MHz PCI" ; \
2284 $(XECHO) "... 33 MHz PCI" ; \
2286 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2288 socrates_config: unconfig
2289 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2291 stxgp3_config: unconfig
2292 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2295 stxssa_4M_config: unconfig
2296 @mkdir -p $(obj)include
2297 @if [ "$(findstring _4M_,$@)" ] ; then \
2298 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2299 $(XECHO) "... with 4 MiB flash memory" ; \
2301 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2307 TQM8560_config: unconfig
2308 @mkdir -p $(obj)include
2309 @CTYPE=$(subst TQM,,$(@:_config=)); \
2310 $(XECHO) "... TQM"$${CTYPE}; \
2311 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2312 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2313 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2314 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2315 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2317 #########################################################################
2319 #########################################################################
2321 MPC8610HPCD_config: unconfig
2322 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2324 MPC8641HPCN_config: unconfig
2325 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2327 sbc8641d_config: unconfig
2328 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2330 #########################################################################
2332 #########################################################################
2334 AmigaOneG3SE_config: unconfig
2335 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2337 BAB7xx_config: unconfig
2338 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2340 CPCI750_config: unconfig
2341 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2343 DB64360_config: unconfig
2344 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2346 DB64460_config: unconfig
2347 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2349 ELPPC_config: unconfig
2350 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2353 EVB64260_750CX_config: unconfig
2354 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2356 mpc7448hpc2_config: unconfig
2357 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2359 P3G4_config: unconfig
2360 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2363 p3m7448_config: unconfig
2364 @mkdir -p $(obj)include
2365 @if [ "$(findstring 750_,$@)" ] ; then \
2366 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2368 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2370 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2373 PCIPPC6_config: unconfig
2374 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2376 ppmc7xx_config: unconfig
2377 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2379 ZUMA_config: unconfig
2380 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2382 #========================================================================
2384 #========================================================================
2385 #########################################################################
2386 ## StrongARM Systems
2387 #########################################################################
2389 assabet_config : unconfig
2390 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2392 dnp1110_config : unconfig
2393 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2395 gcplus_config : unconfig
2396 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2398 lart_config : unconfig
2399 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2401 shannon_config : unconfig
2402 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2404 #########################################################################
2406 #########################################################################
2408 #########################################################################
2409 ## Atmel AT91RM9200 Systems
2410 #########################################################################
2412 at91rm9200dk_config : unconfig
2413 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2415 at91sam9261ek_config : unconfig
2416 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2418 at91sam9263ek_config : unconfig
2419 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2421 at91sam9rlek_config : unconfig
2422 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2424 cmc_pu2_config : unconfig
2425 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2427 csb637_config : unconfig
2428 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2430 kb9202_config : unconfig
2431 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2433 m501sk_config : unconfig
2434 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2436 mp2usb_config : unconfig
2437 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2439 #########################################################################
2440 ## Atmel ARM926EJ-S Systems
2441 #########################################################################
2443 at91cap9adk_config : unconfig
2444 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2446 at91sam9260ek_config : unconfig
2447 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2449 ########################################################################
2450 ## ARM Integrator boards - see doc/README-integrator for more info.
2451 integratorap_config \
2460 ap946es_config: unconfig
2461 @board/integratorap/split_by_variant.sh $@
2463 integratorcp_config \
2472 cp1026_config: unconfig
2473 @board/integratorcp/split_by_variant.sh $@
2475 davinci_dvevm_config : unconfig
2476 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2478 davinci_schmoogie_config : unconfig
2479 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2481 davinci_sffsdr_config : unconfig
2482 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2484 davinci_sonata_config : unconfig
2485 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2488 lpd7a404_config: unconfig
2489 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2491 mx1ads_config : unconfig
2492 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2494 mx1fs2_config : unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2497 netstar_config: unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2500 omap1510inn_config : unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2503 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2505 omap1610inn_config \
2506 omap1610inn_cs0boot_config \
2507 omap1610inn_cs3boot_config \
2508 omap1610inn_cs_autoboot_config \
2510 omap1610h2_cs0boot_config \
2511 omap1610h2_cs3boot_config \
2512 omap1610h2_cs_autoboot_config: unconfig
2513 @mkdir -p $(obj)include
2514 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2515 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2516 $(XECHO) "... configured for CS0 boot"; \
2517 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2518 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2519 $(XECHO) "... configured for CS_AUTO boot"; \
2521 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2522 $(XECHO) "... configured for CS3 boot"; \
2524 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2526 omap5912osk_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2529 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2532 omap730p2_cs0boot_config \
2533 omap730p2_cs3boot_config : unconfig
2534 @mkdir -p $(obj)include
2535 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2536 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2537 $(XECHO) "... configured for CS0 boot"; \
2539 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2540 $(XECHO) "... configured for CS3 boot"; \
2542 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2544 sbc2410x_config: unconfig
2545 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2547 scb9328_config : unconfig
2548 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2550 smdk2400_config : unconfig
2551 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2553 smdk2410_config : unconfig
2554 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2556 SX1_config : unconfig
2557 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2559 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2560 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2563 trab_bigram_config \
2564 trab_bigflash_config \
2565 trab_old_config: unconfig
2566 @mkdir -p $(obj)include
2567 @mkdir -p $(obj)board/trab
2568 @[ -z "$(findstring _bigram,$@)" ] || \
2569 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2570 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2571 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2573 @[ -z "$(findstring _bigflash,$@)" ] || \
2574 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2575 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2576 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2577 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2579 @[ -z "$(findstring _old,$@)" ] || \
2580 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2581 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2582 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2583 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2585 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2587 VCMA9_config : unconfig
2588 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2590 #########################################################################
2591 # ARM supplied Versatile development boards
2592 #########################################################################
2594 cm4008_config : unconfig
2595 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2597 cm41xx_config : unconfig
2598 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2601 versatileab_config \
2602 versatilepb_config : unconfig
2603 @board/versatile/split_by_variant.sh $@
2605 voiceblue_config: unconfig
2606 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2608 #########################################################################
2610 #########################################################################
2612 B2_config : unconfig
2613 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2615 #########################################################################
2617 #########################################################################
2619 armadillo_config: unconfig
2620 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2622 ep7312_config : unconfig
2623 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2625 impa7_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2628 modnet50_config : unconfig
2629 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2631 evb4510_config : unconfig
2632 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2634 lpc2292sodimm_config: unconfig
2635 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2637 SMN42_config : unconfig
2638 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2640 #########################################################################
2642 #########################################################################
2644 actux1_config : unconfig
2645 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2647 actux2_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2650 actux3_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2653 actux4_config : unconfig
2654 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2656 cerf250_config : unconfig
2657 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2659 cradle_config : unconfig
2660 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2662 csb226_config : unconfig
2663 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2665 delta_config : unconfig
2666 @$(MKCONFIG) $(@:_config=) arm pxa delta
2668 innokom_config : unconfig
2669 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2671 ixdp425_config : unconfig
2672 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2674 ixdpg425_config : unconfig
2675 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2677 lubbock_config : unconfig
2678 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2680 pleb2_config : unconfig
2681 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2683 logodl_config : unconfig
2684 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2687 scpu_config: unconfig
2688 @mkdir -p $(obj)include
2689 @if [ "$(findstring scpu_,$@)" ] ; then \
2690 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2691 $(XECHO) "... on SCPU board variant" ; \
2693 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2695 pxa255_idp_config: unconfig
2696 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2698 trizepsiv_config : unconfig
2699 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2701 wepep250_config : unconfig
2702 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2704 xaeniax_config : unconfig
2705 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2707 xm250_config : unconfig
2708 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2710 xsengine_config : unconfig
2711 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2714 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2716 #########################################################################
2718 #########################################################################
2720 apollon_config : unconfig
2721 @mkdir -p $(obj)include
2722 @mkdir -p $(obj)onenand_ipl/board/apollon
2723 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2724 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2725 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2727 imx31_litekit_config : unconfig
2728 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2730 imx31_phycore_config : unconfig
2731 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2733 mx31ads_config : unconfig
2734 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2736 omap2420h4_config : unconfig
2737 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2739 #========================================================================
2741 #========================================================================
2742 #########################################################################
2744 #########################################################################
2745 sc520_cdp_config : unconfig
2746 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2748 sc520_spunk_config : unconfig
2749 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2751 sc520_spunk_rel_config : unconfig
2752 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2754 #========================================================================
2756 #========================================================================
2757 #########################################################################
2759 #########################################################################
2761 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2763 incaip_100MHz_config \
2764 incaip_133MHz_config \
2765 incaip_150MHz_config \
2766 incaip_config: unconfig
2767 @mkdir -p $(obj)include
2768 @[ -z "$(findstring _100MHz,$@)" ] || \
2769 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2770 $(XECHO) "... with 100MHz system clock" ; \
2772 @[ -z "$(findstring _133MHz,$@)" ] || \
2773 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2774 $(XECHO) "... with 133MHz system clock" ; \
2776 @[ -z "$(findstring _150MHz,$@)" ] || \
2777 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2778 $(XECHO) "... with 150MHz system clock" ; \
2780 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2782 tb0229_config: unconfig
2783 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2785 #########################################################################
2787 #########################################################################
2789 dbau1000_config : unconfig
2790 @mkdir -p $(obj)include
2791 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2792 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2794 dbau1100_config : unconfig
2795 @mkdir -p $(obj)include
2796 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2797 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2799 dbau1500_config : unconfig
2800 @mkdir -p $(obj)include
2801 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2802 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2804 dbau1550_config : unconfig
2805 @mkdir -p $(obj)include
2806 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2807 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2809 dbau1550_el_config : unconfig
2810 @mkdir -p $(obj)include
2811 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2812 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2814 gth2_config : unconfig
2815 @mkdir -p $(obj)include
2816 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2817 @$(MKCONFIG) -a gth2 mips mips gth2
2819 pb1000_config : unconfig
2820 @mkdir -p $(obj)include
2821 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2822 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2824 qemu_mips_config : unconfig
2825 @mkdir -p $(obj)include
2826 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2827 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2829 #########################################################################
2831 #########################################################################
2833 purple_config : unconfig
2834 @$(MKCONFIG) $(@:_config=) mips mips purple
2836 #========================================================================
2838 #========================================================================
2839 #########################################################################
2841 #########################################################################
2843 ADNPESC1_DNPEVA2_base_32_config \
2844 ADNPESC1_base_32_config \
2845 ADNPESC1_config: unconfig
2846 @mkdir -p $(obj)include
2847 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2848 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2849 $(XECHO) "... DNP/EVA2 configuration" ; \
2851 @[ -z "$(findstring _base_32,$@)" ] || \
2852 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2853 $(XECHO) "... NIOS 'base_32' configuration" ; \
2855 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2856 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2857 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2859 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2861 DK1C20_safe_32_config \
2862 DK1C20_standard_32_config \
2863 DK1C20_config: unconfig
2864 @mkdir -p $(obj)include
2865 @[ -z "$(findstring _safe_32,$@)" ] || \
2866 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2867 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2869 @[ -z "$(findstring _standard_32,$@)" ] || \
2870 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2871 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2873 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2874 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2875 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2877 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2879 DK1S10_safe_32_config \
2880 DK1S10_standard_32_config \
2881 DK1S10_mtx_ldk_20_config \
2882 DK1S10_config: unconfig
2883 @mkdir -p $(obj)include
2884 @[ -z "$(findstring _safe_32,$@)" ] || \
2885 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2886 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2888 @[ -z "$(findstring _standard_32,$@)" ] || \
2889 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2890 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2892 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2893 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2894 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2896 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2897 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2898 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2900 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2902 #########################################################################
2904 #########################################################################
2906 EP1C20_config : unconfig
2907 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2909 EP1S10_config : unconfig
2910 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2912 EP1S40_config : unconfig
2913 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2915 PK1C20_config : unconfig
2916 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2918 PCI5441_config : unconfig
2919 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2921 #========================================================================
2923 #========================================================================
2925 ml401_config: unconfig
2926 @mkdir -p $(obj)include
2927 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2928 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2930 suzaku_config: unconfig
2931 @mkdir -p $(obj)include
2932 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2933 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2935 xupv2p_config: unconfig
2936 @mkdir -p $(obj)include
2937 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2938 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2940 #========================================================================
2942 #========================================================================
2944 # Analog Devices boards
2945 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2947 $(BFIN_BOARDS:%=%_config) : unconfig
2948 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2954 #========================================================================
2956 #========================================================================
2958 atngw100_config : unconfig
2959 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2961 atstk1002_config : unconfig
2962 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2964 atstk1003_config : unconfig
2965 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2967 atstk1004_config : unconfig
2968 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2970 atstk1006_config : unconfig
2971 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2973 favr-32-ezkit_config : unconfig
2974 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
2976 hammerhead_config : unconfig
2977 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
2979 mimc200_config : unconfig
2980 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
2982 #========================================================================
2984 #========================================================================
2986 #########################################################################
2987 ## sh3 (Renesas SuperH)
2988 #########################################################################
2990 mpr2_config: unconfig
2991 @mkdir -p $(obj)include
2992 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
2993 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2995 ms7720se_config: unconfig
2996 @mkdir -p $(obj)include
2997 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
2998 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3000 #########################################################################
3001 ## sh4 (Renesas SuperH)
3002 #########################################################################
3004 MigoR_config : unconfig
3005 @mkdir -p $(obj)include
3006 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3007 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3009 ms7750se_config: unconfig
3010 @mkdir -p $(obj)include
3011 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3012 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3014 ms7722se_config : unconfig
3015 @mkdir -p $(obj)include
3016 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3017 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3019 r2dplus_config : unconfig
3020 @mkdir -p $(obj)include
3021 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3022 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
3024 r7780mp_config: unconfig
3025 @mkdir -p $(obj)include
3026 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3027 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
3029 sh7763rdp_config : unconfig
3030 @mkdir -p $(obj)include
3031 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3032 @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
3034 #========================================================================
3036 #========================================================================
3038 #########################################################################
3040 #########################################################################
3042 # Gaisler GR-XC3S-1500 board
3043 gr_xc3s_1500_config : unconfig
3044 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3046 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3047 gr_cpci_ax2000_config : unconfig
3048 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3050 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3051 # Development board Stratix II edition, FPGA Device EP2S60.
3052 gr_ep2s60_config: unconfig
3053 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3055 # Gaisler LEON3 GRSIM simulator
3056 grsim_config : unconfig
3057 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3059 #########################################################################
3061 #########################################################################
3063 # Gaisler LEON2 GRSIM simulator
3064 grsim_leon2_config : unconfig
3065 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3067 #########################################################################
3068 #########################################################################
3069 #########################################################################
3072 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3073 $(obj)examples/hello_world $(obj)examples/interrupt \
3074 $(obj)examples/mem_to_mem_idma2intr \
3075 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3076 $(obj)examples/test_burst $(obj)examples/timer
3077 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3078 $(obj)tools/env/{fw_printenv,fw_setenv} \
3079 $(obj)tools/envcrc \
3080 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3081 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3082 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3083 $(obj)tools/ncb $(obj)tools/ubsha1
3084 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3085 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3086 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3087 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3088 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3089 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3090 @rm -f $(obj)include/bmp_logo.h
3091 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3092 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3093 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3094 @find $(OBJTREE) -type f \
3095 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3096 -o -name '*.o' -o -name '*.a' \) -print \
3100 @find $(OBJTREE) -type f \( -name .depend \
3101 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3104 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3105 $(obj)cscope.* $(obj)*.*~
3106 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3107 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3108 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3109 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3110 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3111 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3112 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3113 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3114 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3116 ifeq ($(OBJTREE),$(SRCTREE))
3118 distclean: clobber unconfig
3121 distclean: clobber unconfig
3126 F=`basename $(TOPDIR)` ; cd .. ; \
3127 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3129 #########################################################################