2 # (C) Copyright 2000-2007
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 #########################################################################
50 # U-boot build supports producing a object files to the separate external
51 # directory. Two use cases are supported:
53 # 1) Add O= to the make command line
54 # 'make O=/tmp/build all'
56 # 2) Set environement variable BUILD_DIR to point to the desired location
57 # 'export BUILD_DIR=/tmp/build'
60 # The second approach can also be used with a MAKEALL script
61 # 'export BUILD_DIR=/tmp/build'
64 # Command line 'O=' setting overrides BUILD_DIR environent variable.
66 # When none of the above methods is used the local build is performed and
67 # the object files are placed in the source directory.
71 ifeq ("$(origin O)", "command line")
77 saved-output := $(BUILD_DIR)
79 # Attempt to create a output directory.
80 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
82 # Verify if it was successful.
83 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
84 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
85 endif # ifneq ($(BUILD_DIR),)
87 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
91 export TOPDIR SRCTREE OBJTREE
93 MKCONFIG := $(SRCTREE)/mkconfig
96 ifneq ($(OBJTREE),$(SRCTREE))
101 # $(obj) and (src) are defined in config.mk but here in main Makefile
102 # we also need them before config.mk is included which is the case for
103 # some targets like unconfig, clean, clobber, distclean, etc.
104 ifneq ($(OBJTREE),$(SRCTREE))
113 #########################################################################
115 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
117 # load ARCH, BOARD, and CPU configuration
118 include $(OBJTREE)/include/config.mk
119 export ARCH CPU BOARD VENDOR SOC
122 ifeq ($(HOSTARCH),$(ARCH))
126 CROSS_COMPILE = ppc_8xx-
129 CROSS_COMPILE = arm-linux-
132 CROSS_COMPILE = i386-linux-
135 CROSS_COMPILE = mips_4KC-
138 CROSS_COMPILE = nios-elf-
141 CROSS_COMPILE = nios2-elf-
144 CROSS_COMPILE = m68k-elf-
146 ifeq ($(ARCH),microblaze)
149 ifeq ($(ARCH),blackfin)
150 CROSS_COMPILE = bfin-uclinux-
153 CROSS_COMPILE = avr32-linux-
156 CROSS_COMPILE = sh4-linux-
163 # load other configuration
164 include $(TOPDIR)/config.mk
166 #########################################################################
167 # U-Boot objects....order is important (i.e. start must be first)
169 OBJS = cpu/$(CPU)/start.o
171 OBJS += cpu/$(CPU)/start16.o
172 OBJS += cpu/$(CPU)/reset.o
175 OBJS += cpu/$(CPU)/resetvec.o
177 ifeq ($(CPU),mpc85xx)
178 OBJS += cpu/$(CPU)/resetvec.o
181 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
182 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
185 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
186 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
189 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
190 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
193 OBJS := $(addprefix $(obj),$(OBJS))
195 LIBS = lib_generic/libgeneric.a
196 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
197 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
198 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
199 LIBS += cpu/$(CPU)/lib$(CPU).a
201 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
204 LIBS += cpu/ixp/npe/libnpe.a
206 LIBS += lib_$(ARCH)/lib$(ARCH).a
207 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
208 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
210 LIBS += disk/libdisk.a
211 LIBS += drivers/bios_emulator/libatibiosemu.a
212 LIBS += drivers/block/libblock.a
213 LIBS += drivers/hwmon/libhwmon.a
214 LIBS += drivers/i2c/libi2c.a
215 LIBS += drivers/input/libinput.a
216 LIBS += drivers/misc/libmisc.a
217 LIBS += drivers/mtd/libmtd.a
218 LIBS += drivers/mtd/nand/libnand.a
219 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
220 LIBS += drivers/mtd/onenand/libonenand.a
221 LIBS += drivers/net/libnet.a
222 LIBS += drivers/net/sk98lin/libsk98lin.a
223 LIBS += drivers/pci/libpci.a
224 LIBS += drivers/pcmcia/libpcmcia.a
225 ifeq ($(CPU),mpc83xx)
226 LIBS += drivers/qe/qe.a
228 ifeq ($(CPU),mpc85xx)
229 LIBS += drivers/qe/qe.a
231 LIBS += drivers/rtc/librtc.a
232 LIBS += drivers/serial/libserial.a
233 LIBS += drivers/usb/libusb.a
234 LIBS += drivers/video/libvideo.a
235 LIBS += post/libpost.a post/drivers/libpostdrivers.a
236 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
237 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
238 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
239 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
240 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
241 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
242 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
243 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
244 LIBS += common/libcommon.a
245 LIBS += libfdt/libfdt.a
246 ifeq ($(CONFIG_API),y)
250 LIBS := $(addprefix $(obj),$(LIBS))
254 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
256 # The "tools" are needed early, so put this first
257 # Don't include stuff already done in $(LIBS)
261 ifeq ($(CONFIG_API),y)
262 SUBDIRS += api_examples
267 ifeq ($(CONFIG_NAND_U_BOOT),y)
269 U_BOOT_NAND = $(obj)u-boot-nand.bin
272 __OBJS := $(subst $(obj),,$(OBJS))
273 __LIBS := $(subst $(obj),,$(LIBS))
275 #########################################################################
276 #########################################################################
278 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
282 $(obj)u-boot.hex: $(obj)u-boot
283 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
285 $(obj)u-boot.srec: $(obj)u-boot
286 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
288 $(obj)u-boot.bin: $(obj)u-boot
289 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
291 $(obj)u-boot.img: $(obj)u-boot.bin
292 ./tools/mkimage -A $(ARCH) -T firmware -C none \
293 -a $(TEXT_BASE) -e 0 \
294 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
295 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
298 $(obj)u-boot.sha1: $(obj)u-boot.bin
299 $(obj)tools/ubsha1 $(obj)u-boot.bin
301 $(obj)u-boot.dis: $(obj)u-boot
302 $(OBJDUMP) -d $< > $@
304 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
305 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
306 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
307 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
308 -Map u-boot.map -o u-boot
311 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
314 $(MAKE) -C $(dir $(subst $(obj),,$@))
320 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
322 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
323 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
326 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
327 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
328 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
329 $(TOPDIR)) >> $(VERSION_FILE); \
330 echo "\"" >> $(VERSION_FILE)
333 $(MAKE) -C tools/gdb all || exit 1
336 $(MAKE) -C tools/updater all || exit 1
339 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
342 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
344 TAG_SUBDIRS += include
345 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
346 TAG_SUBDIRS += cpu/$(CPU)
347 TAG_SUBDIRS += lib_$(ARCH)
348 TAG_SUBDIRS += fs/cramfs
349 TAG_SUBDIRS += fs/fat
350 TAG_SUBDIRS += fs/fdos
351 TAG_SUBDIRS += fs/jffs2
354 TAG_SUBDIRS += common
355 TAG_SUBDIRS += drivers/bios_emulator
356 TAG_SUBDIRS += drivers/block
357 TAG_SUBDIRS += drivers/hwmon
358 TAG_SUBDIRS += drivers/i2c
359 TAG_SUBDIRS += drivers/input
360 TAG_SUBDIRS += drivers/misc
361 TAG_SUBDIRS += drivers/mtd
362 TAG_SUBDIRS += drivers/mtd/nand
363 TAG_SUBDIRS += drivers/mtd/nand_legacy
364 TAG_SUBDIRS += drivers/mtd/onenand
365 TAG_SUBDIRS += drivers/net
366 TAG_SUBDIRS += drivers/net/sk98lin
367 TAG_SUBDIRS += drivers/pci
368 TAG_SUBDIRS += drivers/pcmcia
369 TAG_SUBDIRS += drivers/qe
370 TAG_SUBDIRS += drivers/rtc
371 TAG_SUBDIRS += drivers/serial
372 TAG_SUBDIRS += drivers/usb
373 TAG_SUBDIRS += drivers/video
376 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
377 -name '*.[ch]' -print`
380 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
381 -name '*.[ch]' -print`
383 $(obj)System.map: $(obj)u-boot
385 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
386 sort > $(obj)System.map
389 # Auto-generate the autoconf.mk file (which is included by all makefiles)
391 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
392 # the dep file is only include in this top level makefile to determine when
393 # to regenerate the autoconf.mk file.
394 $(OBJTREE)/include/autoconf.mk: $(obj)include/config.h
395 @echo Generating include/autoconf.mk
396 @# Generate the dependancies
397 @$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep
398 @# Extract the config macros
399 @$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed >> $@
401 sinclude $(OBJTREE)/include/autoconf.mk.dep
403 #########################################################################
405 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
406 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
407 $(SUBDIRS) version gdbtools updater env depend \
408 dep tags ctags etags $(obj)System.map:
409 @echo "System not configured - see README" >&2
415 git log --no-merges U-Boot-1_1_5.. | \
416 unexpand -a | sed -e 's/\s\s*$$//' > $@
418 #########################################################################
421 @rm -f $(obj)include/config.h $(obj)include/config.mk \
422 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
423 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
425 #========================================================================
427 #========================================================================
429 #########################################################################
431 #########################################################################
433 canmb_config: unconfig
434 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
436 cmi_mpc5xx_config: unconfig
437 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
439 PATI_config: unconfig
440 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
442 #########################################################################
444 #########################################################################
447 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
449 BC3450_config: unconfig
450 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
452 cpci5200_config: unconfig
453 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
455 hmi1001_config: unconfig
456 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
459 Lite5200_LOWBOOT_config \
460 Lite5200_LOWBOOT08_config \
461 icecube_5200_config \
462 icecube_5200_LOWBOOT_config \
463 icecube_5200_LOWBOOT08_config \
464 icecube_5200_DDR_config \
465 icecube_5200_DDR_LOWBOOT_config \
466 icecube_5200_DDR_LOWBOOT08_config \
467 icecube_5100_config: unconfig
468 @mkdir -p $(obj)include
469 @mkdir -p $(obj)board/icecube
470 @ >$(obj)include/config.h
471 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
472 { if [ "$(findstring DDR,$@)" ] ; \
473 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
474 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
476 echo "... with LOWBOOT configuration" ; \
478 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
479 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
480 echo "... with 8 MB flash only" ; \
481 echo "... with LOWBOOT configuration" ; \
483 @[ -z "$(findstring DDR,$@)" ] || \
484 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
485 echo "... DDR memory revision" ; \
487 @[ -z "$(findstring 5200,$@)" ] || \
488 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
489 echo "... with MPC5200 processor" ; \
491 @[ -z "$(findstring 5100,$@)" ] || \
492 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
493 echo "... with MGT5100 processor" ; \
495 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
497 jupiter_config: unconfig
498 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
500 v38b_config: unconfig
501 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
503 inka4x0_config: unconfig
504 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
507 lite5200b_PM_config \
508 lite5200b_LOWBOOT_config: unconfig
509 @mkdir -p $(obj)include
510 @mkdir -p $(obj)board/icecube
511 @ >$(obj)include/config.h
512 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
513 @ echo "... DDR memory revision"
514 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
515 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
516 @[ -z "$(findstring _PM_,$@)" ] || \
517 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
518 echo "... with power management (low-power mode) support" ; \
520 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
521 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
522 echo "... with LOWBOOT configuration" ; \
524 @ echo "... with MPC5200B processor"
525 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
528 mcc200_SDRAM_config \
529 mcc200_highboot_config \
530 mcc200_COM12_config \
531 mcc200_COM12_SDRAM_config \
532 mcc200_COM12_highboot_config \
533 mcc200_COM12_highboot_SDRAM_config \
534 mcc200_highboot_SDRAM_config \
537 prs200_highboot_config \
538 prs200_highboot_DDR_config: unconfig
539 @mkdir -p $(obj)include
540 @mkdir -p $(obj)board/mcc200
541 @ >$(obj)include/config.h
542 @[ -n "$(findstring highboot,$@)" ] || \
543 { echo "... with lowboot configuration" ; \
545 @[ -z "$(findstring highboot,$@)" ] || \
546 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
547 echo "... with highboot configuration" ; \
549 @[ -n "$(findstring _SDRAM,$@)" ] || \
550 { if [ -n "$(findstring mcc200,$@)" ]; \
552 echo "... with DDR" ; \
554 if [ -n "$(findstring _DDR,$@)" ];\
556 echo "... with DDR" ; \
558 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
559 echo "... with SDRAM" ; \
563 @[ -z "$(findstring _SDRAM,$@)" ] || \
564 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
565 echo "... with SDRAM" ; \
567 @[ -z "$(findstring COM12,$@)" ] || \
568 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
569 echo "... with console on COM12" ; \
571 @[ -z "$(findstring prs200,$@)" ] || \
572 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
574 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
576 mecp5200_config: unconfig
577 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
580 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
582 pf5200_config: unconfig
583 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
587 PM520_ROMBOOT_config \
588 PM520_ROMBOOT_DDR_config: unconfig
589 @mkdir -p $(obj)include
590 @ >$(obj)include/config.h
591 @[ -z "$(findstring DDR,$@)" ] || \
592 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
593 echo "... DDR memory revision" ; \
595 @[ -z "$(findstring ROMBOOT,$@)" ] || \
596 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
597 echo "... booting from 8-bit flash" ; \
599 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
601 smmaco4_config: unconfig
602 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
604 cm5200_config: unconfig
605 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
607 spieval_config: unconfig
608 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
611 TB5200_config: unconfig
612 @mkdir -p $(obj)include
613 @[ -z "$(findstring _B,$@)" ] || \
614 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
615 echo "... with MPC5200B processor" ; \
617 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
621 TOP5200_config: unconfig
622 @mkdir -p $(obj)include
623 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
624 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
628 Total5200_lowboot_config \
629 Total5200_Rev2_config \
630 Total5200_Rev2_lowboot_config: unconfig
631 @mkdir -p $(obj)include
632 @mkdir -p $(obj)board/total5200
633 @ >$(obj)include/config.h
634 @[ -z "$(findstring 5100,$@)" ] || \
635 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
636 echo "... with MGT5100 processor" ; \
638 @[ -z "$(findstring 5200,$@)" ] || \
639 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
640 echo "... with MPC5200 processor" ; \
642 @[ -n "$(findstring Rev,$@)" ] || \
643 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
644 echo "... revision 1 board" ; \
646 @[ -z "$(findstring Rev2_,$@)" ] || \
647 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
648 echo "... revision 2 board" ; \
650 @[ -z "$(findstring lowboot_,$@)" ] || \
651 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
652 echo "... with lowboot configuration" ; \
654 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
657 cam5200_niosflash_config \
661 TQM5200S_HIGHBOOT_config \
663 TQM5200_B_HIGHBOOT_config \
665 TQM5200_STK100_config: unconfig
666 @mkdir -p $(obj)include
667 @mkdir -p $(obj)board/tqm5200
668 @ >$(obj)include/config.h
669 @[ -z "$(findstring cam5200,$@)" ] || \
670 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
671 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
672 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
673 echo "... TQM5200S on Cam5200" ; \
675 @[ -z "$(findstring niosflash,$@)" ] || \
676 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
677 echo "... with NIOS flash driver" ; \
679 @[ -z "$(findstring fo300,$@)" ] || \
680 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
681 echo "... TQM5200 on FO300" ; \
683 @[ -z "$(findstring MiniFAP,$@)" ] || \
684 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
685 echo "... TQM5200_AC on MiniFAP" ; \
687 @[ -z "$(findstring STK100,$@)" ] || \
688 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
689 echo "... on a STK52XX.100 base board" ; \
691 @[ -z "$(findstring TQM5200_B,$@)" ] || \
692 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
694 @[ -z "$(findstring TQM5200S,$@)" ] || \
695 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
696 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
698 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
699 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
701 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
702 uc101_config: unconfig
703 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
704 motionpro_config: unconfig
705 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
708 #########################################################################
710 #########################################################################
711 ads5121_config: unconfig
712 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
715 #########################################################################
717 #########################################################################
723 @mkdir -p $(obj)include
724 $(if $(findstring AdderII,$@), \
725 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
726 @$(MKCONFIG) -a Adder ppc mpc8xx adder
728 AdderUSB_config: unconfig
729 @./mkconfig -a AdderUSB ppc mpc8xx adder
736 FADS860T_config: unconfig
737 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
739 AMX860_config : unconfig
740 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
742 c2mon_config: unconfig
743 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
746 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
748 cogent_mpc8xx_config: unconfig
749 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
751 ELPT860_config: unconfig
752 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
754 EP88x_config: unconfig
755 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
757 ESTEEM192E_config: unconfig
758 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
760 ETX094_config : unconfig
761 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
763 FLAGADM_config: unconfig
764 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
766 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
769 GEN860T_config: unconfig
770 @mkdir -p $(obj)include
771 @ >$(obj)include/config.h
772 @[ -z "$(findstring _SC,$@)" ] || \
773 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
774 echo "With reduced H/W feature set (SC)..." ; \
776 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
778 GENIETV_config: unconfig
779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
782 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
784 hermes_config : unconfig
785 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
787 HMI10_config : unconfig
788 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
790 IAD210_config: unconfig
791 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
793 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
795 ICU862_100MHz_config \
796 ICU862_config: unconfig
797 @mkdir -p $(obj)include
798 @ >$(obj)include/config.h
799 @[ -z "$(findstring _100MHz,$@)" ] || \
800 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
801 echo "... with 100MHz system clock" ; \
803 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
805 IP860_config : unconfig
806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
810 IVML24_config: unconfig
811 @mkdir -p $(obj)include
812 @ >$(obj)include/config.h
813 @[ -z "$(findstring IVML24_config,$@)" ] || \
814 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
816 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
817 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
819 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
820 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
822 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
826 IVMS8_config: unconfig
827 @mkdir -p $(obj)include
828 @ >$(obj)include/config.h
829 @[ -z "$(findstring IVMS8_config,$@)" ] || \
830 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
832 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
833 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
835 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
836 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
838 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
840 KUP4K_config : unconfig
841 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
843 KUP4X_config : unconfig
844 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
846 LANTEC_config : unconfig
847 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
849 lwmon_config: unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
853 MBX860T_config: unconfig
854 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
856 MHPC_config: unconfig
857 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
859 MVS1_config : unconfig
860 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
862 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
865 NETVIA_config: unconfig
866 @mkdir -p $(obj)include
867 @ >$(obj)include/config.h
868 @[ -z "$(findstring NETVIA_config,$@)" ] || \
869 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
870 echo "... Version 1" ; \
872 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
873 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
874 echo "... Version 2" ; \
876 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
878 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
881 NETPHONE_config: unconfig
882 @mkdir -p $(obj)include
883 @ >$(obj)include/config.h
884 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
885 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
887 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
888 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
890 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
892 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
894 NETTA_ISDN_6412_SWAPHOOK_config \
895 NETTA_ISDN_SWAPHOOK_config \
896 NETTA_6412_SWAPHOOK_config \
897 NETTA_SWAPHOOK_config \
898 NETTA_ISDN_6412_config \
901 NETTA_config: unconfig
902 @mkdir -p $(obj)include
903 @ >$(obj)include/config.h
904 @[ -z "$(findstring ISDN_,$@)" ] || \
905 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
907 @[ -n "$(findstring ISDN_,$@)" ] || \
908 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
910 @[ -z "$(findstring 6412_,$@)" ] || \
911 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
913 @[ -n "$(findstring 6412_,$@)" ] || \
914 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
916 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
917 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
919 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
920 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
922 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
924 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
927 NETTA2_config: unconfig
928 @mkdir -p $(obj)include
929 @ >$(obj)include/config.h
930 @[ -z "$(findstring NETTA2_config,$@)" ] || \
931 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
933 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
934 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
936 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
940 CP850_config: unconfig
941 @mkdir -p $(obj)include
942 @ >$(obj)include/config.h
943 @[ -z "$(findstring CP850,$@)" ] || \
944 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
945 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
947 @[ -z "$(findstring Rev1,$@)" ] || \
948 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
950 @[ -z "$(findstring Rev2,$@)" ] || \
951 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
953 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
955 NX823_config: unconfig
956 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
958 pcu_e_config: unconfig
959 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
961 QS850_config: unconfig
962 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
964 QS823_config: unconfig
965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
967 QS860T_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
970 quantum_config: unconfig
971 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
973 R360MPI_config: unconfig
974 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
976 RBC823_config: unconfig
977 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
979 RPXClassic_config: unconfig
980 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
982 RPXlite_config: unconfig
983 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
985 RPXlite_DW_64_config \
986 RPXlite_DW_LCD_config \
987 RPXlite_DW_64_LCD_config \
988 RPXlite_DW_NVRAM_config \
989 RPXlite_DW_NVRAM_64_config \
990 RPXlite_DW_NVRAM_LCD_config \
991 RPXlite_DW_NVRAM_64_LCD_config \
992 RPXlite_DW_config: unconfig
993 @mkdir -p $(obj)include
994 @ >$(obj)include/config.h
995 @[ -z "$(findstring _64,$@)" ] || \
996 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
997 echo "... with 64MHz system clock ..."; \
999 @[ -z "$(findstring _LCD,$@)" ] || \
1000 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1001 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1002 echo "... with LCD display ..."; \
1004 @[ -z "$(findstring _NVRAM,$@)" ] || \
1005 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1006 echo "... with ENV in NVRAM ..."; \
1008 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1010 rmu_config: unconfig
1011 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1013 RRvision_config: unconfig
1014 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1016 RRvision_LCD_config: unconfig
1017 @mkdir -p $(obj)include
1018 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1019 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1020 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1022 SM850_config : unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1026 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1028 SPD823TS_config: unconfig
1029 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1031 stxxtc_config: unconfig
1032 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1034 svm_sc8xx_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1037 SXNI855T_config: unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1040 # EMK MPC8xx based modules
1041 TOP860_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1044 # Play some tricks for configuration selection
1045 # Only 855 and 860 boards may come with FEC
1046 # and only 823 boards may have LCD support
1047 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1053 TQM823L_LCD_config \
1065 virtlab2_config: unconfig
1066 @mkdir -p $(obj)include
1067 @ >$(obj)include/config.h
1068 @[ -z "$(findstring _LCD,$@)" ] || \
1069 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1070 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1071 echo "... with LCD display" ; \
1073 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1075 TTTech_config: unconfig
1076 @mkdir -p $(obj)include
1077 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1078 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1079 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1081 uc100_config : unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1084 v37_config: unconfig
1085 @mkdir -p $(obj)include
1086 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1087 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1088 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1090 wtk_config: unconfig
1091 @mkdir -p $(obj)include
1092 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1093 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1094 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1096 #########################################################################
1098 #########################################################################
1099 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1101 acadia_config: unconfig
1102 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1104 acadia_nand_config: unconfig
1105 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1106 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1107 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1108 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1109 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1110 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1112 ADCIOP_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1115 alpr_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1118 AP1000_config:unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1121 APC405_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1124 AR405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1127 ASH405_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1130 bamboo_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1133 bamboo_nand_config: unconfig
1134 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1135 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1136 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1137 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1138 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1139 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1141 bubinga_config: unconfig
1142 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1144 CANBT_config: unconfig
1145 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1148 CATcenter_25_config \
1149 CATcenter_33_config: unconfig
1150 @mkdir -p $(obj)include
1151 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1152 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1153 @[ -z "$(findstring _25,$@)" ] || \
1154 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1155 echo "SysClk = 25MHz" ; \
1157 @[ -z "$(findstring _33,$@)" ] || \
1158 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1159 echo "SysClk = 33MHz" ; \
1161 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1163 CPCI2DP_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1169 CPCI405AB_config: unconfig
1170 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1171 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1173 CPCIISER4_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1176 CRAYL1_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1179 csb272_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1182 csb472_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1185 DASA_SIM_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1188 DP405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1191 DU405_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1194 ebony_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1197 ERIC_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1200 EXBITGEN_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1203 G2000_config: unconfig
1204 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1206 hcu4_config: unconfig
1207 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1209 hcu5_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1212 HH405_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1215 HUB405_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1218 JSE_config: unconfig
1219 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1221 KAREF_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1224 katmai_config: unconfig
1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1227 # Kilauea & Haleakala images are identical (recognized via PVR)
1229 haleakala_config: unconfig
1230 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1232 kilauea_nand_config \
1233 haleakala_nand_config: unconfig
1234 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1235 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1236 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1237 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1238 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1239 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1241 korat_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1244 luan_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1247 lwmon5_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1250 makalu_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1253 METROBOX_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1256 MIP405_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1259 MIP405T_config: unconfig
1260 @mkdir -p $(obj)include
1261 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1262 @echo "Enable subset config for MIP405T"
1263 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1265 ML2_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1268 ml300_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1271 ocotea_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1275 ORSG_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1278 p3p440_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1281 PCI405_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1284 pcs440ep_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1287 PIP405_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1290 PLU405_config: unconfig
1291 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1293 PMC405_config: unconfig
1294 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1296 PMC440_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1299 PPChameleonEVB_config \
1300 PPChameleonEVB_BA_25_config \
1301 PPChameleonEVB_ME_25_config \
1302 PPChameleonEVB_HI_25_config \
1303 PPChameleonEVB_BA_33_config \
1304 PPChameleonEVB_ME_33_config \
1305 PPChameleonEVB_HI_33_config: unconfig
1306 @mkdir -p $(obj)include
1307 @ >$(obj)include/config.h
1308 @[ -z "$(findstring EVB_BA,$@)" ] || \
1309 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1310 echo "... BASIC model" ; \
1312 @[ -z "$(findstring EVB_ME,$@)" ] || \
1313 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1314 echo "... MEDIUM model" ; \
1316 @[ -z "$(findstring EVB_HI,$@)" ] || \
1317 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1318 echo "... HIGH-END model" ; \
1320 @[ -z "$(findstring _25,$@)" ] || \
1321 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1322 echo "SysClk = 25MHz" ; \
1324 @[ -z "$(findstring _33,$@)" ] || \
1325 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1326 echo "SysClk = 33MHz" ; \
1328 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1330 sbc405_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1334 rainier_config: unconfig
1335 @mkdir -p $(obj)include
1336 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1337 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1338 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1340 sequoia_nand_config \
1341 rainier_nand_config: unconfig
1342 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1343 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1344 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1345 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1346 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1347 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1348 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1349 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1352 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1354 taihu_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1357 taishan_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1360 VOH405_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1363 VOM405_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1366 CMS700_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1370 W7OLMG_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1373 # Walnut & Sycamore images are identical (recognized via PVR)
1375 sycamore_config: unconfig
1376 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1378 WUH405_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1381 XPEDITE1K_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1385 yellowstone_config: unconfig
1386 @mkdir -p $(obj)include
1387 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1388 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1389 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1391 yucca_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1394 zeus_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1397 #########################################################################
1399 #########################################################################
1402 Yukon8220_config: unconfig
1403 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1405 sorcery_config: unconfig
1406 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1408 #########################################################################
1410 #########################################################################
1411 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1413 A3000_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1416 barco_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1419 BMW_config: unconfig
1420 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1423 CPC45_ROMBOOT_config: unconfig
1424 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1425 @cd $(obj)include ; \
1426 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1427 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1428 echo "... booting from 8-bit flash" ; \
1430 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1431 echo "... booting from 64-bit flash" ; \
1433 echo "export CONFIG_BOOT_ROM" >> config.mk;
1435 CU824_config: unconfig
1436 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1438 debris_config: unconfig
1439 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1441 eXalion_config: unconfig
1442 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1444 HIDDEN_DRAGON_config: unconfig
1445 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1447 kvme080_config: unconfig
1448 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1450 MOUSSE_config: unconfig
1451 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1453 MUSENKI_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1456 MVBLUE_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1459 OXC_config: unconfig
1460 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1462 PN62_config: unconfig
1463 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1465 Sandpoint8240_config: unconfig
1466 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1468 Sandpoint8245_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1471 sbc8240_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1474 SL8245_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1477 utx8245_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1480 #########################################################################
1482 #########################################################################
1484 atc_config: unconfig
1485 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1487 cogent_mpc8260_config: unconfig
1488 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1491 CPU86_ROMBOOT_config: unconfig
1492 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1493 @cd $(obj)include ; \
1494 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1495 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1496 echo "... booting from 8-bit flash" ; \
1498 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1499 echo "... booting from 64-bit flash" ; \
1501 echo "export CONFIG_BOOT_ROM" >> config.mk;
1504 CPU87_ROMBOOT_config: unconfig
1505 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1506 @cd $(obj)include ; \
1507 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1508 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1509 echo "... booting from 8-bit flash" ; \
1511 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1512 echo "... booting from 64-bit flash" ; \
1514 echo "export CONFIG_BOOT_ROM" >> config.mk;
1517 ep8248E_config : unconfig
1518 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1520 ep8260_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1523 ep82xxm_config: unconfig
1524 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1526 gw8260_config: unconfig
1527 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1529 hymod_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1532 IDS8247_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1535 IPHASE4539_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1539 ISPAN_REVB_config: unconfig
1540 @mkdir -p $(obj)include
1541 @if [ "$(findstring _REVB_,$@)" ] ; then \
1542 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1544 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1547 MPC8260ADS_lowboot_config \
1548 MPC8260ADS_33MHz_config \
1549 MPC8260ADS_33MHz_lowboot_config \
1550 MPC8260ADS_40MHz_config \
1551 MPC8260ADS_40MHz_lowboot_config \
1553 MPC8272ADS_lowboot_config \
1555 PQ2FADS_lowboot_config \
1557 PQ2FADS-VR_lowboot_config \
1559 PQ2FADS-ZU_lowboot_config \
1560 PQ2FADS-ZU_66MHz_config \
1561 PQ2FADS-ZU_66MHz_lowboot_config \
1563 @mkdir -p $(obj)include
1564 @mkdir -p $(obj)board/mpc8260ads
1565 $(if $(findstring PQ2FADS,$@), \
1566 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1567 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1568 $(if $(findstring MHz,$@), \
1569 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1570 $(if $(findstring VR,$@), \
1571 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1572 @[ -z "$(findstring lowboot_,$@)" ] || \
1573 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1574 echo "... with lowboot configuration" ; \
1576 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1578 MPC8266ADS_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1581 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1583 PM825_ROMBOOT_config \
1584 PM825_BIGFLASH_config \
1585 PM825_ROMBOOT_BIGFLASH_config \
1587 PM826_ROMBOOT_config \
1588 PM826_BIGFLASH_config \
1589 PM826_ROMBOOT_BIGFLASH_config: unconfig
1590 @mkdir -p $(obj)include
1591 @mkdir -p $(obj)board/pm826
1592 @if [ "$(findstring PM825_,$@)" ] ; then \
1593 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1595 >$(obj)include/config.h ; \
1597 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1598 echo "... booting from 8-bit flash" ; \
1599 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1600 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1601 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1602 echo "... with 32 MB Flash" ; \
1603 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1606 echo "... booting from 64-bit flash" ; \
1607 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1608 echo "... with 32 MB Flash" ; \
1609 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1610 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1612 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1615 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1619 PM828_ROMBOOT_config \
1620 PM828_ROMBOOT_PCI_config: unconfig
1621 @mkdir -p $(obj)include
1622 @mkdir -p $(obj)board/pm826
1623 @if [ "$(findstring _PCI_,$@)" ] ; then \
1624 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1625 echo "... with PCI enabled" ; \
1627 >$(obj)include/config.h ; \
1629 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1630 echo "... booting from 8-bit flash" ; \
1631 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1632 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1634 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1636 ppmc8260_config: unconfig
1637 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1639 Rattler8248_config \
1640 Rattler_config: unconfig
1641 @mkdir -p $(obj)include
1642 $(if $(findstring 8248,$@), \
1643 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1644 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1646 RPXsuper_config: unconfig
1647 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1649 rsdproto_config: unconfig
1650 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1652 sacsng_config: unconfig
1653 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1655 sbc8260_config: unconfig
1656 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1658 SCM_config: unconfig
1659 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1671 TQM8265_AA_config: unconfig
1672 @mkdir -p $(obj)include
1674 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1675 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1676 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1677 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1678 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1679 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1680 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1681 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1682 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1683 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1684 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1686 >$(obj)include/config.h ; \
1687 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1688 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1690 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1691 echo "... with $${CFREQ}MHz system clock" ; \
1692 if [ "$${CACHE}" = "yes" ] ; then \
1693 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1694 echo "... with L2 Cache support" ; \
1696 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1697 echo "... without L2 Cache support" ; \
1699 if [ "$${BMODE}" = "60x" ] ; then \
1700 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1701 echo "... with 60x Bus Mode" ; \
1703 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1704 echo "... without 60x Bus Mode" ; \
1706 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1708 TQM8272_config: unconfig
1709 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1711 VoVPN-GW_66MHz_config \
1712 VoVPN-GW_100MHz_config: unconfig
1713 @mkdir -p $(obj)include
1714 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1715 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1717 ZPC1900_config: unconfig
1718 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1720 #########################################################################
1722 #########################################################################
1725 M5235EVB_Flash16_config \
1726 M5235EVB_Flash32_config: unconfig
1728 M5235EVB_config) FLASH=16;; \
1729 M5235EVB_Flash16_config) FLASH=16;; \
1730 M5235EVB_Flash32_config) FLASH=32;; \
1732 >include/config.h ; \
1733 if [ "$${FLASH}" != "16" ] ; then \
1734 echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
1735 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1736 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1738 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1739 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1741 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1743 M5249EVB_config : unconfig
1744 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1746 M5253EVBE_config : unconfig
1747 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1749 cobra5272_config : unconfig
1750 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1752 EB+MCF-EV123_config : unconfig
1753 @mkdir -p $(obj)include
1754 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1755 @ >$(obj)include/config.h
1756 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1757 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1759 EB+MCF-EV123_internal_config : unconfig
1760 @mkdir -p $(obj)include
1761 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1762 @ >$(obj)include/config.h
1763 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1764 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1766 idmr_config : unconfig
1767 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1769 M5271EVB_config : unconfig
1770 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1772 M5272C3_config : unconfig
1773 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1775 M5282EVB_config : unconfig
1776 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1778 TASREG_config : unconfig
1779 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1781 r5200_config : unconfig
1782 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1785 M5329BFEE_config : unconfig
1787 M5329AFEE_config) NAND=0;; \
1788 M5329BFEE_config) NAND=16;; \
1790 >include/config.h ; \
1791 if [ "$${NAND}" != "0" ] ; then \
1792 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1794 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1797 M54455EVB_atmel_config \
1798 M54455EVB_intel_config \
1799 M54455EVB_a33_config \
1800 M54455EVB_a66_config \
1801 M54455EVB_i33_config \
1802 M54455EVB_i66_config : unconfig
1804 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1805 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1806 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1807 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1808 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1809 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1810 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1812 >include/config.h ; \
1813 if [ "$${FLASH}" = "INTEL" ] ; then \
1814 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1815 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1816 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1817 echo "... with INTEL boot..." ; \
1819 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1820 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1821 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1822 echo "... with ATMEL boot..." ; \
1824 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1825 echo "... with $${FREQ}Hz input clock"
1826 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1828 #########################################################################
1830 #########################################################################
1832 MPC8313ERDB_33_config \
1833 MPC8313ERDB_66_config: unconfig
1834 @mkdir -p $(obj)include
1835 @echo "" >$(obj)include/config.h ; \
1836 if [ "$(findstring _33_,$@)" ] ; then \
1837 echo -n "...33M ..." ; \
1838 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1840 if [ "$(findstring _66_,$@)" ] ; then \
1841 echo -n "...66M..." ; \
1842 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1844 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1846 MPC8323ERDB_config: unconfig
1847 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1849 MPC832XEMDS_config \
1850 MPC832XEMDS_HOST_33_config \
1851 MPC832XEMDS_HOST_66_config \
1852 MPC832XEMDS_SLAVE_config \
1853 MPC832XEMDS_ATM_config: unconfig
1854 @mkdir -p $(obj)include
1855 @echo "" >$(obj)include/config.h ; \
1856 if [ "$(findstring _HOST_,$@)" ] ; then \
1857 echo -n "... PCI HOST " ; \
1858 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1860 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1861 echo "...PCI SLAVE 66M" ; \
1862 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1863 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1865 if [ "$(findstring _33_,$@)" ] ; then \
1866 echo -n "...33M ..." ; \
1867 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1868 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1870 if [ "$(findstring _66_,$@)" ] ; then \
1871 echo -n "...66M..." ; \
1872 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1873 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1875 if [ "$(findstring _ATM_,$@)" ] ; then \
1876 echo -n "...ATM..." ; \
1877 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1878 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1880 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1882 MPC8349EMDS_config: unconfig
1883 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1886 MPC8349ITX_LOWBOOT_config \
1887 MPC8349ITXGP_config: unconfig
1888 @mkdir -p $(obj)include
1889 @mkdir -p $(obj)board/freescale/mpc8349itx
1890 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1891 @if [ "$(findstring GP,$@)" ] ; then \
1892 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1894 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1895 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1897 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
1899 MPC8360EMDS_config \
1900 MPC8360EMDS_HOST_33_config \
1901 MPC8360EMDS_HOST_66_config \
1902 MPC8360EMDS_SLAVE_config \
1903 MPC8360EMDS_ATM_config: unconfig
1904 @mkdir -p $(obj)include
1905 @echo "" >$(obj)include/config.h ; \
1906 if [ "$(findstring _HOST_,$@)" ] ; then \
1907 echo -n "... PCI HOST " ; \
1908 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1910 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1911 echo "...PCI SLAVE 66M" ; \
1912 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1913 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1915 if [ "$(findstring _33_,$@)" ] ; then \
1916 echo -n "...33M ..." ; \
1917 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1918 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1920 if [ "$(findstring _66_,$@)" ] ; then \
1921 echo -n "...66M..." ; \
1922 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1923 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1925 if [ "$(findstring _ATM_,$@)" ] ; then \
1926 echo -n "...ATM..." ; \
1927 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1928 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1930 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
1932 MPC837XEMDS_config \
1933 MPC837XEMDS_HOST_config: unconfig
1934 @mkdir -p $(obj)include
1935 @echo "" >$(obj)include/config.h ; \
1936 if [ "$(findstring _HOST_,$@)" ] ; then \
1937 echo -n "... PCI HOST " ; \
1938 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1940 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
1942 sbc8349_config: unconfig
1943 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1945 TQM834x_config: unconfig
1946 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1949 #########################################################################
1951 #########################################################################
1953 MPC8540ADS_config: unconfig
1954 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
1956 MPC8540EVAL_config \
1957 MPC8540EVAL_33_config \
1958 MPC8540EVAL_66_config \
1959 MPC8540EVAL_33_slave_config \
1960 MPC8540EVAL_66_slave_config: unconfig
1961 @mkdir -p $(obj)include
1962 @echo "" >$(obj)include/config.h ; \
1963 if [ "$(findstring _33_,$@)" ] ; then \
1964 echo "... 33 MHz PCI" ; \
1966 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1967 echo "... 66 MHz PCI" ; \
1969 if [ "$(findstring _slave_,$@)" ] ; then \
1970 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1975 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1977 MPC8560ADS_config: unconfig
1978 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
1980 MPC8541CDS_legacy_config \
1981 MPC8541CDS_config: unconfig
1982 @mkdir -p $(obj)include
1983 @echo "" >$(obj)include/config.h ; \
1984 if [ "$(findstring _legacy_,$@)" ] ; then \
1985 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1986 echo "... legacy" ; \
1988 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
1990 MPC8544DS_config: unconfig
1991 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1993 MPC8548CDS_legacy_config \
1994 MPC8548CDS_config: unconfig
1995 @mkdir -p $(obj)include
1996 @echo "" >$(obj)include/config.h ; \
1997 if [ "$(findstring _legacy_,$@)" ] ; then \
1998 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1999 echo "... legacy" ; \
2001 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2003 MPC8555CDS_legacy_config \
2004 MPC8555CDS_config: unconfig
2005 @mkdir -p $(obj)include
2006 @echo "" >$(obj)include/config.h ; \
2007 if [ "$(findstring _legacy_,$@)" ] ; then \
2008 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2009 echo "... legacy" ; \
2011 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2013 MPC8568MDS_config: unconfig
2014 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2016 PM854_config: unconfig
2017 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2019 PM856_config: unconfig
2020 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2024 sbc8540_66_config: unconfig
2025 @mkdir -p $(obj)include
2026 @if [ "$(findstring _66_,$@)" ] ; then \
2027 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2028 echo "... 66 MHz PCI" ; \
2030 >$(obj)include/config.h ; \
2031 echo "... 33 MHz PCI" ; \
2033 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2037 sbc8560_66_config: unconfig
2038 @mkdir -p $(obj)include
2039 @if [ "$(findstring _66_,$@)" ] ; then \
2040 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2041 echo "... 66 MHz PCI" ; \
2043 >$(obj)include/config.h ; \
2044 echo "... 33 MHz PCI" ; \
2046 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2048 stxgp3_config: unconfig
2049 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2052 stxssa_4M_config: unconfig
2053 @mkdir -p $(obj)include
2054 @if [ "$(findstring _4M_,$@)" ] ; then \
2055 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2056 echo "... with 4 MiB flash memory" ; \
2058 >$(obj)include/config.h ; \
2060 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2065 TQM8560_config: unconfig
2066 @mkdir -p $(obj)include
2067 @CTYPE=$(subst TQM,,$(@:_config=)); \
2068 >$(obj)include/config.h ; \
2069 echo "... TQM"$${CTYPE}; \
2070 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2071 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2072 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2073 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2074 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2075 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2077 #########################################################################
2079 #########################################################################
2081 MPC8610HPCD_config: unconfig
2082 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2084 MPC8641HPCN_config: unconfig
2085 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2087 sbc8641d_config: unconfig
2088 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2090 #########################################################################
2092 #########################################################################
2094 AmigaOneG3SE_config: unconfig
2095 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2097 BAB7xx_config: unconfig
2098 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2100 CPCI750_config: unconfig
2101 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2103 DB64360_config: unconfig
2104 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2106 DB64460_config: unconfig
2107 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2109 ELPPC_config: unconfig
2110 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2113 EVB64260_750CX_config: unconfig
2114 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2116 mpc7448hpc2_config: unconfig
2117 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
2119 P3G4_config: unconfig
2120 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2123 p3m7448_config: unconfig
2124 @mkdir -p $(obj)include
2125 @if [ "$(findstring 750_,$@)" ] ; then \
2126 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2128 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2130 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2133 PCIPPC6_config: unconfig
2134 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2136 ZUMA_config: unconfig
2137 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2139 ppmc7xx_config: unconfig
2140 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2142 #========================================================================
2144 #========================================================================
2145 #########################################################################
2146 ## StrongARM Systems
2147 #########################################################################
2149 assabet_config : unconfig
2150 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2152 dnp1110_config : unconfig
2153 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2155 gcplus_config : unconfig
2156 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2158 lart_config : unconfig
2159 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2161 shannon_config : unconfig
2162 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2164 #########################################################################
2166 #########################################################################
2168 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2170 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2172 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2174 at91rm9200dk_config : unconfig
2175 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2177 cmc_pu2_config : unconfig
2178 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2180 csb637_config : unconfig
2181 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2183 mp2usb_config : unconfig
2184 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2187 ########################################################################
2188 ## ARM Integrator boards - see doc/README-integrator for more info.
2189 integratorap_config \
2198 ap946es_config: unconfig
2199 @board/integratorap/split_by_variant.sh $@
2201 integratorcp_config \
2210 cp1026_config: unconfig
2211 @board/integratorcp/split_by_variant.sh $@
2213 kb9202_config : unconfig
2214 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2217 lpd7a404_config: unconfig
2218 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2220 mx1ads_config : unconfig
2221 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2223 mx1fs2_config : unconfig
2224 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2227 netstar_config: unconfig
2228 @mkdir -p $(obj)include
2229 @if [ "$(findstring _32_,$@)" ] ; then \
2230 echo "... 32MB SDRAM" ; \
2231 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2233 echo "... 64MB SDRAM" ; \
2234 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2236 @$(MKCONFIG) -a netstar arm arm925t netstar
2238 omap1510inn_config : unconfig
2239 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2241 omap5912osk_config : unconfig
2242 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2244 davinci_dvevm_config : unconfig
2245 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2247 davinci_schmoogie_config : unconfig
2248 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2250 davinci_sonata_config : unconfig
2251 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2253 omap1610inn_config \
2254 omap1610inn_cs0boot_config \
2255 omap1610inn_cs3boot_config \
2256 omap1610inn_cs_autoboot_config \
2258 omap1610h2_cs0boot_config \
2259 omap1610h2_cs3boot_config \
2260 omap1610h2_cs_autoboot_config: unconfig
2261 @mkdir -p $(obj)include
2262 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2263 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2264 echo "... configured for CS0 boot"; \
2265 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2266 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2267 echo "... configured for CS_AUTO boot"; \
2269 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2270 echo "... configured for CS3 boot"; \
2272 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2275 omap730p2_cs0boot_config \
2276 omap730p2_cs3boot_config : unconfig
2277 @mkdir -p $(obj)include
2278 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2279 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2280 echo "... configured for CS0 boot"; \
2282 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2283 echo "... configured for CS3 boot"; \
2285 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2287 sbc2410x_config: unconfig
2288 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2290 scb9328_config : unconfig
2291 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2293 smdk2400_config : unconfig
2294 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2296 smdk2410_config : unconfig
2297 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2299 SX1_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2302 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2304 trab_bigram_config \
2305 trab_bigflash_config \
2306 trab_old_config: unconfig
2307 @mkdir -p $(obj)include
2308 @mkdir -p $(obj)board/trab
2309 @ >$(obj)include/config.h
2310 @[ -z "$(findstring _bigram,$@)" ] || \
2311 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2312 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2313 echo "... with 8 MB Flash, 32 MB RAM" ; \
2315 @[ -z "$(findstring _bigflash,$@)" ] || \
2316 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2317 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2318 echo "... with 16 MB Flash, 16 MB RAM" ; \
2319 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2321 @[ -z "$(findstring _old,$@)" ] || \
2322 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2323 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2324 echo "... with 8 MB Flash, 16 MB RAM" ; \
2325 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2327 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2329 VCMA9_config : unconfig
2330 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2332 #========================================================================
2333 # ARM supplied Versatile development boards
2334 #========================================================================
2336 versatileab_config \
2337 versatilepb_config : unconfig
2338 @board/versatile/split_by_variant.sh $@
2340 voiceblue_smallflash_config \
2341 voiceblue_config: unconfig
2342 @mkdir -p $(obj)include
2343 @mkdir -p $(obj)board/voiceblue
2344 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2345 echo "... boot from lower flash bank" ; \
2346 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2347 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2349 echo "... boot from upper flash bank" ; \
2350 >$(obj)include/config.h ; \
2351 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2353 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2355 cm4008_config : unconfig
2356 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2358 cm41xx_config : unconfig
2359 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2361 gth2_config : unconfig
2362 @mkdir -p $(obj)include
2363 @ >$(obj)include/config.h
2364 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2365 @$(MKCONFIG) -a gth2 mips mips gth2
2367 #########################################################################
2369 #########################################################################
2371 B2_config : unconfig
2372 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2374 #########################################################################
2376 #########################################################################
2378 armadillo_config: unconfig
2379 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2381 ep7312_config : unconfig
2382 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2384 impa7_config : unconfig
2385 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2387 modnet50_config : unconfig
2388 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2390 evb4510_config : unconfig
2391 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2393 lpc2292sodimm_config: unconfig
2394 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2396 SMN42_config : unconfig
2397 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2399 #########################################################################
2401 #########################################################################
2403 adsvix_config : unconfig
2404 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2406 cerf250_config : unconfig
2407 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2409 cradle_config : unconfig
2410 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2412 csb226_config : unconfig
2413 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2416 @$(MKCONFIG) $(@:_config=) arm pxa delta
2418 innokom_config : unconfig
2419 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2421 ixdp425_config : unconfig
2422 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2424 ixdpg425_config : unconfig
2425 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2427 lubbock_config : unconfig
2428 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2430 pleb2_config : unconfig
2431 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2433 logodl_config : unconfig
2434 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2437 scpu_config: unconfig
2438 @mkdir -p $(obj)include
2439 @if [ "$(findstring scpu_,$@)" ] ; then \
2440 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2441 echo "... on SCPU board variant" ; \
2443 >$(obj)include/config.h ; \
2445 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2447 pxa255_idp_config: unconfig
2448 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2450 trizepsiv_config : unconfig
2451 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2453 wepep250_config : unconfig
2454 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2456 xaeniax_config : unconfig
2457 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2459 xm250_config : unconfig
2460 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2462 xsengine_config : unconfig
2463 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2466 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2468 #########################################################################
2470 #########################################################################
2471 omap2420h4_config : unconfig
2472 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2474 apollon_config : unconfig
2475 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon
2477 #========================================================================
2479 #========================================================================
2480 #########################################################################
2482 #########################################################################
2483 sc520_cdp_config : unconfig
2484 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2486 sc520_spunk_config : unconfig
2487 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2489 sc520_spunk_rel_config : unconfig
2490 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2492 #========================================================================
2494 #========================================================================
2495 #########################################################################
2497 #########################################################################
2499 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2501 incaip_100MHz_config \
2502 incaip_133MHz_config \
2503 incaip_150MHz_config \
2504 incaip_config: unconfig
2505 @mkdir -p $(obj)include
2506 @ >$(obj)include/config.h
2507 @[ -z "$(findstring _100MHz,$@)" ] || \
2508 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2509 echo "... with 100MHz system clock" ; \
2511 @[ -z "$(findstring _133MHz,$@)" ] || \
2512 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2513 echo "... with 133MHz system clock" ; \
2515 @[ -z "$(findstring _150MHz,$@)" ] || \
2516 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2517 echo "... with 150MHz system clock" ; \
2519 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2521 tb0229_config: unconfig
2522 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2524 #########################################################################
2526 #########################################################################
2527 dbau1000_config : unconfig
2528 @mkdir -p $(obj)include
2529 @ >$(obj)include/config.h
2530 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2531 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2533 dbau1100_config : unconfig
2534 @mkdir -p $(obj)include
2535 @ >$(obj)include/config.h
2536 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2537 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2539 dbau1500_config : unconfig
2540 @mkdir -p $(obj)include
2541 @ >$(obj)include/config.h
2542 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2543 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2545 dbau1550_config : unconfig
2546 @mkdir -p $(obj)include
2547 @ >$(obj)include/config.h
2548 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2549 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2551 dbau1550_el_config : unconfig
2552 @mkdir -p $(obj)include
2553 @ >$(obj)include/config.h
2554 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2555 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2557 pb1000_config : unconfig
2558 @mkdir -p $(obj)include
2559 @ >$(obj)include/config.h
2560 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2561 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2563 #########################################################################
2565 #########################################################################
2567 purple_config : unconfig
2568 @$(MKCONFIG) $(@:_config=) mips mips purple
2570 #========================================================================
2572 #========================================================================
2573 #########################################################################
2575 #########################################################################
2577 DK1C20_safe_32_config \
2578 DK1C20_standard_32_config \
2579 DK1C20_config: unconfig
2580 @mkdir -p $(obj)include
2581 @ >$(obj)include/config.h
2582 @[ -z "$(findstring _safe_32,$@)" ] || \
2583 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2584 echo "... NIOS 'safe_32' configuration" ; \
2586 @[ -z "$(findstring _standard_32,$@)" ] || \
2587 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2588 echo "... NIOS 'standard_32' configuration" ; \
2590 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2591 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2592 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2594 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2596 DK1S10_safe_32_config \
2597 DK1S10_standard_32_config \
2598 DK1S10_mtx_ldk_20_config \
2599 DK1S10_config: unconfig
2600 @mkdir -p $(obj)include
2601 @ >$(obj)include/config.h
2602 @[ -z "$(findstring _safe_32,$@)" ] || \
2603 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2604 echo "... NIOS 'safe_32' configuration" ; \
2606 @[ -z "$(findstring _standard_32,$@)" ] || \
2607 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2608 echo "... NIOS 'standard_32' configuration" ; \
2610 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2611 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2612 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2614 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2615 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2616 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2618 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2620 ADNPESC1_DNPEVA2_base_32_config \
2621 ADNPESC1_base_32_config \
2622 ADNPESC1_config: unconfig
2623 @mkdir -p $(obj)include
2624 @ >$(obj)include/config.h
2625 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2626 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2627 echo "... DNP/EVA2 configuration" ; \
2629 @[ -z "$(findstring _base_32,$@)" ] || \
2630 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2631 echo "... NIOS 'base_32' configuration" ; \
2633 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2634 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2635 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2637 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2639 #########################################################################
2641 #########################################################################
2643 EP1C20_config : unconfig
2644 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2646 EP1S10_config : unconfig
2647 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2649 EP1S40_config : unconfig
2650 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2652 PK1C20_config : unconfig
2653 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2655 PCI5441_config : unconfig
2656 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2658 #========================================================================
2660 #========================================================================
2661 #########################################################################
2663 #########################################################################
2664 suzaku_config: unconfig
2665 @mkdir -p $(obj)include
2666 @ >$(obj)include/config.h
2667 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2668 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2670 ml401_config: unconfig
2671 @mkdir -p $(obj)include
2672 @ >$(obj)include/config.h
2673 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2674 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2676 xupv2p_config: unconfig
2677 @mkdir -p $(obj)include
2678 @ >$(obj)include/config.h
2679 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2680 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2682 #########################################################################
2684 #########################################################################
2685 bf533-ezkit_config: unconfig
2686 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2688 bf533-stamp_config: unconfig
2689 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2691 bf537-stamp_config: unconfig
2692 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2694 bf561-ezkit_config: unconfig
2695 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2697 #========================================================================
2699 #========================================================================
2700 #########################################################################
2702 #########################################################################
2704 atstk1002_config : unconfig
2705 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2707 atstk1003_config : unconfig
2708 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2710 atstk1004_config : unconfig
2711 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2713 #########################################################################
2714 #########################################################################
2715 #########################################################################
2717 #########################################################################
2718 ## sh4 (Renesas SuperH)
2719 #########################################################################
2720 ms7750se_config: unconfig
2722 @echo "#define CONFIG_MS7750SE 1" >> include/config.h
2723 @./mkconfig -a $(@:_config=) sh sh4 ms7750se
2725 ms7722se_config : unconfig
2727 @echo "#define CONFIG_MS7722SE 1" >> include/config.h
2728 @./mkconfig -a $(@:_config=) sh sh4 ms7722se
2730 #########################################################################
2731 #########################################################################
2732 #########################################################################
2735 find $(OBJTREE) -type f \
2736 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2737 -o -name '*.o' -o -name '*.a' \) -print \
2739 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2740 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2741 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2742 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2743 $(obj)examples/test_burst
2744 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2745 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2746 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2747 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2748 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2749 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2750 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2751 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2752 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2753 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2754 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2755 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2756 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2757 rm -f $(obj)include/bmp_logo.h
2758 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2759 rm -f $(obj)api_examples/demo
2762 find $(OBJTREE) -type f \( -name .depend \
2763 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2766 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2768 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2769 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2770 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2771 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2772 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2773 find $(obj)api_examples -lname "*" -print | xargs rm -f
2774 rm -f $(obj)api_examples/demo
2776 ifeq ($(OBJTREE),$(SRCTREE))
2778 distclean: clobber unconfig
2781 distclean: clobber unconfig
2786 F=`basename $(TOPDIR)` ; cd .. ; \
2787 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2789 #########################################################################