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 += board/$(BOARDDIR)/lib$(BOARD).a
205 LIBS += cpu/$(CPU)/lib$(CPU).a
207 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
210 LIBS += cpu/ixp/npe/libnpe.a
212 LIBS += lib_$(ARCH)/lib$(ARCH).a
213 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
214 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
216 LIBS += disk/libdisk.a
217 LIBS += drivers/bios_emulator/libatibiosemu.a
218 LIBS += drivers/block/libblock.a
219 LIBS += drivers/dma/libdma.a
220 LIBS += drivers/hwmon/libhwmon.a
221 LIBS += drivers/i2c/libi2c.a
222 LIBS += drivers/input/libinput.a
223 LIBS += drivers/misc/libmisc.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/net/libnet.a
229 LIBS += drivers/net/sk98lin/libsk98lin.a
230 LIBS += drivers/pci/libpci.a
231 LIBS += drivers/pcmcia/libpcmcia.a
232 LIBS += drivers/spi/libspi.a
233 ifeq ($(CPU),mpc83xx)
234 LIBS += drivers/qe/qe.a
236 ifeq ($(CPU),mpc85xx)
237 LIBS += drivers/qe/qe.a
239 LIBS += drivers/rtc/librtc.a
240 LIBS += drivers/serial/libserial.a
241 LIBS += drivers/usb/libusb.a
242 LIBS += drivers/video/libvideo.a
243 LIBS += post/libpost.a post/drivers/libpostdrivers.a
244 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
245 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
246 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
247 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
248 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
249 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
250 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
251 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
252 LIBS += common/libcommon.a
253 LIBS += libfdt/libfdt.a
256 LIBS := $(addprefix $(obj),$(LIBS))
257 .PHONY : $(LIBS) $(VERSION_FILE)
260 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
262 # The "tools" are needed early, so put this first
263 # Don't include stuff already done in $(LIBS)
270 ifeq ($(CONFIG_NAND_U_BOOT),y)
272 U_BOOT_NAND = $(obj)u-boot-nand.bin
275 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
276 ONENAND_IPL = onenand_ipl
277 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
280 __OBJS := $(subst $(obj),,$(OBJS))
281 __LIBS := $(subst $(obj),,$(LIBS))
283 #########################################################################
284 #########################################################################
286 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
287 ifeq ($(ARCH),blackfin)
288 ALL += $(obj)u-boot.ldr
293 $(obj)u-boot.hex: $(obj)u-boot
294 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
296 $(obj)u-boot.srec: $(obj)u-boot
297 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
299 $(obj)u-boot.bin: $(obj)u-boot
300 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
302 $(obj)u-boot.ldr: $(obj)u-boot
303 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
305 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
306 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
308 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
309 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
311 $(obj)u-boot.img: $(obj)u-boot.bin
312 ./tools/mkimage -A $(ARCH) -T firmware -C none \
313 -a $(TEXT_BASE) -e 0 \
314 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
315 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
318 $(obj)u-boot.sha1: $(obj)u-boot.bin
319 $(obj)tools/ubsha1 $(obj)u-boot.bin
321 $(obj)u-boot.dis: $(obj)u-boot
322 $(OBJDUMP) -d $< > $@
324 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
325 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
326 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
327 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
328 -Map u-boot.map -o u-boot
330 $(OBJS): depend $(obj)include/autoconf.mk
331 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
333 $(LIBS): depend $(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 $(obj)onenand_ipl/board/$(BOARDDIR) all
351 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
352 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
353 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
354 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
357 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
358 echo -n "$(U_BOOT_VERSION)" ; \
359 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
362 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
365 $(MAKE) -C tools/gdb all || exit 1
368 $(MAKE) -C tools/updater all || exit 1
371 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
373 depend dep: $(VERSION_FILE)
374 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
376 TAG_SUBDIRS += include
377 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
378 TAG_SUBDIRS += cpu/$(CPU)
379 TAG_SUBDIRS += lib_$(ARCH)
380 TAG_SUBDIRS += fs/cramfs
381 TAG_SUBDIRS += fs/fat
382 TAG_SUBDIRS += fs/fdos
383 TAG_SUBDIRS += fs/jffs2
386 TAG_SUBDIRS += common
387 TAG_SUBDIRS += drivers/bios_emulator
388 TAG_SUBDIRS += drivers/block
389 TAG_SUBDIRS += drivers/hwmon
390 TAG_SUBDIRS += drivers/i2c
391 TAG_SUBDIRS += drivers/input
392 TAG_SUBDIRS += drivers/misc
393 TAG_SUBDIRS += drivers/mtd
394 TAG_SUBDIRS += drivers/mtd/nand
395 TAG_SUBDIRS += drivers/mtd/nand_legacy
396 TAG_SUBDIRS += drivers/mtd/onenand
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: $(obj)include/config.h $(VERSION_FILE)
432 @$(XECHO) Generating include/autoconf.mk ; \
434 : Generate the dependancies ; \
435 $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
436 : Extract the config macros ; \
437 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
439 sinclude $(obj)include/autoconf.mk.dep
441 #########################################################################
443 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
444 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
445 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
446 dep tags ctags etags cscope $(obj)System.map:
447 @echo "System not configured - see README" >&2
453 git log --no-merges U-Boot-1_1_5.. | \
454 unexpand -a | sed -e 's/\s\s*$$//' > $@
456 #########################################################################
459 @rm -f $(obj)include/config.h $(obj)include/config.mk \
460 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
461 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
463 #========================================================================
465 #========================================================================
467 #########################################################################
469 #########################################################################
471 canmb_config: unconfig
472 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
474 cmi_mpc5xx_config: unconfig
475 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
477 PATI_config: unconfig
478 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
480 #########################################################################
482 #########################################################################
485 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
487 BC3450_config: unconfig
488 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
490 cpci5200_config: unconfig
491 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
493 hmi1001_config: unconfig
494 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
497 Lite5200_LOWBOOT_config \
498 Lite5200_LOWBOOT08_config \
499 icecube_5200_config \
500 icecube_5200_LOWBOOT_config \
501 icecube_5200_LOWBOOT08_config \
502 icecube_5200_DDR_config \
503 icecube_5200_DDR_LOWBOOT_config \
504 icecube_5200_DDR_LOWBOOT08_config \
505 icecube_5100_config: unconfig
506 @mkdir -p $(obj)include
507 @mkdir -p $(obj)board/icecube
508 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
509 { if [ "$(findstring DDR,$@)" ] ; \
510 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
511 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
513 $(XECHO) "... with LOWBOOT configuration" ; \
515 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
516 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
517 echo "... with 8 MB flash only" ; \
518 $(XECHO) "... with LOWBOOT configuration" ; \
520 @[ -z "$(findstring DDR,$@)" ] || \
521 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
522 $(XECHO) "... DDR memory revision" ; \
524 @[ -z "$(findstring 5200,$@)" ] || \
525 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
526 $(XECHO) "... with MPC5200 processor" ; \
528 @[ -z "$(findstring 5100,$@)" ] || \
529 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
530 $(XECHO) "... with MGT5100 processor" ; \
532 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
534 jupiter_config: unconfig
535 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
537 v38b_config: unconfig
538 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
540 inka4x0_config: unconfig
541 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
544 lite5200b_PM_config \
545 lite5200b_LOWBOOT_config: unconfig
546 @mkdir -p $(obj)include
547 @mkdir -p $(obj)board/icecube
548 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
549 @ $(XECHO) "... DDR memory revision"
550 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
551 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
552 @[ -z "$(findstring _PM_,$@)" ] || \
553 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
554 $(XECHO) "... with power management (low-power mode) support" ; \
556 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
557 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
558 $(XECHO) "... with LOWBOOT configuration" ; \
560 @ $(XECHO) "... with MPC5200B processor"
561 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
564 mcc200_SDRAM_config \
565 mcc200_highboot_config \
566 mcc200_COM12_config \
567 mcc200_COM12_SDRAM_config \
568 mcc200_COM12_highboot_config \
569 mcc200_COM12_highboot_SDRAM_config \
570 mcc200_highboot_SDRAM_config \
573 prs200_highboot_config \
574 prs200_highboot_DDR_config: unconfig
575 @mkdir -p $(obj)include
576 @mkdir -p $(obj)board/mcc200
577 @[ -n "$(findstring highboot,$@)" ] || \
578 { $(XECHO) "... with lowboot configuration" ; \
580 @[ -z "$(findstring highboot,$@)" ] || \
581 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
582 $(XECHO) "... with highboot configuration" ; \
584 @[ -n "$(findstring _SDRAM,$@)" ] || \
585 { if [ -n "$(findstring mcc200,$@)" ]; \
587 $(XECHO) "... with DDR" ; \
589 if [ -n "$(findstring _DDR,$@)" ];\
591 $(XECHO) "... with DDR" ; \
593 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
594 $(XECHO) "... with SDRAM" ; \
598 @[ -z "$(findstring _SDRAM,$@)" ] || \
599 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
600 $(XECHO) "... with SDRAM" ; \
602 @[ -z "$(findstring COM12,$@)" ] || \
603 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
604 $(XECHO) "... with console on COM12" ; \
606 @[ -z "$(findstring prs200,$@)" ] || \
607 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
609 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
611 mecp5200_config: unconfig
612 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
614 munices_config: unconfig
615 @$(MKCONFIG) munices ppc mpc5xxx munices
617 o2dnt_config: unconfig
618 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
620 pf5200_config: unconfig
621 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
625 PM520_ROMBOOT_config \
626 PM520_ROMBOOT_DDR_config: unconfig
627 @mkdir -p $(obj)include
628 @[ -z "$(findstring DDR,$@)" ] || \
629 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
630 $(XECHO) "... DDR memory revision" ; \
632 @[ -z "$(findstring ROMBOOT,$@)" ] || \
633 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
634 $(XECHO) "... booting from 8-bit flash" ; \
636 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
638 smmaco4_config: unconfig
639 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
641 cm5200_config: unconfig
642 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
644 spieval_config: unconfig
645 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
648 TB5200_config: unconfig
649 @mkdir -p $(obj)include
650 @[ -z "$(findstring _B,$@)" ] || \
651 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
652 $(XECHO) "... with MPC5200B processor" ; \
654 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
658 TOP5200_config: unconfig
659 @mkdir -p $(obj)include
660 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
661 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
665 Total5200_lowboot_config \
666 Total5200_Rev2_config \
667 Total5200_Rev2_lowboot_config: unconfig
668 @mkdir -p $(obj)include
669 @mkdir -p $(obj)board/total5200
670 @[ -z "$(findstring 5100,$@)" ] || \
671 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
672 $(XECHO) "... with MGT5100 processor" ; \
674 @[ -z "$(findstring 5200,$@)" ] || \
675 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
676 $(XECHO) "... with MPC5200 processor" ; \
678 @[ -n "$(findstring Rev,$@)" ] || \
679 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
680 $(XECHO) "... revision 1 board" ; \
682 @[ -z "$(findstring Rev2_,$@)" ] || \
683 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
684 $(XECHO) "... revision 2 board" ; \
686 @[ -z "$(findstring lowboot_,$@)" ] || \
687 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
688 $(XECHO) "... with lowboot configuration" ; \
690 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
693 cam5200_niosflash_config \
697 TQM5200S_HIGHBOOT_config \
699 TQM5200_B_HIGHBOOT_config \
701 TQM5200_STK100_config: unconfig
702 @mkdir -p $(obj)include
703 @mkdir -p $(obj)board/tqm5200
704 @[ -z "$(findstring cam5200,$@)" ] || \
705 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
706 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
707 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
708 $(XECHO) "... TQM5200S on Cam5200" ; \
710 @[ -z "$(findstring niosflash,$@)" ] || \
711 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
712 $(XECHO) "... with NIOS flash driver" ; \
714 @[ -z "$(findstring fo300,$@)" ] || \
715 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
716 $(XECHO) "... TQM5200 on FO300" ; \
718 @[ -z "$(findstring MiniFAP,$@)" ] || \
719 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
720 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
722 @[ -z "$(findstring STK100,$@)" ] || \
723 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
724 $(XECHO) "... on a STK52XX.100 base board" ; \
726 @[ -z "$(findstring TQM5200_B,$@)" ] || \
727 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
729 @[ -z "$(findstring TQM5200S,$@)" ] || \
730 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
731 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
733 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
734 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
736 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
737 uc101_config: unconfig
738 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
739 motionpro_config: unconfig
740 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
743 #########################################################################
745 #########################################################################
749 @mkdir -p $(obj)include
750 @if [ "$(findstring _PCI_,$@)" ] ; then \
751 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
752 $(XECHO) "... with PCI enabled" ; \
754 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
757 #########################################################################
759 #########################################################################
765 @mkdir -p $(obj)include
766 $(if $(findstring AdderII,$@), \
767 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
768 @$(MKCONFIG) -a Adder ppc mpc8xx adder
770 AdderUSB_config: unconfig
771 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
778 FADS860T_config: unconfig
779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
781 AMX860_config : unconfig
782 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
784 c2mon_config: unconfig
785 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
788 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
790 cogent_mpc8xx_config: unconfig
791 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
793 ELPT860_config: unconfig
794 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
796 EP88x_config: unconfig
797 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
799 ESTEEM192E_config: unconfig
800 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
802 ETX094_config : unconfig
803 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
805 FLAGADM_config: unconfig
806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
808 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
811 GEN860T_config: unconfig
812 @mkdir -p $(obj)include
813 @[ -z "$(findstring _SC,$@)" ] || \
814 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
815 $(XECHO) "With reduced H/W feature set (SC)..." ; \
817 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
819 GENIETV_config: unconfig
820 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
823 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
825 hermes_config : unconfig
826 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
828 HMI10_config : unconfig
829 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
831 IAD210_config: unconfig
832 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
834 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
836 ICU862_100MHz_config \
837 ICU862_config: unconfig
838 @mkdir -p $(obj)include
839 @[ -z "$(findstring _100MHz,$@)" ] || \
840 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
841 $(XECHO) "... with 100MHz system clock" ; \
843 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
845 IP860_config : unconfig
846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
850 IVML24_config: unconfig
851 @mkdir -p $(obj)include
852 @[ -z "$(findstring IVML24_config,$@)" ] || \
853 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
855 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
856 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
858 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
859 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
861 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
865 IVMS8_config: unconfig
866 @mkdir -p $(obj)include
867 @[ -z "$(findstring IVMS8_config,$@)" ] || \
868 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
870 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
871 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
873 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
874 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
876 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
878 KUP4K_config : unconfig
879 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
881 KUP4X_config : unconfig
882 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
884 LANTEC_config : unconfig
885 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
887 lwmon_config: unconfig
888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
891 MBX860T_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
894 mgsuvd_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
897 MHPC_config: unconfig
898 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
900 MVS1_config : unconfig
901 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
903 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
906 NETVIA_config: unconfig
907 @mkdir -p $(obj)include
908 @[ -z "$(findstring NETVIA_config,$@)" ] || \
909 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
910 $(XECHO) "... Version 1" ; \
912 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
913 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
914 $(XECHO) "... Version 2" ; \
916 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
918 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
921 NETPHONE_config: unconfig
922 @mkdir -p $(obj)include
923 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
924 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
926 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
927 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
929 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
931 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
933 NETTA_ISDN_6412_SWAPHOOK_config \
934 NETTA_ISDN_SWAPHOOK_config \
935 NETTA_6412_SWAPHOOK_config \
936 NETTA_SWAPHOOK_config \
937 NETTA_ISDN_6412_config \
940 NETTA_config: unconfig
941 @mkdir -p $(obj)include
942 @[ -z "$(findstring ISDN_,$@)" ] || \
943 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
945 @[ -n "$(findstring ISDN_,$@)" ] || \
946 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
948 @[ -z "$(findstring 6412_,$@)" ] || \
949 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
951 @[ -n "$(findstring 6412_,$@)" ] || \
952 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
954 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
955 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
957 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
958 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
960 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
962 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
965 NETTA2_config: unconfig
966 @mkdir -p $(obj)include
967 @[ -z "$(findstring NETTA2_config,$@)" ] || \
968 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
970 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
971 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
973 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
977 CP850_config: unconfig
978 @mkdir -p $(obj)include
979 @[ -z "$(findstring CP850,$@)" ] || \
980 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
981 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
983 @[ -z "$(findstring Rev1,$@)" ] || \
984 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
986 @[ -z "$(findstring Rev2,$@)" ] || \
987 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
989 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
991 NX823_config: unconfig
992 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
994 pcu_e_config: unconfig
995 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
997 QS850_config: unconfig
998 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1000 QS823_config: unconfig
1001 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1003 QS860T_config: unconfig
1004 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1006 quantum_config: unconfig
1007 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1009 R360MPI_config: unconfig
1010 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1012 RBC823_config: unconfig
1013 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1015 RPXClassic_config: unconfig
1016 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1018 RPXlite_config: unconfig
1019 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1021 RPXlite_DW_64_config \
1022 RPXlite_DW_LCD_config \
1023 RPXlite_DW_64_LCD_config \
1024 RPXlite_DW_NVRAM_config \
1025 RPXlite_DW_NVRAM_64_config \
1026 RPXlite_DW_NVRAM_LCD_config \
1027 RPXlite_DW_NVRAM_64_LCD_config \
1028 RPXlite_DW_config: unconfig
1029 @mkdir -p $(obj)include
1030 @[ -z "$(findstring _64,$@)" ] || \
1031 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1032 $(XECHO) "... with 64MHz system clock ..."; \
1034 @[ -z "$(findstring _LCD,$@)" ] || \
1035 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1036 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1037 $(XECHO) "... with LCD display ..."; \
1039 @[ -z "$(findstring _NVRAM,$@)" ] || \
1040 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1041 $(XECHO) "... with ENV in NVRAM ..."; \
1043 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1045 rmu_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1048 RRvision_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1051 RRvision_LCD_config: unconfig
1052 @mkdir -p $(obj)include
1053 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1054 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1055 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1057 SM850_config : unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1060 spc1920_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1063 SPD823TS_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1066 stxxtc_config: unconfig
1067 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1069 svm_sc8xx_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1072 SXNI855T_config: unconfig
1073 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1075 # EMK MPC8xx based modules
1076 TOP860_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1079 # Play some tricks for configuration selection
1080 # Only 855 and 860 boards may come with FEC
1081 # and only 823 boards may have LCD support
1082 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1088 TQM823L_LCD_config \
1101 virtlab2_config: unconfig
1102 @mkdir -p $(obj)include
1103 @[ -z "$(findstring _LCD,$@)" ] || \
1104 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1105 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1106 $(XECHO) "... with LCD display" ; \
1108 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1110 TTTech_config: unconfig
1111 @mkdir -p $(obj)include
1112 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1113 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1114 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1116 uc100_config : unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1119 v37_config: unconfig
1120 @mkdir -p $(obj)include
1121 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1122 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1123 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1125 wtk_config: unconfig
1126 @mkdir -p $(obj)include
1127 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1128 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1129 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1131 #########################################################################
1133 #########################################################################
1134 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1136 acadia_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1139 acadia_nand_config: unconfig
1140 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1141 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1142 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1143 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1144 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1145 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1147 ADCIOP_config: unconfig
1148 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1150 alpr_config: unconfig
1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1153 AP1000_config:unconfig
1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1156 APC405_config: unconfig
1157 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1159 AR405_config: unconfig
1160 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1162 ASH405_config: unconfig
1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1165 bamboo_config: unconfig
1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1168 bamboo_nand_config: unconfig
1169 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1170 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1171 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1172 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1173 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1174 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1176 bubinga_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1179 CANBT_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1182 # Canyonlands & Glacier use different U-Boot images
1183 canyonlands_config \
1184 glacier_config: unconfig
1185 @mkdir -p $(obj)include
1186 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1187 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1188 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1190 canyonlands_nand_config \
1191 glacier_nand_config: unconfig
1192 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1193 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1194 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1195 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1196 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1197 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1198 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1199 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1202 CATcenter_25_config \
1203 CATcenter_33_config: unconfig
1204 @mkdir -p $(obj)include
1205 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1206 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1207 @[ -z "$(findstring _25,$@)" ] || \
1208 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1209 $(XECHO) "SysClk = 25MHz" ; \
1211 @[ -z "$(findstring _33,$@)" ] || \
1212 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1213 $(XECHO) "SysClk = 33MHz" ; \
1215 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1217 CPCI2DP_config: unconfig
1218 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1223 CPCI405AB_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1225 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1227 CPCIISER4_config: unconfig
1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1230 CRAYL1_config: unconfig
1231 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1233 csb272_config: unconfig
1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1236 csb472_config: unconfig
1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1239 DASA_SIM_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1242 DP405_config: unconfig
1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1245 DU405_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1248 DU440_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1251 ebony_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1254 ERIC_config: unconfig
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1257 EXBITGEN_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1260 G2000_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1263 hcu4_config: unconfig
1264 @mkdir -p $(obj)board/netstal/common
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1267 hcu5_config: unconfig
1268 @mkdir -p $(obj)board/netstal/common
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1271 HH405_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1274 HUB405_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1277 JSE_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1280 KAREF_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1283 katmai_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1286 # Kilauea & Haleakala images are identical (recognized via PVR)
1288 haleakala_config: unconfig
1289 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1291 kilauea_nand_config \
1292 haleakala_nand_config: unconfig
1293 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1294 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1295 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1296 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1297 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1298 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1300 korat_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1303 luan_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1306 lwmon5_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1309 makalu_config: unconfig
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1312 mcu25_config: unconfig
1313 @mkdir -p $(obj)board/netstal/common
1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1316 METROBOX_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1319 MIP405_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1322 MIP405T_config: unconfig
1323 @mkdir -p $(obj)include
1324 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1325 @$(XECHO) "Enable subset config for MIP405T"
1326 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1328 ML2_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1331 ml300_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1334 ocotea_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1338 ORSG_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1341 p3p440_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1344 PCI405_config: unconfig
1345 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1347 pcs440ep_config: unconfig
1348 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1350 PIP405_config: unconfig
1351 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1353 PLU405_config: unconfig
1354 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1356 PMC405_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1359 PMC440_config: unconfig
1360 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1362 PPChameleonEVB_config \
1363 PPChameleonEVB_BA_25_config \
1364 PPChameleonEVB_ME_25_config \
1365 PPChameleonEVB_HI_25_config \
1366 PPChameleonEVB_BA_33_config \
1367 PPChameleonEVB_ME_33_config \
1368 PPChameleonEVB_HI_33_config: unconfig
1369 @mkdir -p $(obj)include
1370 @[ -z "$(findstring EVB_BA,$@)" ] || \
1371 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1372 $(XECHO) "... BASIC model" ; \
1374 @[ -z "$(findstring EVB_ME,$@)" ] || \
1375 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1376 $(XECHO) "... MEDIUM model" ; \
1378 @[ -z "$(findstring EVB_HI,$@)" ] || \
1379 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1380 $(XECHO) "... HIGH-END model" ; \
1382 @[ -z "$(findstring _25,$@)" ] || \
1383 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1384 $(XECHO) "SysClk = 25MHz" ; \
1386 @[ -z "$(findstring _33,$@)" ] || \
1387 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1388 $(XECHO) "SysClk = 33MHz" ; \
1390 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1392 sbc405_config: unconfig
1393 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1396 rainier_config: unconfig
1397 @mkdir -p $(obj)include
1398 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1399 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1400 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1402 sequoia_nand_config \
1403 rainier_nand_config: unconfig
1404 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1405 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1406 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1407 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1408 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1409 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1410 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1411 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1414 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1416 taihu_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1419 taishan_config: unconfig
1420 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1422 VOH405_config: unconfig
1423 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1425 VOM405_config: unconfig
1426 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1428 CMS700_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1432 W7OLMG_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1435 # Walnut & Sycamore images are identical (recognized via PVR)
1437 sycamore_config: unconfig
1438 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1440 WUH405_config: unconfig
1441 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1443 XPEDITE1K_config: unconfig
1444 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1447 yellowstone_config: unconfig
1448 @mkdir -p $(obj)include
1449 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1450 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1451 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1453 yucca_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1456 zeus_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1459 #########################################################################
1461 #########################################################################
1464 Yukon8220_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1467 sorcery_config: unconfig
1468 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1470 #########################################################################
1472 #########################################################################
1473 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1475 A3000_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1478 barco_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1481 BMW_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1485 CPC45_ROMBOOT_config: unconfig
1486 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1487 @cd $(obj)include ; \
1488 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1489 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1490 $(XECHO) "... booting from 8-bit flash" ; \
1492 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1493 $(XECHO) "... booting from 64-bit flash" ; \
1495 echo "export CONFIG_BOOT_ROM" >> config.mk;
1497 CU824_config: unconfig
1498 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1500 debris_config: unconfig
1501 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1503 eXalion_config: unconfig
1504 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1506 HIDDEN_DRAGON_config: unconfig
1507 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1509 kvme080_config: unconfig
1510 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1512 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1514 #linkstation_HDLAN_config \
1515 # Remove this line when HDLAN is fixed
1516 linkstation_HGLAN_config: unconfig
1517 @mkdir -p $(obj)include
1519 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1520 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1522 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1524 MOUSSE_config: unconfig
1525 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1527 MUSENKI_config: unconfig
1528 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1530 MVBLUE_config: unconfig
1531 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1533 OXC_config: unconfig
1534 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1536 PN62_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1539 Sandpoint8240_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1542 Sandpoint8245_config: unconfig
1543 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1545 sbc8240_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1548 SL8245_config: unconfig
1549 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1551 utx8245_config: unconfig
1552 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1554 #########################################################################
1556 #########################################################################
1558 atc_config: unconfig
1559 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1561 cogent_mpc8260_config: unconfig
1562 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1565 CPU86_ROMBOOT_config: unconfig
1566 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1567 @cd $(obj)include ; \
1568 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1569 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1570 $(XECHO) "... booting from 8-bit flash" ; \
1572 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1573 $(XECHO) "... booting from 64-bit flash" ; \
1575 echo "export CONFIG_BOOT_ROM" >> config.mk;
1578 CPU87_ROMBOOT_config: unconfig
1579 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1580 @cd $(obj)include ; \
1581 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1582 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1583 $(XECHO) "... booting from 8-bit flash" ; \
1585 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1586 $(XECHO) "... booting from 64-bit flash" ; \
1588 echo "export CONFIG_BOOT_ROM" >> config.mk;
1591 ep8248E_config : unconfig
1592 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1594 ep8260_config: unconfig
1595 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1597 ep82xxm_config: unconfig
1598 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1600 gw8260_config: unconfig
1601 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1603 hymod_config: unconfig
1604 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1606 IDS8247_config: unconfig
1607 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1609 IPHASE4539_config: unconfig
1610 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1613 ISPAN_REVB_config: unconfig
1614 @mkdir -p $(obj)include
1615 @if [ "$(findstring _REVB_,$@)" ] ; then \
1616 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1618 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1620 mgcoge_config : unconfig
1621 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1624 MPC8260ADS_lowboot_config \
1625 MPC8260ADS_33MHz_config \
1626 MPC8260ADS_33MHz_lowboot_config \
1627 MPC8260ADS_40MHz_config \
1628 MPC8260ADS_40MHz_lowboot_config \
1630 MPC8272ADS_lowboot_config \
1632 PQ2FADS_lowboot_config \
1634 PQ2FADS-VR_lowboot_config \
1636 PQ2FADS-ZU_lowboot_config \
1637 PQ2FADS-ZU_66MHz_config \
1638 PQ2FADS-ZU_66MHz_lowboot_config \
1640 @mkdir -p $(obj)include
1641 @mkdir -p $(obj)board/freescale/mpc8260ads
1642 $(if $(findstring PQ2FADS,$@), \
1643 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1644 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1645 $(if $(findstring MHz,$@), \
1646 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1647 $(if $(findstring VR,$@), \
1648 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1649 @[ -z "$(findstring lowboot_,$@)" ] || \
1650 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1651 $(XECHO) "... with lowboot configuration" ; \
1653 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1655 MPC8266ADS_config: unconfig
1656 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1658 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1660 PM825_ROMBOOT_config \
1661 PM825_BIGFLASH_config \
1662 PM825_ROMBOOT_BIGFLASH_config \
1664 PM826_ROMBOOT_config \
1665 PM826_BIGFLASH_config \
1666 PM826_ROMBOOT_BIGFLASH_config: unconfig
1667 @mkdir -p $(obj)include
1668 @mkdir -p $(obj)board/pm826
1669 @if [ "$(findstring PM825_,$@)" ] ; then \
1670 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1672 >$(obj)include/config.h ; \
1674 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1675 $(XECHO) "... booting from 8-bit flash" ; \
1676 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1677 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1678 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1679 $(XECHO) "... with 32 MB Flash" ; \
1680 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1683 $(XECHO) "... booting from 64-bit flash" ; \
1684 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1685 $(XECHO) "... with 32 MB Flash" ; \
1686 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1687 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1689 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1692 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1696 PM828_ROMBOOT_config \
1697 PM828_ROMBOOT_PCI_config: unconfig
1698 @mkdir -p $(obj)include
1699 @mkdir -p $(obj)board/pm826
1700 @if [ "$(findstring _PCI_,$@)" ] ; then \
1701 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1702 $(XECHO) "... with PCI enabled" ; \
1704 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1705 $(XECHO) "... booting from 8-bit flash" ; \
1706 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1707 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1709 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1711 ppmc8260_config: unconfig
1712 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1714 Rattler8248_config \
1715 Rattler_config: unconfig
1716 @mkdir -p $(obj)include
1717 $(if $(findstring 8248,$@), \
1718 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1719 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1721 RPXsuper_config: unconfig
1722 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1724 rsdproto_config: unconfig
1725 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1727 sacsng_config: unconfig
1728 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1730 sbc8260_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1733 SCM_config: unconfig
1734 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1746 TQM8265_AA_config: unconfig
1747 @mkdir -p $(obj)include
1749 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1750 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1751 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1752 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1753 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1754 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1755 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1756 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1757 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1758 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1759 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1761 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1762 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1764 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1765 echo "... with $${CFREQ}MHz system clock" ; \
1766 if [ "$${CACHE}" = "yes" ] ; then \
1767 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1768 $(XECHO) "... with L2 Cache support" ; \
1770 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1771 $(XECHO) "... without L2 Cache support" ; \
1773 if [ "$${BMODE}" = "60x" ] ; then \
1774 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1775 $(XECHO) "... with 60x Bus Mode" ; \
1777 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1778 $(XECHO) "... without 60x Bus Mode" ; \
1780 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1782 TQM8272_config: unconfig
1783 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1785 VoVPN-GW_66MHz_config \
1786 VoVPN-GW_100MHz_config: unconfig
1787 @mkdir -p $(obj)include
1788 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1789 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1791 ZPC1900_config: unconfig
1792 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1794 #########################################################################
1796 #########################################################################
1798 M52277EVB_config: unconfig
1799 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1802 M5235EVB_Flash16_config \
1803 M5235EVB_Flash32_config: unconfig
1805 M5235EVB_config) FLASH=16;; \
1806 M5235EVB_Flash16_config) FLASH=16;; \
1807 M5235EVB_Flash32_config) FLASH=32;; \
1809 if [ "$${FLASH}" != "16" ] ; then \
1810 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1811 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1812 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1814 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1815 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1817 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1819 M5249EVB_config : unconfig
1820 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1822 M5253EVBE_config : unconfig
1823 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1825 cobra5272_config : unconfig
1826 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1828 EB+MCF-EV123_config : unconfig
1829 @mkdir -p $(obj)include
1830 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1831 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1832 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1834 EB+MCF-EV123_internal_config : unconfig
1835 @mkdir -p $(obj)include
1836 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1837 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1838 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1840 idmr_config : unconfig
1841 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1843 M5271EVB_config : unconfig
1844 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1846 M5272C3_config : unconfig
1847 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1849 M5275EVB_config : unconfig
1850 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1852 M5282EVB_config : unconfig
1853 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1855 TASREG_config : unconfig
1856 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1859 M5329BFEE_config : unconfig
1861 M5329AFEE_config) NAND=0;; \
1862 M5329BFEE_config) NAND=16;; \
1864 if [ "$${NAND}" != "0" ] ; then \
1865 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1867 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1869 M5373EVB_config : unconfig
1871 M5373EVB_config) NAND=16;; \
1873 if [ "$${NAND}" != "0" ] ; then \
1874 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1876 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1879 M54455EVB_atmel_config \
1880 M54455EVB_intel_config \
1881 M54455EVB_a33_config \
1882 M54455EVB_a66_config \
1883 M54455EVB_i33_config \
1884 M54455EVB_i66_config : unconfig
1886 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1887 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1888 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1889 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1890 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1891 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1892 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1894 if [ "$${FLASH}" = "INTEL" ] ; then \
1895 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1896 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1897 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1898 $(XECHO) "... with INTEL boot..." ; \
1900 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1901 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1902 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1903 $(XECHO) "... with ATMEL boot..." ; \
1905 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1906 $(XECHO) "... with $${FREQ}Hz input clock"
1907 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1915 M5475GFE_config : unconfig
1917 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1918 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1919 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1920 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1921 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1922 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1923 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1925 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1926 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1927 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1928 if [ "$${RAM1}" != "0" ] ; then \
1929 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1931 if [ "$${CODE}" != "0" ] ; then \
1932 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1934 if [ "$${VID}" == "1" ] ; then \
1935 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1937 if [ "$${USB}" == "1" ] ; then \
1938 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1940 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1949 M5485HFE_config : unconfig
1951 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1952 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1953 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1954 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1955 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1956 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1957 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1958 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1960 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1961 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1962 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1963 if [ "$${RAM1}" != "0" ] ; then \
1964 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1966 if [ "$${CODE}" != "0" ] ; then \
1967 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1969 if [ "$${VID}" == "1" ] ; then \
1970 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1972 if [ "$${USB}" == "1" ] ; then \
1973 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1975 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1977 #########################################################################
1979 #########################################################################
1981 MPC8313ERDB_33_config \
1982 MPC8313ERDB_66_config: unconfig
1983 @mkdir -p $(obj)include
1984 @if [ "$(findstring _33_,$@)" ] ; then \
1985 $(XECHO) -n "...33M ..." ; \
1986 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1988 if [ "$(findstring _66_,$@)" ] ; then \
1989 $(XECHO) -n "...66M..." ; \
1990 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1992 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1994 MPC8315ERDB_config: unconfig
1995 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1997 MPC8323ERDB_config: unconfig
1998 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2000 MPC832XEMDS_config \
2001 MPC832XEMDS_HOST_33_config \
2002 MPC832XEMDS_HOST_66_config \
2003 MPC832XEMDS_SLAVE_config \
2004 MPC832XEMDS_ATM_config: unconfig
2005 @mkdir -p $(obj)include
2006 @if [ "$(findstring _HOST_,$@)" ] ; then \
2007 $(XECHO) -n "... PCI HOST " ; \
2008 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2010 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2011 $(XECHO) "...PCI SLAVE 66M" ; \
2012 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2013 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2015 if [ "$(findstring _33_,$@)" ] ; then \
2016 $(XECHO) -n "...33M ..." ; \
2017 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2018 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2020 if [ "$(findstring _66_,$@)" ] ; then \
2021 $(XECHO) -n "...66M..." ; \
2022 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2023 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2025 if [ "$(findstring _ATM_,$@)" ] ; then \
2026 $(XECHO) -n "...ATM..." ; \
2027 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2028 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2030 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2032 MPC8349EMDS_config: unconfig
2033 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2036 MPC8349ITX_LOWBOOT_config \
2037 MPC8349ITXGP_config: unconfig
2038 @mkdir -p $(obj)include
2039 @mkdir -p $(obj)board/freescale/mpc8349itx
2040 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2041 @if [ "$(findstring GP,$@)" ] ; then \
2042 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2044 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2045 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2047 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2049 MPC8360EMDS_config \
2050 MPC8360EMDS_HOST_33_config \
2051 MPC8360EMDS_HOST_66_config \
2052 MPC8360EMDS_SLAVE_config \
2053 MPC8360EMDS_ATM_config: unconfig
2054 @mkdir -p $(obj)include
2055 @if [ "$(findstring _HOST_,$@)" ] ; then \
2056 $(XECHO) -n "... PCI HOST " ; \
2057 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2059 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2060 $(XECHO) "...PCI SLAVE 66M" ; \
2061 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2062 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2064 if [ "$(findstring _33_,$@)" ] ; then \
2065 $(XECHO) -n "...33M ..." ; \
2066 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2067 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2069 if [ "$(findstring _66_,$@)" ] ; then \
2070 $(XECHO) -n "...66M..." ; \
2071 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2072 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2074 if [ "$(findstring _ATM_,$@)" ] ; then \
2075 $(XECHO) -n "...ATM..." ; \
2076 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2077 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2079 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2081 MPC8360ERDK_33_config \
2082 MPC8360ERDK_66_config \
2083 MPC8360ERDK_config: unconfig
2084 @mkdir -p $(obj)include
2085 @if [ "$(findstring _33_,$@)" ] ; then \
2086 $(XECHO) -n "... CLKIN 33MHz " ; \
2087 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2089 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2091 MPC837XEMDS_config \
2092 MPC837XEMDS_HOST_config: unconfig
2093 @mkdir -p $(obj)include
2094 @if [ "$(findstring _HOST_,$@)" ] ; then \
2095 $(XECHO) -n "... PCI HOST " ; \
2096 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2098 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2100 MPC837XERDB_config: unconfig
2101 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2103 sbc8349_config: unconfig
2104 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2106 TQM834x_config: unconfig
2107 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2110 #########################################################################
2112 #########################################################################
2114 ATUM8548_config: unconfig
2115 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2117 MPC8540ADS_config: unconfig
2118 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2120 MPC8540EVAL_config \
2121 MPC8540EVAL_33_config \
2122 MPC8540EVAL_66_config \
2123 MPC8540EVAL_33_slave_config \
2124 MPC8540EVAL_66_slave_config: unconfig
2125 @mkdir -p $(obj)include
2126 @if [ "$(findstring _33_,$@)" ] ; then \
2127 $(XECHO) "... 33 MHz PCI" ; \
2129 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2130 $(XECHO) "... 66 MHz PCI" ; \
2132 if [ "$(findstring _slave_,$@)" ] ; then \
2133 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2134 $(XECHO) " slave" ; \
2136 $(XECHO) " host" ; \
2138 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2140 MPC8560ADS_config: unconfig
2141 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2143 MPC8541CDS_legacy_config \
2144 MPC8541CDS_config: unconfig
2145 @mkdir -p $(obj)include
2146 @if [ "$(findstring _legacy_,$@)" ] ; then \
2147 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2148 $(XECHO) "... legacy" ; \
2150 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2152 MPC8544DS_config: unconfig
2153 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2155 MPC8548CDS_legacy_config \
2156 MPC8548CDS_config: unconfig
2157 @mkdir -p $(obj)include
2158 @if [ "$(findstring _legacy_,$@)" ] ; then \
2159 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2160 $(XECHO) "... legacy" ; \
2162 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2164 MPC8555CDS_legacy_config \
2165 MPC8555CDS_config: unconfig
2166 @mkdir -p $(obj)include
2167 @if [ "$(findstring _legacy_,$@)" ] ; then \
2168 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2169 $(XECHO) "... legacy" ; \
2171 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2173 MPC8568MDS_config: unconfig
2174 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2176 PM854_config: unconfig
2177 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2179 PM856_config: unconfig
2180 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2184 sbc8540_66_config: unconfig
2185 @mkdir -p $(obj)include
2186 @if [ "$(findstring _66_,$@)" ] ; then \
2187 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2188 $(XECHO) "... 66 MHz PCI" ; \
2190 $(XECHO) "... 33 MHz PCI" ; \
2192 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2194 sbc8548_config: unconfig
2195 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2199 sbc8560_66_config: unconfig
2200 @mkdir -p $(obj)include
2201 @if [ "$(findstring _66_,$@)" ] ; then \
2202 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2203 $(XECHO) "... 66 MHz PCI" ; \
2205 $(XECHO) "... 33 MHz PCI" ; \
2207 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2209 stxgp3_config: unconfig
2210 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2213 stxssa_4M_config: unconfig
2214 @mkdir -p $(obj)include
2215 @if [ "$(findstring _4M_,$@)" ] ; then \
2216 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2217 $(XECHO) "... with 4 MiB flash memory" ; \
2219 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2224 TQM8560_config: unconfig
2225 @mkdir -p $(obj)include
2226 @CTYPE=$(subst TQM,,$(@:_config=)); \
2227 $(XECHO) "... TQM"$${CTYPE}; \
2228 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2229 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2230 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2231 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2232 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2233 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2235 #########################################################################
2237 #########################################################################
2239 MPC8610HPCD_config: unconfig
2240 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2242 MPC8641HPCN_config: unconfig
2243 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2245 sbc8641d_config: unconfig
2246 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2248 #########################################################################
2250 #########################################################################
2252 AmigaOneG3SE_config: unconfig
2253 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2255 BAB7xx_config: unconfig
2256 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2258 CPCI750_config: unconfig
2259 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2261 DB64360_config: unconfig
2262 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2264 DB64460_config: unconfig
2265 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2267 ELPPC_config: unconfig
2268 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2271 EVB64260_750CX_config: unconfig
2272 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2274 mpc7448hpc2_config: unconfig
2275 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2277 P3G4_config: unconfig
2278 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2281 p3m7448_config: unconfig
2282 @mkdir -p $(obj)include
2283 @if [ "$(findstring 750_,$@)" ] ; then \
2284 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2286 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2288 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2291 PCIPPC6_config: unconfig
2292 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2294 ZUMA_config: unconfig
2295 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2297 ppmc7xx_config: unconfig
2298 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2300 #========================================================================
2302 #========================================================================
2303 #########################################################################
2304 ## StrongARM Systems
2305 #########################################################################
2307 assabet_config : unconfig
2308 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2310 dnp1110_config : unconfig
2311 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2313 gcplus_config : unconfig
2314 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2316 lart_config : unconfig
2317 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2319 shannon_config : unconfig
2320 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2322 #########################################################################
2324 #########################################################################
2326 #########################################################################
2327 ## Atmel AT91RM9200 Systems
2328 #########################################################################
2330 at91rm9200dk_config : unconfig
2331 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2333 cmc_pu2_config : unconfig
2334 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2336 csb637_config : unconfig
2337 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2339 kb9202_config : unconfig
2340 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2342 mp2usb_config : unconfig
2343 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2345 m501sk_config : unconfig
2346 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2348 #########################################################################
2349 ## Atmel ARM926EJ-S Systems
2350 #########################################################################
2352 at91cap9adk_config : unconfig
2353 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2355 at91sam9260ek_config : unconfig
2356 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2358 ########################################################################
2359 ## ARM Integrator boards - see doc/README-integrator for more info.
2360 integratorap_config \
2369 ap946es_config: unconfig
2370 @board/integratorap/split_by_variant.sh $@
2372 integratorcp_config \
2381 cp1026_config: unconfig
2382 @board/integratorcp/split_by_variant.sh $@
2385 lpd7a404_config: unconfig
2386 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2388 mx1ads_config : unconfig
2389 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2391 mx1fs2_config : unconfig
2392 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2394 netstar_config: unconfig
2395 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2397 omap1510inn_config : unconfig
2398 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2400 omap5912osk_config : unconfig
2401 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2403 davinci_dvevm_config : unconfig
2404 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2406 davinci_schmoogie_config : unconfig
2407 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2409 davinci_sonata_config : unconfig
2410 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2412 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2414 omap1610inn_config \
2415 omap1610inn_cs0boot_config \
2416 omap1610inn_cs3boot_config \
2417 omap1610inn_cs_autoboot_config \
2419 omap1610h2_cs0boot_config \
2420 omap1610h2_cs3boot_config \
2421 omap1610h2_cs_autoboot_config: unconfig
2422 @mkdir -p $(obj)include
2423 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2424 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2425 $(XECHO) "... configured for CS0 boot"; \
2426 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2427 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2428 $(XECHO) "... configured for CS_AUTO boot"; \
2430 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2431 $(XECHO) "... configured for CS3 boot"; \
2433 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2435 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2438 omap730p2_cs0boot_config \
2439 omap730p2_cs3boot_config : unconfig
2440 @mkdir -p $(obj)include
2441 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2442 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2443 $(XECHO) "... configured for CS0 boot"; \
2445 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2446 $(XECHO) "... configured for CS3 boot"; \
2448 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2450 sbc2410x_config: unconfig
2451 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2453 scb9328_config : unconfig
2454 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2456 smdk2400_config : unconfig
2457 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2459 smdk2410_config : unconfig
2460 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2462 SX1_config : unconfig
2463 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2465 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2466 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2469 trab_bigram_config \
2470 trab_bigflash_config \
2471 trab_old_config: unconfig
2472 @mkdir -p $(obj)include
2473 @mkdir -p $(obj)board/trab
2474 @[ -z "$(findstring _bigram,$@)" ] || \
2475 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2476 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2477 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2479 @[ -z "$(findstring _bigflash,$@)" ] || \
2480 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2481 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2482 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2483 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2485 @[ -z "$(findstring _old,$@)" ] || \
2486 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2487 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2488 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2489 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2491 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2493 VCMA9_config : unconfig
2494 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2496 #========================================================================
2497 # ARM supplied Versatile development boards
2498 #========================================================================
2500 versatileab_config \
2501 versatilepb_config : unconfig
2502 @board/versatile/split_by_variant.sh $@
2504 voiceblue_config: unconfig
2505 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2507 cm4008_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2510 cm41xx_config : unconfig
2511 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2513 #########################################################################
2515 #########################################################################
2517 B2_config : unconfig
2518 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2520 #########################################################################
2522 #########################################################################
2524 armadillo_config: unconfig
2525 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2527 ep7312_config : unconfig
2528 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2530 impa7_config : unconfig
2531 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2533 modnet50_config : unconfig
2534 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2536 evb4510_config : unconfig
2537 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2539 lpc2292sodimm_config: unconfig
2540 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2542 SMN42_config : unconfig
2543 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2545 #########################################################################
2547 #########################################################################
2549 actux1_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2552 actux2_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2555 actux3_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2558 actux4_config : unconfig
2559 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2561 adsvix_config : unconfig
2562 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2564 cerf250_config : unconfig
2565 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2567 cradle_config : unconfig
2568 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2570 csb226_config : unconfig
2571 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2573 delta_config : unconfig
2574 @$(MKCONFIG) $(@:_config=) arm pxa delta
2576 innokom_config : unconfig
2577 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2579 ixdp425_config : unconfig
2580 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2582 ixdpg425_config : unconfig
2583 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2585 lubbock_config : unconfig
2586 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2588 pleb2_config : unconfig
2589 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2591 logodl_config : unconfig
2592 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2595 scpu_config: unconfig
2596 @mkdir -p $(obj)include
2597 @if [ "$(findstring scpu_,$@)" ] ; then \
2598 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2599 $(XECHO) "... on SCPU board variant" ; \
2601 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2603 pxa255_idp_config: unconfig
2604 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2606 trizepsiv_config : unconfig
2607 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2609 wepep250_config : unconfig
2610 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2612 xaeniax_config : unconfig
2613 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2615 xm250_config : unconfig
2616 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2618 xsengine_config : unconfig
2619 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2622 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2624 #########################################################################
2626 #########################################################################
2627 omap2420h4_config : unconfig
2628 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2630 apollon_config : unconfig
2631 @mkdir -p $(obj)include
2632 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2633 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2634 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2636 imx31_litekit_config : unconfig
2637 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2639 imx31_phycore_config : unconfig
2640 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2642 #========================================================================
2644 #========================================================================
2645 #########################################################################
2647 #########################################################################
2648 sc520_cdp_config : unconfig
2649 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2651 sc520_spunk_config : unconfig
2652 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2654 sc520_spunk_rel_config : unconfig
2655 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2657 #========================================================================
2659 #========================================================================
2660 #########################################################################
2662 #########################################################################
2664 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2666 incaip_100MHz_config \
2667 incaip_133MHz_config \
2668 incaip_150MHz_config \
2669 incaip_config: unconfig
2670 @mkdir -p $(obj)include
2671 @[ -z "$(findstring _100MHz,$@)" ] || \
2672 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2673 $(XECHO) "... with 100MHz system clock" ; \
2675 @[ -z "$(findstring _133MHz,$@)" ] || \
2676 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2677 $(XECHO) "... with 133MHz system clock" ; \
2679 @[ -z "$(findstring _150MHz,$@)" ] || \
2680 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2681 $(XECHO) "... with 150MHz system clock" ; \
2683 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2685 tb0229_config: unconfig
2686 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2688 #########################################################################
2690 #########################################################################
2691 dbau1000_config : unconfig
2692 @mkdir -p $(obj)include
2693 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2694 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2696 dbau1100_config : unconfig
2697 @mkdir -p $(obj)include
2698 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2699 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2701 dbau1500_config : unconfig
2702 @mkdir -p $(obj)include
2703 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2704 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2706 dbau1550_config : unconfig
2707 @mkdir -p $(obj)include
2708 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2709 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2711 dbau1550_el_config : unconfig
2712 @mkdir -p $(obj)include
2713 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2714 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2716 pb1000_config : unconfig
2717 @mkdir -p $(obj)include
2718 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2719 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2721 gth2_config: unconfig
2722 @mkdir -p $(obj)include
2723 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2724 @$(MKCONFIG) -a gth2 mips mips gth2
2726 qemu_mips_config: unconfig
2727 @mkdir -p $(obj)include
2728 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2729 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2731 #########################################################################
2733 #########################################################################
2735 purple_config : unconfig
2736 @$(MKCONFIG) $(@:_config=) mips mips purple
2738 #========================================================================
2740 #========================================================================
2741 #########################################################################
2743 #########################################################################
2745 DK1C20_safe_32_config \
2746 DK1C20_standard_32_config \
2747 DK1C20_config: unconfig
2748 @mkdir -p $(obj)include
2749 @[ -z "$(findstring _safe_32,$@)" ] || \
2750 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2751 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2753 @[ -z "$(findstring _standard_32,$@)" ] || \
2754 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2755 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2757 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2758 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2759 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2761 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2763 DK1S10_safe_32_config \
2764 DK1S10_standard_32_config \
2765 DK1S10_mtx_ldk_20_config \
2766 DK1S10_config: unconfig
2767 @mkdir -p $(obj)include
2768 @[ -z "$(findstring _safe_32,$@)" ] || \
2769 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2770 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2772 @[ -z "$(findstring _standard_32,$@)" ] || \
2773 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2774 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2776 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2777 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2778 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2780 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2781 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2782 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2784 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2786 ADNPESC1_DNPEVA2_base_32_config \
2787 ADNPESC1_base_32_config \
2788 ADNPESC1_config: unconfig
2789 @mkdir -p $(obj)include
2790 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2791 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2792 $(XECHO) "... DNP/EVA2 configuration" ; \
2794 @[ -z "$(findstring _base_32,$@)" ] || \
2795 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2796 $(XECHO) "... NIOS 'base_32' configuration" ; \
2798 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2799 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2800 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2802 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2804 #########################################################################
2806 #########################################################################
2808 EP1C20_config : unconfig
2809 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2811 EP1S10_config : unconfig
2812 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2814 EP1S40_config : unconfig
2815 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2817 PK1C20_config : unconfig
2818 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2820 PCI5441_config : unconfig
2821 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2823 #========================================================================
2825 #========================================================================
2826 #########################################################################
2828 #########################################################################
2829 suzaku_config: unconfig
2830 @mkdir -p $(obj)include
2831 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2832 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2834 ml401_config: unconfig
2835 @mkdir -p $(obj)include
2836 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2837 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2839 xupv2p_config: unconfig
2840 @mkdir -p $(obj)include
2841 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2842 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2844 #========================================================================
2846 #========================================================================
2848 # Analog Devices boards
2849 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2851 $(BFIN_BOARDS:%=%_config) : unconfig
2852 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2858 #========================================================================
2860 #========================================================================
2861 #########################################################################
2863 #########################################################################
2865 atstk1002_config : unconfig
2866 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2868 atstk1003_config : unconfig
2869 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2871 atstk1004_config : unconfig
2872 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2874 atngw100_config : unconfig
2875 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2877 #########################################################################
2878 #########################################################################
2879 #########################################################################
2881 #########################################################################
2882 ## sh3 (Renesas SuperH)
2883 #########################################################################
2884 mpr2_config: unconfig
2886 @echo "#define CONFIG_MPR2 1" >> include/config.h
2887 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2889 ms7720se_config: unconfig
2890 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2891 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2893 #########################################################################
2894 ## sh4 (Renesas SuperH)
2895 #########################################################################
2896 ms7750se_config: unconfig
2897 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2898 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2900 ms7722se_config : unconfig
2901 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2902 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2904 MigoR_config : unconfig
2906 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2907 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2909 r7780mp_config: unconfig
2911 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2912 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2914 r2dplus_config : unconfig
2916 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2917 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2919 #========================================================================
2921 #========================================================================
2922 #########################################################################
2924 #########################################################################
2926 # Gaisler GR-XC3S-1500 board
2927 gr_xc3s_1500_config : unconfig
2928 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
2930 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
2931 gr_cpci_ax2000_config : unconfig
2932 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
2934 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
2935 # Development board Stratix II edition, FPGA Device EP2S60.
2936 gr_ep2s60_config: unconfig
2937 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
2939 # Gaisler LEON3 GRSIM simulator
2940 grsim_config : unconfig
2941 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2943 #########################################################################
2945 #########################################################################
2947 # Gaisler LEON2 GRSIM simulator
2948 grsim_leon2_config : unconfig
2949 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2951 #########################################################################
2952 #########################################################################
2953 #########################################################################
2956 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2957 $(obj)examples/hello_world $(obj)examples/interrupt \
2958 $(obj)examples/mem_to_mem_idma2intr \
2959 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2960 $(obj)examples/test_burst $(obj)examples/timer
2961 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2962 $(obj)tools/env/{fw_printenv,fw_setenv} \
2963 $(obj)tools/envcrc \
2964 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2965 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2966 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2967 $(obj)tools/ncb $(obj)tools/ubsha1
2968 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2969 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2970 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2971 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2972 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2973 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2974 @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
2975 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2976 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2977 @find $(OBJTREE) -type f \
2978 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2979 -o -name '*.o' -o -name '*.a' \) -print \
2983 @find $(OBJTREE) -type f \( -name .depend \
2984 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2987 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2988 $(obj)cscope.* $(obj)*.*~
2989 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2990 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2991 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
2992 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
2993 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2994 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2995 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2996 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2997 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2999 ifeq ($(OBJTREE),$(SRCTREE))
3001 distclean: clobber unconfig
3004 distclean: clobber unconfig
3009 F=`basename $(TOPDIR)` ; cd .. ; \
3010 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3012 #########################################################################