2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
56 #########################################################################
58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported:
61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all'
64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory.
79 ifeq ("$(origin O)", "command line")
85 saved-output := $(BUILD_DIR)
87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),)
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
104 ifneq ($(OBJTREE),$(SRCTREE))
109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE))
121 # Make sure CDPATH settings don't interfere
124 #########################################################################
126 ifeq ($(ARCH),powerpc)
130 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
132 # load ARCH, BOARD, and CPU configuration
133 include $(obj)include/config.mk
134 export ARCH CPU BOARD VENDOR SOC
137 ifeq ($(HOSTARCH),$(ARCH))
141 CROSS_COMPILE = ppc_8xx-
144 CROSS_COMPILE = arm-linux-
147 CROSS_COMPILE = i386-linux-
150 CROSS_COMPILE = mips_4KC-
153 CROSS_COMPILE = nios-elf-
156 CROSS_COMPILE = nios2-elf-
159 CROSS_COMPILE = m68k-elf-
161 ifeq ($(ARCH),microblaze)
164 ifeq ($(ARCH),blackfin)
165 CROSS_COMPILE = bfin-uclinux-
168 CROSS_COMPILE = avr32-linux-
171 CROSS_COMPILE = sh4-linux-
174 CROSS_COMPILE = sparc-elf-
176 endif # HOSTARCH,ARCH
177 endif # CROSS_COMPILE
181 # load other configuration
182 include $(TOPDIR)/config.mk
184 #########################################################################
185 # U-Boot objects....order is important (i.e. start must be first)
187 OBJS = cpu/$(CPU)/start.o
189 OBJS += cpu/$(CPU)/start16.o
190 OBJS += cpu/$(CPU)/reset.o
193 OBJS += cpu/$(CPU)/resetvec.o
195 ifeq ($(CPU),mpc85xx)
196 OBJS += cpu/$(CPU)/resetvec.o
199 OBJS := $(addprefix $(obj),$(OBJS))
201 LIBS = lib_generic/libgeneric.a
202 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
203 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
204 LIBS += cpu/$(CPU)/lib$(CPU).a
206 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
209 LIBS += cpu/ixp/npe/libnpe.a
211 LIBS += lib_$(ARCH)/lib$(ARCH).a
212 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
213 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
215 LIBS += disk/libdisk.a
216 LIBS += drivers/bios_emulator/libatibiosemu.a
217 LIBS += drivers/block/libblock.a
218 LIBS += drivers/dma/libdma.a
219 LIBS += drivers/hwmon/libhwmon.a
220 LIBS += drivers/i2c/libi2c.a
221 LIBS += drivers/input/libinput.a
222 LIBS += drivers/misc/libmisc.a
223 LIBS += drivers/mtd/libmtd.a
224 LIBS += drivers/mtd/nand/libnand.a
225 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
226 LIBS += drivers/mtd/onenand/libonenand.a
227 LIBS += drivers/net/libnet.a
228 LIBS += drivers/net/sk98lin/libsk98lin.a
229 LIBS += drivers/pci/libpci.a
230 LIBS += drivers/pcmcia/libpcmcia.a
231 LIBS += drivers/spi/libspi.a
232 ifeq ($(CPU),mpc83xx)
233 LIBS += drivers/qe/qe.a
235 ifeq ($(CPU),mpc85xx)
236 LIBS += drivers/qe/qe.a
238 LIBS += drivers/rtc/librtc.a
239 LIBS += drivers/serial/libserial.a
240 LIBS += drivers/usb/libusb.a
241 LIBS += drivers/video/libvideo.a
242 LIBS += common/libcommon.a
243 LIBS += libfdt/libfdt.a
245 LIBS += post/libpost.a
247 LIBS := $(addprefix $(obj),$(LIBS))
248 .PHONY : $(LIBS) $(VERSION_FILE)
250 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
251 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
254 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
256 # The "tools" are needed early, so put this first
257 # Don't include stuff already done in $(LIBS)
264 ifeq ($(CONFIG_NAND_U_BOOT),y)
266 U_BOOT_NAND = $(obj)u-boot-nand.bin
269 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
270 ONENAND_IPL = onenand_ipl
271 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
274 __OBJS := $(subst $(obj),,$(OBJS))
275 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
277 #########################################################################
278 #########################################################################
280 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
281 ifeq ($(ARCH),blackfin)
282 ALL += $(obj)u-boot.ldr
287 $(obj)u-boot.hex: $(obj)u-boot
288 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
290 $(obj)u-boot.srec: $(obj)u-boot
291 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
293 $(obj)u-boot.bin: $(obj)u-boot
294 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
296 $(obj)u-boot.ldr: $(obj)u-boot
297 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
299 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
300 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
302 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
303 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
305 $(obj)u-boot.img: $(obj)u-boot.bin
306 ./tools/mkimage -A $(ARCH) -T firmware -C none \
307 -a $(TEXT_BASE) -e 0 \
308 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
309 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
312 $(obj)u-boot.sha1: $(obj)u-boot.bin
313 $(obj)tools/ubsha1 $(obj)u-boot.bin
315 $(obj)u-boot.dis: $(obj)u-boot
316 $(OBJDUMP) -d $< > $@
318 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
319 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
320 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
321 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
322 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
323 -Map u-boot.map -o u-boot
325 $(OBJS): depend $(obj)include/autoconf.mk
326 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
328 $(LIBS): depend $(obj)include/autoconf.mk
329 $(MAKE) -C $(dir $(subst $(obj),,$@))
331 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
332 $(MAKE) -C $(dir $(subst $(obj),,$@))
334 $(SUBDIRS): depend $(obj)include/autoconf.mk
337 $(LDSCRIPT): depend $(obj)include/autoconf.mk
338 $(MAKE) -C $(dir $@) $(notdir $@)
340 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
341 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
343 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
344 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
346 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
347 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
349 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
350 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
351 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
352 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
355 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
356 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
358 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
361 $(MAKE) -C tools/gdb all || exit 1
364 $(MAKE) -C tools/updater all || exit 1
367 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
369 depend dep: $(VERSION_FILE)
370 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
372 TAG_SUBDIRS += include
373 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
374 TAG_SUBDIRS += cpu/$(CPU)
375 TAG_SUBDIRS += lib_$(ARCH)
376 TAG_SUBDIRS += fs/cramfs
377 TAG_SUBDIRS += fs/fat
378 TAG_SUBDIRS += fs/fdos
379 TAG_SUBDIRS += fs/jffs2
382 TAG_SUBDIRS += common
383 TAG_SUBDIRS += drivers/bios_emulator
384 TAG_SUBDIRS += drivers/block
385 TAG_SUBDIRS += drivers/hwmon
386 TAG_SUBDIRS += drivers/i2c
387 TAG_SUBDIRS += drivers/input
388 TAG_SUBDIRS += drivers/misc
389 TAG_SUBDIRS += drivers/mtd
390 TAG_SUBDIRS += drivers/mtd/nand
391 TAG_SUBDIRS += drivers/mtd/nand_legacy
392 TAG_SUBDIRS += drivers/mtd/onenand
393 TAG_SUBDIRS += drivers/net
394 TAG_SUBDIRS += drivers/net/sk98lin
395 TAG_SUBDIRS += drivers/pci
396 TAG_SUBDIRS += drivers/pcmcia
397 TAG_SUBDIRS += drivers/qe
398 TAG_SUBDIRS += drivers/rtc
399 TAG_SUBDIRS += drivers/serial
400 TAG_SUBDIRS += drivers/spi
401 TAG_SUBDIRS += drivers/usb
402 TAG_SUBDIRS += drivers/video
405 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
406 -name '*.[ch]' -print`
409 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
410 -name '*.[ch]' -print`
412 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
416 $(obj)System.map: $(obj)u-boot
418 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
419 sort > $(obj)System.map
422 # Auto-generate the autoconf.mk file (which is included by all makefiles)
424 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
425 # the dep file is only include in this top level makefile to determine when
426 # to regenerate the autoconf.mk file.
427 $(obj)include/autoconf.mk: $(obj)include/config.h
428 @$(XECHO) Generating include/autoconf.mk ; \
430 : Generate the dependancies ; \
431 $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
432 : Extract the config macros ; \
433 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
435 sinclude $(obj)include/autoconf.mk.dep
437 #########################################################################
439 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
440 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
441 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
442 dep tags ctags etags cscope $(obj)System.map:
443 @echo "System not configured - see README" >&2
449 git log --no-merges U-Boot-1_1_5.. | \
450 unexpand -a | sed -e 's/\s\s*$$//' > $@
452 #########################################################################
455 @rm -f $(obj)include/config.h $(obj)include/config.mk \
456 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
457 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
459 #========================================================================
461 #========================================================================
463 #########################################################################
465 #########################################################################
467 canmb_config: unconfig
468 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
470 cmi_mpc5xx_config: unconfig
471 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
473 PATI_config: unconfig
474 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
476 #########################################################################
478 #########################################################################
481 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
483 BC3450_config: unconfig
484 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
486 cpci5200_config: unconfig
487 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
489 hmi1001_config: unconfig
490 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
493 Lite5200_LOWBOOT_config \
494 Lite5200_LOWBOOT08_config \
495 icecube_5200_config \
496 icecube_5200_LOWBOOT_config \
497 icecube_5200_LOWBOOT08_config \
498 icecube_5200_DDR_config \
499 icecube_5200_DDR_LOWBOOT_config \
500 icecube_5200_DDR_LOWBOOT08_config \
501 icecube_5100_config: unconfig
502 @mkdir -p $(obj)include
503 @mkdir -p $(obj)board/icecube
504 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
505 { if [ "$(findstring DDR,$@)" ] ; \
506 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
507 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
509 $(XECHO) "... with LOWBOOT configuration" ; \
511 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
512 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
513 echo "... with 8 MB flash only" ; \
514 $(XECHO) "... with LOWBOOT configuration" ; \
516 @[ -z "$(findstring DDR,$@)" ] || \
517 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
518 $(XECHO) "... DDR memory revision" ; \
520 @[ -z "$(findstring 5200,$@)" ] || \
521 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
522 $(XECHO) "... with MPC5200 processor" ; \
524 @[ -z "$(findstring 5100,$@)" ] || \
525 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
526 $(XECHO) "... with MGT5100 processor" ; \
528 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
530 jupiter_config: unconfig
531 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
533 v38b_config: unconfig
534 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
536 inka4x0_config: unconfig
537 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
540 lite5200b_PM_config \
541 lite5200b_LOWBOOT_config: unconfig
542 @mkdir -p $(obj)include
543 @mkdir -p $(obj)board/icecube
544 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
545 @ $(XECHO) "... DDR memory revision"
546 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
547 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
548 @[ -z "$(findstring _PM_,$@)" ] || \
549 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
550 $(XECHO) "... with power management (low-power mode) support" ; \
552 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
553 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
554 $(XECHO) "... with LOWBOOT configuration" ; \
556 @ $(XECHO) "... with MPC5200B processor"
557 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
560 mcc200_SDRAM_config \
561 mcc200_highboot_config \
562 mcc200_COM12_config \
563 mcc200_COM12_SDRAM_config \
564 mcc200_COM12_highboot_config \
565 mcc200_COM12_highboot_SDRAM_config \
566 mcc200_highboot_SDRAM_config \
569 prs200_highboot_config \
570 prs200_highboot_DDR_config: unconfig
571 @mkdir -p $(obj)include
572 @mkdir -p $(obj)board/mcc200
573 @[ -n "$(findstring highboot,$@)" ] || \
574 { $(XECHO) "... with lowboot configuration" ; \
576 @[ -z "$(findstring highboot,$@)" ] || \
577 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
578 $(XECHO) "... with highboot configuration" ; \
580 @[ -n "$(findstring _SDRAM,$@)" ] || \
581 { if [ -n "$(findstring mcc200,$@)" ]; \
583 $(XECHO) "... with DDR" ; \
585 if [ -n "$(findstring _DDR,$@)" ];\
587 $(XECHO) "... with DDR" ; \
589 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
590 $(XECHO) "... with SDRAM" ; \
594 @[ -z "$(findstring _SDRAM,$@)" ] || \
595 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
596 $(XECHO) "... with SDRAM" ; \
598 @[ -z "$(findstring COM12,$@)" ] || \
599 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
600 $(XECHO) "... with console on COM12" ; \
602 @[ -z "$(findstring prs200,$@)" ] || \
603 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
605 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
607 mecp5200_config: unconfig
608 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
610 munices_config: unconfig
611 @$(MKCONFIG) munices ppc mpc5xxx munices
613 o2dnt_config: unconfig
614 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
616 pf5200_config: unconfig
617 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
621 PM520_ROMBOOT_config \
622 PM520_ROMBOOT_DDR_config: unconfig
623 @mkdir -p $(obj)include
624 @[ -z "$(findstring DDR,$@)" ] || \
625 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
626 $(XECHO) "... DDR memory revision" ; \
628 @[ -z "$(findstring ROMBOOT,$@)" ] || \
629 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
630 $(XECHO) "... booting from 8-bit flash" ; \
632 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
634 smmaco4_config: unconfig
635 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
637 cm5200_config: unconfig
638 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
640 spieval_config: unconfig
641 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
644 TB5200_config: unconfig
645 @mkdir -p $(obj)include
646 @[ -z "$(findstring _B,$@)" ] || \
647 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
648 $(XECHO) "... with MPC5200B processor" ; \
650 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
654 TOP5200_config: unconfig
655 @mkdir -p $(obj)include
656 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
657 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
661 Total5200_lowboot_config \
662 Total5200_Rev2_config \
663 Total5200_Rev2_lowboot_config: unconfig
664 @mkdir -p $(obj)include
665 @mkdir -p $(obj)board/total5200
666 @[ -z "$(findstring 5100,$@)" ] || \
667 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
668 $(XECHO) "... with MGT5100 processor" ; \
670 @[ -z "$(findstring 5200,$@)" ] || \
671 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
672 $(XECHO) "... with MPC5200 processor" ; \
674 @[ -n "$(findstring Rev,$@)" ] || \
675 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
676 $(XECHO) "... revision 1 board" ; \
678 @[ -z "$(findstring Rev2_,$@)" ] || \
679 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
680 $(XECHO) "... revision 2 board" ; \
682 @[ -z "$(findstring lowboot_,$@)" ] || \
683 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
684 $(XECHO) "... with lowboot configuration" ; \
686 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
689 cam5200_niosflash_config \
693 TQM5200S_HIGHBOOT_config \
695 TQM5200_B_HIGHBOOT_config \
697 TQM5200_STK100_config: unconfig
698 @mkdir -p $(obj)include
699 @mkdir -p $(obj)board/tqm5200
700 @[ -z "$(findstring cam5200,$@)" ] || \
701 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
702 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
703 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
704 $(XECHO) "... TQM5200S on Cam5200" ; \
706 @[ -z "$(findstring niosflash,$@)" ] || \
707 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
708 $(XECHO) "... with NIOS flash driver" ; \
710 @[ -z "$(findstring fo300,$@)" ] || \
711 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
712 $(XECHO) "... TQM5200 on FO300" ; \
714 @[ -z "$(findstring MiniFAP,$@)" ] || \
715 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
716 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
718 @[ -z "$(findstring STK100,$@)" ] || \
719 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
720 $(XECHO) "... on a STK52XX.100 base board" ; \
722 @[ -z "$(findstring TQM5200_B,$@)" ] || \
723 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
725 @[ -z "$(findstring TQM5200S,$@)" ] || \
726 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
727 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
729 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
730 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
732 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
733 uc101_config: unconfig
734 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
735 motionpro_config: unconfig
736 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
739 #########################################################################
741 #########################################################################
745 @mkdir -p $(obj)include
746 @if [ "$(findstring _PCI_,$@)" ] ; then \
747 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
748 $(XECHO) "... with PCI enabled" ; \
750 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
753 #########################################################################
755 #########################################################################
761 @mkdir -p $(obj)include
762 $(if $(findstring AdderII,$@), \
763 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
764 @$(MKCONFIG) -a Adder ppc mpc8xx adder
766 AdderUSB_config: unconfig
767 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
774 FADS860T_config: unconfig
775 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
777 AMX860_config : unconfig
778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
780 c2mon_config: unconfig
781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
786 cogent_mpc8xx_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
789 ELPT860_config: unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
792 EP88x_config: unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
795 ESTEEM192E_config: unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
798 ETX094_config : unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
801 FLAGADM_config: unconfig
802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
804 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
807 GEN860T_config: unconfig
808 @mkdir -p $(obj)include
809 @[ -z "$(findstring _SC,$@)" ] || \
810 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
811 $(XECHO) "With reduced H/W feature set (SC)..." ; \
813 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
815 GENIETV_config: unconfig
816 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
819 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
821 hermes_config : unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
824 HMI10_config : unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
827 IAD210_config: unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
830 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
832 ICU862_100MHz_config \
833 ICU862_config: unconfig
834 @mkdir -p $(obj)include
835 @[ -z "$(findstring _100MHz,$@)" ] || \
836 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
837 $(XECHO) "... with 100MHz system clock" ; \
839 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
841 IP860_config : unconfig
842 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
846 IVML24_config: unconfig
847 @mkdir -p $(obj)include
848 @[ -z "$(findstring IVML24_config,$@)" ] || \
849 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
851 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
852 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
854 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
855 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
857 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
861 IVMS8_config: unconfig
862 @mkdir -p $(obj)include
863 @[ -z "$(findstring IVMS8_config,$@)" ] || \
864 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
867 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
869 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
870 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
872 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
874 KUP4K_config : unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
877 KUP4X_config : unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
880 LANTEC_config : unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
883 lwmon_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
887 MBX860T_config: unconfig
888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
890 mgsuvd_config: unconfig
891 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
893 MHPC_config: unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
896 MVS1_config : unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
899 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
902 NETVIA_config: unconfig
903 @mkdir -p $(obj)include
904 @[ -z "$(findstring NETVIA_config,$@)" ] || \
905 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
906 $(XECHO) "... Version 1" ; \
908 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
909 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
910 $(XECHO) "... Version 2" ; \
912 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
914 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
917 NETPHONE_config: unconfig
918 @mkdir -p $(obj)include
919 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
920 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
922 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
923 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
925 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
927 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
929 NETTA_ISDN_6412_SWAPHOOK_config \
930 NETTA_ISDN_SWAPHOOK_config \
931 NETTA_6412_SWAPHOOK_config \
932 NETTA_SWAPHOOK_config \
933 NETTA_ISDN_6412_config \
936 NETTA_config: unconfig
937 @mkdir -p $(obj)include
938 @[ -z "$(findstring ISDN_,$@)" ] || \
939 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
941 @[ -n "$(findstring ISDN_,$@)" ] || \
942 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
944 @[ -z "$(findstring 6412_,$@)" ] || \
945 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
947 @[ -n "$(findstring 6412_,$@)" ] || \
948 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
950 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
951 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
953 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
954 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
956 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
958 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
961 NETTA2_config: unconfig
962 @mkdir -p $(obj)include
963 @[ -z "$(findstring NETTA2_config,$@)" ] || \
964 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
966 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
967 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
969 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
973 CP850_config: unconfig
974 @mkdir -p $(obj)include
975 @[ -z "$(findstring CP850,$@)" ] || \
976 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
977 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
979 @[ -z "$(findstring Rev1,$@)" ] || \
980 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
982 @[ -z "$(findstring Rev2,$@)" ] || \
983 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
985 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
987 NX823_config: unconfig
988 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
990 pcu_e_config: unconfig
991 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
993 QS850_config: unconfig
994 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
996 QS823_config: unconfig
997 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
999 QS860T_config: unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1002 quantum_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1005 R360MPI_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1008 RBC823_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1011 RPXClassic_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1014 RPXlite_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1017 RPXlite_DW_64_config \
1018 RPXlite_DW_LCD_config \
1019 RPXlite_DW_64_LCD_config \
1020 RPXlite_DW_NVRAM_config \
1021 RPXlite_DW_NVRAM_64_config \
1022 RPXlite_DW_NVRAM_LCD_config \
1023 RPXlite_DW_NVRAM_64_LCD_config \
1024 RPXlite_DW_config: unconfig
1025 @mkdir -p $(obj)include
1026 @[ -z "$(findstring _64,$@)" ] || \
1027 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1028 $(XECHO) "... with 64MHz system clock ..."; \
1030 @[ -z "$(findstring _LCD,$@)" ] || \
1031 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1032 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1033 $(XECHO) "... with LCD display ..."; \
1035 @[ -z "$(findstring _NVRAM,$@)" ] || \
1036 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1037 $(XECHO) "... with ENV in NVRAM ..."; \
1039 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1041 rmu_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1044 RRvision_config: unconfig
1045 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1047 RRvision_LCD_config: unconfig
1048 @mkdir -p $(obj)include
1049 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1050 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1051 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1053 SM850_config : unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1056 spc1920_config: unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1059 SPD823TS_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1062 stxxtc_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1065 svm_sc8xx_config: unconfig
1066 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1068 SXNI855T_config: unconfig
1069 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1071 # EMK MPC8xx based modules
1072 TOP860_config: unconfig
1073 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1075 # Play some tricks for configuration selection
1076 # Only 855 and 860 boards may come with FEC
1077 # and only 823 boards may have LCD support
1078 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1084 TQM823L_LCD_config \
1097 virtlab2_config: unconfig
1098 @mkdir -p $(obj)include
1099 @[ -z "$(findstring _LCD,$@)" ] || \
1100 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1101 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1102 $(XECHO) "... with LCD display" ; \
1104 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1106 TTTech_config: unconfig
1107 @mkdir -p $(obj)include
1108 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1109 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1110 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1112 uc100_config : unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1115 v37_config: unconfig
1116 @mkdir -p $(obj)include
1117 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1118 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1119 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1121 wtk_config: unconfig
1122 @mkdir -p $(obj)include
1123 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1124 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1125 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1127 #########################################################################
1129 #########################################################################
1130 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1132 acadia_config: unconfig
1133 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1135 acadia_nand_config: unconfig
1136 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1137 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1138 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1139 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1140 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1141 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1143 ADCIOP_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1146 alpr_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1149 AP1000_config:unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1152 APC405_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1155 AR405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1158 ASH405_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1161 bamboo_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1164 bamboo_nand_config: unconfig
1165 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1166 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1167 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1168 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1169 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1170 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1172 bubinga_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1175 CANBT_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1178 # Canyonlands & Glacier use different U-Boot images
1179 canyonlands_config \
1180 glacier_config: unconfig
1181 @mkdir -p $(obj)include
1182 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1183 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1184 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1186 canyonlands_nand_config \
1187 glacier_nand_config: unconfig
1188 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1189 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1190 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1191 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1192 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1193 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1194 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1195 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1198 CATcenter_25_config \
1199 CATcenter_33_config: unconfig
1200 @mkdir -p $(obj)include
1201 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1202 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1203 @[ -z "$(findstring _25,$@)" ] || \
1204 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1205 $(XECHO) "SysClk = 25MHz" ; \
1207 @[ -z "$(findstring _33,$@)" ] || \
1208 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1209 $(XECHO) "SysClk = 33MHz" ; \
1211 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1213 CPCI2DP_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1219 CPCI405AB_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1221 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1223 CPCIISER4_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1226 CRAYL1_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1229 csb272_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1232 csb472_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1235 DASA_SIM_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1238 DP405_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1241 DU405_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1244 DU440_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1247 ebony_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1250 ERIC_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1253 EXBITGEN_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1256 G2000_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1259 hcu4_config: unconfig
1260 @mkdir -p $(obj)board/netstal/common
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1263 hcu5_config: unconfig
1264 @mkdir -p $(obj)board/netstal/common
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1267 HH405_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1270 HUB405_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1273 JSE_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1276 KAREF_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1279 katmai_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1282 # Kilauea & Haleakala images are identical (recognized via PVR)
1284 haleakala_config: unconfig
1285 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1287 kilauea_nand_config \
1288 haleakala_nand_config: unconfig
1289 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1290 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1291 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1292 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1293 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1294 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1296 korat_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1299 luan_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1302 lwmon5_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1305 makalu_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1308 mcu25_config: unconfig
1309 @mkdir -p $(obj)board/netstal/common
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1312 METROBOX_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1315 MIP405_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1318 MIP405T_config: unconfig
1319 @mkdir -p $(obj)include
1320 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1321 @$(XECHO) "Enable subset config for MIP405T"
1322 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1324 ML2_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1327 ml300_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1330 ocotea_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1334 ORSG_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1337 p3p440_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1340 PCI405_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1343 pcs440ep_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1346 PIP405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1349 PLU405_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1352 PMC405_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1355 PMC440_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1358 PPChameleonEVB_config \
1359 PPChameleonEVB_BA_25_config \
1360 PPChameleonEVB_ME_25_config \
1361 PPChameleonEVB_HI_25_config \
1362 PPChameleonEVB_BA_33_config \
1363 PPChameleonEVB_ME_33_config \
1364 PPChameleonEVB_HI_33_config: unconfig
1365 @mkdir -p $(obj)include
1366 @[ -z "$(findstring EVB_BA,$@)" ] || \
1367 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1368 $(XECHO) "... BASIC model" ; \
1370 @[ -z "$(findstring EVB_ME,$@)" ] || \
1371 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1372 $(XECHO) "... MEDIUM model" ; \
1374 @[ -z "$(findstring EVB_HI,$@)" ] || \
1375 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1376 $(XECHO) "... HIGH-END model" ; \
1378 @[ -z "$(findstring _25,$@)" ] || \
1379 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1380 $(XECHO) "SysClk = 25MHz" ; \
1382 @[ -z "$(findstring _33,$@)" ] || \
1383 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1384 $(XECHO) "SysClk = 33MHz" ; \
1386 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1388 sbc405_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1392 rainier_config: unconfig
1393 @mkdir -p $(obj)include
1394 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1395 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1396 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1398 sequoia_nand_config \
1399 rainier_nand_config: unconfig
1400 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1401 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1402 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1403 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1404 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1405 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1406 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1407 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1410 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1412 taihu_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1415 taishan_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1418 VOH405_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1421 VOM405_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1424 CMS700_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1428 W7OLMG_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1431 # Walnut & Sycamore images are identical (recognized via PVR)
1433 sycamore_config: unconfig
1434 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1436 WUH405_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1439 XPEDITE1K_config: unconfig
1440 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1443 yellowstone_config: unconfig
1444 @mkdir -p $(obj)include
1445 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1446 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1447 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1449 yucca_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1452 zeus_config: unconfig
1453 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1455 #########################################################################
1457 #########################################################################
1460 Yukon8220_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1463 sorcery_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1466 #########################################################################
1468 #########################################################################
1469 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1471 A3000_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1474 barco_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1477 BMW_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1481 CPC45_ROMBOOT_config: unconfig
1482 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1483 @cd $(obj)include ; \
1484 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1485 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1486 $(XECHO) "... booting from 8-bit flash" ; \
1488 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1489 $(XECHO) "... booting from 64-bit flash" ; \
1491 echo "export CONFIG_BOOT_ROM" >> config.mk;
1493 CU824_config: unconfig
1494 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1496 debris_config: unconfig
1497 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1499 eXalion_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1502 HIDDEN_DRAGON_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1505 kvme080_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1508 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1510 #linkstation_HDLAN_config \
1511 # Remove this line when HDLAN is fixed
1512 linkstation_HGLAN_config: unconfig
1513 @mkdir -p $(obj)include
1515 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1516 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1518 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1520 MOUSSE_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1523 MUSENKI_config: unconfig
1524 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1526 MVBLUE_config: unconfig
1527 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1529 OXC_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1532 PN62_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1535 Sandpoint8240_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1538 Sandpoint8245_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1541 sbc8240_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1544 SL8245_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1547 utx8245_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1550 #########################################################################
1552 #########################################################################
1554 atc_config: unconfig
1555 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1557 cogent_mpc8260_config: unconfig
1558 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1561 CPU86_ROMBOOT_config: unconfig
1562 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1563 @cd $(obj)include ; \
1564 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1565 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1566 $(XECHO) "... booting from 8-bit flash" ; \
1568 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1569 $(XECHO) "... booting from 64-bit flash" ; \
1571 echo "export CONFIG_BOOT_ROM" >> config.mk;
1574 CPU87_ROMBOOT_config: unconfig
1575 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1576 @cd $(obj)include ; \
1577 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1578 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1579 $(XECHO) "... booting from 8-bit flash" ; \
1581 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1582 $(XECHO) "... booting from 64-bit flash" ; \
1584 echo "export CONFIG_BOOT_ROM" >> config.mk;
1587 ep8248E_config : unconfig
1588 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1590 ep8260_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1593 ep82xxm_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1596 gw8260_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1599 hymod_config: unconfig
1600 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1602 IDS8247_config: unconfig
1603 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1605 IPHASE4539_config: unconfig
1606 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1609 ISPAN_REVB_config: unconfig
1610 @mkdir -p $(obj)include
1611 @if [ "$(findstring _REVB_,$@)" ] ; then \
1612 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1614 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1616 mgcoge_config : unconfig
1617 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1620 MPC8260ADS_lowboot_config \
1621 MPC8260ADS_33MHz_config \
1622 MPC8260ADS_33MHz_lowboot_config \
1623 MPC8260ADS_40MHz_config \
1624 MPC8260ADS_40MHz_lowboot_config \
1626 MPC8272ADS_lowboot_config \
1628 PQ2FADS_lowboot_config \
1630 PQ2FADS-VR_lowboot_config \
1632 PQ2FADS-ZU_lowboot_config \
1633 PQ2FADS-ZU_66MHz_config \
1634 PQ2FADS-ZU_66MHz_lowboot_config \
1636 @mkdir -p $(obj)include
1637 @mkdir -p $(obj)board/freescale/mpc8260ads
1638 $(if $(findstring PQ2FADS,$@), \
1639 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1640 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1641 $(if $(findstring MHz,$@), \
1642 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1643 $(if $(findstring VR,$@), \
1644 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1645 @[ -z "$(findstring lowboot_,$@)" ] || \
1646 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1647 $(XECHO) "... with lowboot configuration" ; \
1649 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1651 MPC8266ADS_config: unconfig
1652 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1654 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1656 PM825_ROMBOOT_config \
1657 PM825_BIGFLASH_config \
1658 PM825_ROMBOOT_BIGFLASH_config \
1660 PM826_ROMBOOT_config \
1661 PM826_BIGFLASH_config \
1662 PM826_ROMBOOT_BIGFLASH_config: unconfig
1663 @mkdir -p $(obj)include
1664 @mkdir -p $(obj)board/pm826
1665 @if [ "$(findstring PM825_,$@)" ] ; then \
1666 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1668 >$(obj)include/config.h ; \
1670 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1671 $(XECHO) "... booting from 8-bit flash" ; \
1672 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1673 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1674 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1675 $(XECHO) "... with 32 MB Flash" ; \
1676 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1679 $(XECHO) "... booting from 64-bit flash" ; \
1680 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1681 $(XECHO) "... with 32 MB Flash" ; \
1682 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1683 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1685 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1688 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1692 PM828_ROMBOOT_config \
1693 PM828_ROMBOOT_PCI_config: unconfig
1694 @mkdir -p $(obj)include
1695 @mkdir -p $(obj)board/pm826
1696 @if [ "$(findstring _PCI_,$@)" ] ; then \
1697 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1698 $(XECHO) "... with PCI enabled" ; \
1700 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1701 $(XECHO) "... booting from 8-bit flash" ; \
1702 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1703 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1705 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1707 ppmc8260_config: unconfig
1708 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1710 Rattler8248_config \
1711 Rattler_config: unconfig
1712 @mkdir -p $(obj)include
1713 $(if $(findstring 8248,$@), \
1714 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1715 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1717 RPXsuper_config: unconfig
1718 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1720 rsdproto_config: unconfig
1721 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1723 sacsng_config: unconfig
1724 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1726 sbc8260_config: unconfig
1727 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1729 SCM_config: unconfig
1730 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1742 TQM8265_AA_config: unconfig
1743 @mkdir -p $(obj)include
1745 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1746 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1747 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1748 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1749 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1750 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1751 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1752 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1753 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1754 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1755 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1757 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1758 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1760 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1761 echo "... with $${CFREQ}MHz system clock" ; \
1762 if [ "$${CACHE}" = "yes" ] ; then \
1763 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1764 $(XECHO) "... with L2 Cache support" ; \
1766 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1767 $(XECHO) "... without L2 Cache support" ; \
1769 if [ "$${BMODE}" = "60x" ] ; then \
1770 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1771 $(XECHO) "... with 60x Bus Mode" ; \
1773 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1774 $(XECHO) "... without 60x Bus Mode" ; \
1776 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1778 TQM8272_config: unconfig
1779 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1781 VoVPN-GW_66MHz_config \
1782 VoVPN-GW_100MHz_config: unconfig
1783 @mkdir -p $(obj)include
1784 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1785 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1787 ZPC1900_config: unconfig
1788 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1790 #########################################################################
1792 #########################################################################
1794 M52277EVB_config: unconfig
1795 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1798 M5235EVB_Flash16_config \
1799 M5235EVB_Flash32_config: unconfig
1801 M5235EVB_config) FLASH=16;; \
1802 M5235EVB_Flash16_config) FLASH=16;; \
1803 M5235EVB_Flash32_config) FLASH=32;; \
1805 if [ "$${FLASH}" != "16" ] ; then \
1806 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1807 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1808 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1810 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1811 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1813 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1815 M5249EVB_config : unconfig
1816 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1818 M5253EVBE_config : unconfig
1819 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1821 cobra5272_config : unconfig
1822 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1824 EB+MCF-EV123_config : unconfig
1825 @mkdir -p $(obj)include
1826 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1827 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1828 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1830 EB+MCF-EV123_internal_config : unconfig
1831 @mkdir -p $(obj)include
1832 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1833 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1834 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1836 idmr_config : unconfig
1837 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1839 M5271EVB_config : unconfig
1840 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1842 M5272C3_config : unconfig
1843 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1845 M5275EVB_config : unconfig
1846 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1848 M5282EVB_config : unconfig
1849 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1851 TASREG_config : unconfig
1852 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1855 M5329BFEE_config : unconfig
1857 M5329AFEE_config) NAND=0;; \
1858 M5329BFEE_config) NAND=16;; \
1860 if [ "$${NAND}" != "0" ] ; then \
1861 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1863 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1865 M5373EVB_config : unconfig
1867 M5373EVB_config) NAND=16;; \
1869 if [ "$${NAND}" != "0" ] ; then \
1870 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1872 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1875 M54455EVB_atmel_config \
1876 M54455EVB_intel_config \
1877 M54455EVB_a33_config \
1878 M54455EVB_a66_config \
1879 M54455EVB_i33_config \
1880 M54455EVB_i66_config : unconfig
1882 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1883 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1884 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1885 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1886 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1887 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1888 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1890 if [ "$${FLASH}" = "INTEL" ] ; then \
1891 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1892 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1893 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1894 $(XECHO) "... with INTEL boot..." ; \
1896 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1897 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1898 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1899 $(XECHO) "... with ATMEL boot..." ; \
1901 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1902 $(XECHO) "... with $${FREQ}Hz input clock"
1903 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1911 M5475GFE_config : unconfig
1913 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1914 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1915 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1916 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1917 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1918 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1919 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1921 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1922 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1923 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1924 if [ "$${RAM1}" != "0" ] ; then \
1925 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1927 if [ "$${CODE}" != "0" ] ; then \
1928 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1930 if [ "$${VID}" == "1" ] ; then \
1931 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1933 if [ "$${USB}" == "1" ] ; then \
1934 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1936 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1945 M5485HFE_config : unconfig
1947 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1948 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1949 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1950 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1951 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1952 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1953 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1954 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1956 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1957 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1958 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1959 if [ "$${RAM1}" != "0" ] ; then \
1960 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1962 if [ "$${CODE}" != "0" ] ; then \
1963 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1965 if [ "$${VID}" == "1" ] ; then \
1966 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1968 if [ "$${USB}" == "1" ] ; then \
1969 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1971 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1973 #########################################################################
1975 #########################################################################
1977 MPC8313ERDB_33_config \
1978 MPC8313ERDB_66_config: unconfig
1979 @mkdir -p $(obj)include
1980 @if [ "$(findstring _33_,$@)" ] ; then \
1981 $(XECHO) -n "...33M ..." ; \
1982 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1984 if [ "$(findstring _66_,$@)" ] ; then \
1985 $(XECHO) -n "...66M..." ; \
1986 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1988 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1990 MPC8315ERDB_config: unconfig
1991 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1993 MPC8323ERDB_config: unconfig
1994 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1996 MPC832XEMDS_config \
1997 MPC832XEMDS_HOST_33_config \
1998 MPC832XEMDS_HOST_66_config \
1999 MPC832XEMDS_SLAVE_config \
2000 MPC832XEMDS_ATM_config: unconfig
2001 @mkdir -p $(obj)include
2002 @if [ "$(findstring _HOST_,$@)" ] ; then \
2003 $(XECHO) -n "... PCI HOST " ; \
2004 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2006 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2007 $(XECHO) "...PCI SLAVE 66M" ; \
2008 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2009 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2011 if [ "$(findstring _33_,$@)" ] ; then \
2012 $(XECHO) -n "...33M ..." ; \
2013 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2014 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2016 if [ "$(findstring _66_,$@)" ] ; then \
2017 $(XECHO) -n "...66M..." ; \
2018 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2019 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2021 if [ "$(findstring _ATM_,$@)" ] ; then \
2022 $(XECHO) -n "...ATM..." ; \
2023 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2024 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2026 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2028 MPC8349EMDS_config: unconfig
2029 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2032 MPC8349ITX_LOWBOOT_config \
2033 MPC8349ITXGP_config: unconfig
2034 @mkdir -p $(obj)include
2035 @mkdir -p $(obj)board/freescale/mpc8349itx
2036 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2037 @if [ "$(findstring GP,$@)" ] ; then \
2038 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2040 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2041 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2043 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2045 MPC8360EMDS_config \
2046 MPC8360EMDS_HOST_33_config \
2047 MPC8360EMDS_HOST_66_config \
2048 MPC8360EMDS_SLAVE_config \
2049 MPC8360EMDS_ATM_config: unconfig
2050 @mkdir -p $(obj)include
2051 @if [ "$(findstring _HOST_,$@)" ] ; then \
2052 $(XECHO) -n "... PCI HOST " ; \
2053 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2055 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2056 $(XECHO) "...PCI SLAVE 66M" ; \
2057 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2058 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2060 if [ "$(findstring _33_,$@)" ] ; then \
2061 $(XECHO) -n "...33M ..." ; \
2062 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2063 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2065 if [ "$(findstring _66_,$@)" ] ; then \
2066 $(XECHO) -n "...66M..." ; \
2067 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2068 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2070 if [ "$(findstring _ATM_,$@)" ] ; then \
2071 $(XECHO) -n "...ATM..." ; \
2072 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2073 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2075 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2077 MPC8360ERDK_33_config \
2078 MPC8360ERDK_66_config \
2079 MPC8360ERDK_config: unconfig
2080 @mkdir -p $(obj)include
2081 @if [ "$(findstring _33_,$@)" ] ; then \
2082 $(XECHO) -n "... CLKIN 33MHz " ; \
2083 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2085 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2087 MPC837XEMDS_config \
2088 MPC837XEMDS_HOST_config: unconfig
2089 @mkdir -p $(obj)include
2090 @if [ "$(findstring _HOST_,$@)" ] ; then \
2091 $(XECHO) -n "... PCI HOST " ; \
2092 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2094 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2096 MPC837XERDB_config: unconfig
2097 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2099 sbc8349_config: unconfig
2100 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2102 TQM834x_config: unconfig
2103 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2106 #########################################################################
2108 #########################################################################
2110 ATUM8548_config: unconfig
2111 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2113 MPC8540ADS_config: unconfig
2114 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2116 MPC8540EVAL_config \
2117 MPC8540EVAL_33_config \
2118 MPC8540EVAL_66_config \
2119 MPC8540EVAL_33_slave_config \
2120 MPC8540EVAL_66_slave_config: unconfig
2121 @mkdir -p $(obj)include
2122 @if [ "$(findstring _33_,$@)" ] ; then \
2123 $(XECHO) "... 33 MHz PCI" ; \
2125 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2126 $(XECHO) "... 66 MHz PCI" ; \
2128 if [ "$(findstring _slave_,$@)" ] ; then \
2129 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2130 $(XECHO) " slave" ; \
2132 $(XECHO) " host" ; \
2134 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2136 MPC8560ADS_config: unconfig
2137 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2139 MPC8541CDS_legacy_config \
2140 MPC8541CDS_config: unconfig
2141 @mkdir -p $(obj)include
2142 @if [ "$(findstring _legacy_,$@)" ] ; then \
2143 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2144 $(XECHO) "... legacy" ; \
2146 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2148 MPC8544DS_config: unconfig
2149 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2151 MPC8548CDS_legacy_config \
2152 MPC8548CDS_config: unconfig
2153 @mkdir -p $(obj)include
2154 @if [ "$(findstring _legacy_,$@)" ] ; then \
2155 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2156 $(XECHO) "... legacy" ; \
2158 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2160 MPC8555CDS_legacy_config \
2161 MPC8555CDS_config: unconfig
2162 @mkdir -p $(obj)include
2163 @if [ "$(findstring _legacy_,$@)" ] ; then \
2164 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2165 $(XECHO) "... legacy" ; \
2167 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2169 MPC8568MDS_config: unconfig
2170 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2172 PM854_config: unconfig
2173 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2175 PM856_config: unconfig
2176 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2180 sbc8540_66_config: unconfig
2181 @mkdir -p $(obj)include
2182 @if [ "$(findstring _66_,$@)" ] ; then \
2183 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2184 $(XECHO) "... 66 MHz PCI" ; \
2186 $(XECHO) "... 33 MHz PCI" ; \
2188 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2190 sbc8548_config: unconfig
2191 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2195 sbc8560_66_config: unconfig
2196 @mkdir -p $(obj)include
2197 @if [ "$(findstring _66_,$@)" ] ; then \
2198 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2199 $(XECHO) "... 66 MHz PCI" ; \
2201 $(XECHO) "... 33 MHz PCI" ; \
2203 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2205 stxgp3_config: unconfig
2206 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2209 stxssa_4M_config: unconfig
2210 @mkdir -p $(obj)include
2211 @if [ "$(findstring _4M_,$@)" ] ; then \
2212 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2213 $(XECHO) "... with 4 MiB flash memory" ; \
2215 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2220 TQM8560_config: unconfig
2221 @mkdir -p $(obj)include
2222 @CTYPE=$(subst TQM,,$(@:_config=)); \
2223 $(XECHO) "... TQM"$${CTYPE}; \
2224 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2225 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2226 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2227 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2228 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2229 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2231 #########################################################################
2233 #########################################################################
2235 MPC8610HPCD_config: unconfig
2236 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2238 MPC8641HPCN_config: unconfig
2239 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2241 sbc8641d_config: unconfig
2242 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2244 #########################################################################
2246 #########################################################################
2248 AmigaOneG3SE_config: unconfig
2249 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2251 BAB7xx_config: unconfig
2252 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2254 CPCI750_config: unconfig
2255 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2257 DB64360_config: unconfig
2258 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2260 DB64460_config: unconfig
2261 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2263 ELPPC_config: unconfig
2264 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2267 EVB64260_750CX_config: unconfig
2268 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2270 mpc7448hpc2_config: unconfig
2271 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2273 P3G4_config: unconfig
2274 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2277 p3m7448_config: unconfig
2278 @mkdir -p $(obj)include
2279 @if [ "$(findstring 750_,$@)" ] ; then \
2280 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2282 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2284 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2287 PCIPPC6_config: unconfig
2288 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2290 ZUMA_config: unconfig
2291 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2293 ppmc7xx_config: unconfig
2294 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2296 #========================================================================
2298 #========================================================================
2299 #########################################################################
2300 ## StrongARM Systems
2301 #########################################################################
2303 assabet_config : unconfig
2304 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2306 dnp1110_config : unconfig
2307 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2309 gcplus_config : unconfig
2310 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2312 lart_config : unconfig
2313 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2315 shannon_config : unconfig
2316 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2318 #########################################################################
2320 #########################################################################
2322 #########################################################################
2323 ## Atmel AT91RM9200 Systems
2324 #########################################################################
2326 at91rm9200dk_config : unconfig
2327 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2329 cmc_pu2_config : unconfig
2330 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2332 csb637_config : unconfig
2333 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2335 kb9202_config : unconfig
2336 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2338 mp2usb_config : unconfig
2339 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2341 m501sk_config : unconfig
2342 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2344 #########################################################################
2345 ## Atmel ARM926EJ-S Systems
2346 #########################################################################
2348 at91cap9adk_config : unconfig
2349 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2351 at91sam9260ek_config : unconfig
2352 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2354 ########################################################################
2355 ## ARM Integrator boards - see doc/README-integrator for more info.
2356 integratorap_config \
2365 ap946es_config: unconfig
2366 @board/integratorap/split_by_variant.sh $@
2368 integratorcp_config \
2377 cp1026_config: unconfig
2378 @board/integratorcp/split_by_variant.sh $@
2381 lpd7a404_config: unconfig
2382 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2384 mx1ads_config : unconfig
2385 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2387 mx1fs2_config : unconfig
2388 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2390 netstar_config: unconfig
2391 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2393 omap1510inn_config : unconfig
2394 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2396 omap5912osk_config : unconfig
2397 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2399 davinci_dvevm_config : unconfig
2400 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2402 davinci_schmoogie_config : unconfig
2403 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2405 davinci_sonata_config : unconfig
2406 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2408 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2410 omap1610inn_config \
2411 omap1610inn_cs0boot_config \
2412 omap1610inn_cs3boot_config \
2413 omap1610inn_cs_autoboot_config \
2415 omap1610h2_cs0boot_config \
2416 omap1610h2_cs3boot_config \
2417 omap1610h2_cs_autoboot_config: unconfig
2418 @mkdir -p $(obj)include
2419 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2420 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2421 $(XECHO) "... configured for CS0 boot"; \
2422 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2423 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2424 $(XECHO) "... configured for CS_AUTO boot"; \
2426 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2427 $(XECHO) "... configured for CS3 boot"; \
2429 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2431 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2434 omap730p2_cs0boot_config \
2435 omap730p2_cs3boot_config : unconfig
2436 @mkdir -p $(obj)include
2437 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2438 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2439 $(XECHO) "... configured for CS0 boot"; \
2441 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2442 $(XECHO) "... configured for CS3 boot"; \
2444 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2446 sbc2410x_config: unconfig
2447 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2449 scb9328_config : unconfig
2450 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2452 smdk2400_config : unconfig
2453 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2455 smdk2410_config : unconfig
2456 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2458 SX1_config : unconfig
2459 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2461 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2462 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2465 trab_bigram_config \
2466 trab_bigflash_config \
2467 trab_old_config: unconfig
2468 @mkdir -p $(obj)include
2469 @mkdir -p $(obj)board/trab
2470 @[ -z "$(findstring _bigram,$@)" ] || \
2471 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2472 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2473 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2475 @[ -z "$(findstring _bigflash,$@)" ] || \
2476 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2477 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2478 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2479 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2481 @[ -z "$(findstring _old,$@)" ] || \
2482 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2483 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2484 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2485 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2487 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2489 VCMA9_config : unconfig
2490 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2492 #========================================================================
2493 # ARM supplied Versatile development boards
2494 #========================================================================
2496 versatileab_config \
2497 versatilepb_config : unconfig
2498 @board/versatile/split_by_variant.sh $@
2500 voiceblue_config: unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2503 cm4008_config : unconfig
2504 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2506 cm41xx_config : unconfig
2507 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2509 #########################################################################
2511 #########################################################################
2513 B2_config : unconfig
2514 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2516 #########################################################################
2518 #########################################################################
2520 armadillo_config: unconfig
2521 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2523 ep7312_config : unconfig
2524 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2526 impa7_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2529 modnet50_config : unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2532 evb4510_config : unconfig
2533 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2535 lpc2292sodimm_config: unconfig
2536 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2538 SMN42_config : unconfig
2539 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2541 #########################################################################
2543 #########################################################################
2545 actux1_config : unconfig
2546 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2548 actux2_config : unconfig
2549 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2551 actux3_config : unconfig
2552 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2554 actux4_config : unconfig
2555 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2557 adsvix_config : unconfig
2558 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2560 cerf250_config : unconfig
2561 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2563 cradle_config : unconfig
2564 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2566 csb226_config : unconfig
2567 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2569 delta_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm pxa delta
2572 innokom_config : unconfig
2573 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2575 ixdp425_config : unconfig
2576 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2578 ixdpg425_config : unconfig
2579 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2581 lubbock_config : unconfig
2582 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2584 pleb2_config : unconfig
2585 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2587 logodl_config : unconfig
2588 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2591 scpu_config: unconfig
2592 @mkdir -p $(obj)include
2593 @if [ "$(findstring scpu_,$@)" ] ; then \
2594 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2595 $(XECHO) "... on SCPU board variant" ; \
2597 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2599 pxa255_idp_config: unconfig
2600 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2602 trizepsiv_config : unconfig
2603 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2605 wepep250_config : unconfig
2606 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2608 xaeniax_config : unconfig
2609 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2611 xm250_config : unconfig
2612 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2614 xsengine_config : unconfig
2615 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2618 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2620 #########################################################################
2622 #########################################################################
2623 omap2420h4_config : unconfig
2624 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2626 apollon_config : unconfig
2627 @mkdir -p $(obj)include
2628 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2629 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2630 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2632 imx31_litekit_config : unconfig
2633 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2635 imx31_phycore_config : unconfig
2636 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2638 mx31ads_config : unconfig
2639 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2641 #========================================================================
2643 #========================================================================
2644 #########################################################################
2646 #########################################################################
2647 sc520_cdp_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2650 sc520_spunk_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2653 sc520_spunk_rel_config : unconfig
2654 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2656 #========================================================================
2658 #========================================================================
2659 #########################################################################
2661 #########################################################################
2663 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2665 incaip_100MHz_config \
2666 incaip_133MHz_config \
2667 incaip_150MHz_config \
2668 incaip_config: unconfig
2669 @mkdir -p $(obj)include
2670 @[ -z "$(findstring _100MHz,$@)" ] || \
2671 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2672 $(XECHO) "... with 100MHz system clock" ; \
2674 @[ -z "$(findstring _133MHz,$@)" ] || \
2675 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2676 $(XECHO) "... with 133MHz system clock" ; \
2678 @[ -z "$(findstring _150MHz,$@)" ] || \
2679 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2680 $(XECHO) "... with 150MHz system clock" ; \
2682 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2684 tb0229_config: unconfig
2685 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2687 #########################################################################
2689 #########################################################################
2690 dbau1000_config : unconfig
2691 @mkdir -p $(obj)include
2692 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2693 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2695 dbau1100_config : unconfig
2696 @mkdir -p $(obj)include
2697 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2698 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2700 dbau1500_config : unconfig
2701 @mkdir -p $(obj)include
2702 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2703 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2705 dbau1550_config : unconfig
2706 @mkdir -p $(obj)include
2707 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2708 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2710 dbau1550_el_config : unconfig
2711 @mkdir -p $(obj)include
2712 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2713 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2715 pb1000_config : unconfig
2716 @mkdir -p $(obj)include
2717 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2718 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2720 gth2_config: unconfig
2721 @mkdir -p $(obj)include
2722 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2723 @$(MKCONFIG) -a gth2 mips mips gth2
2725 qemu_mips_config: unconfig
2726 @mkdir -p $(obj)include
2727 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2728 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2730 #########################################################################
2732 #########################################################################
2734 purple_config : unconfig
2735 @$(MKCONFIG) $(@:_config=) mips mips purple
2737 #========================================================================
2739 #========================================================================
2740 #########################################################################
2742 #########################################################################
2744 DK1C20_safe_32_config \
2745 DK1C20_standard_32_config \
2746 DK1C20_config: unconfig
2747 @mkdir -p $(obj)include
2748 @[ -z "$(findstring _safe_32,$@)" ] || \
2749 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2750 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2752 @[ -z "$(findstring _standard_32,$@)" ] || \
2753 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2754 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2756 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2757 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2758 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2760 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2762 DK1S10_safe_32_config \
2763 DK1S10_standard_32_config \
2764 DK1S10_mtx_ldk_20_config \
2765 DK1S10_config: unconfig
2766 @mkdir -p $(obj)include
2767 @[ -z "$(findstring _safe_32,$@)" ] || \
2768 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2769 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2771 @[ -z "$(findstring _standard_32,$@)" ] || \
2772 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2773 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2775 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2776 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2777 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2779 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2780 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2781 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2783 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2785 ADNPESC1_DNPEVA2_base_32_config \
2786 ADNPESC1_base_32_config \
2787 ADNPESC1_config: unconfig
2788 @mkdir -p $(obj)include
2789 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2790 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2791 $(XECHO) "... DNP/EVA2 configuration" ; \
2793 @[ -z "$(findstring _base_32,$@)" ] || \
2794 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2795 $(XECHO) "... NIOS 'base_32' configuration" ; \
2797 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2798 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2799 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2801 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2803 #########################################################################
2805 #########################################################################
2807 EP1C20_config : unconfig
2808 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2810 EP1S10_config : unconfig
2811 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2813 EP1S40_config : unconfig
2814 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2816 PK1C20_config : unconfig
2817 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2819 PCI5441_config : unconfig
2820 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2822 #========================================================================
2824 #========================================================================
2825 #########################################################################
2827 #########################################################################
2828 suzaku_config: unconfig
2829 @mkdir -p $(obj)include
2830 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2831 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2833 ml401_config: unconfig
2834 @mkdir -p $(obj)include
2835 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2836 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2838 xupv2p_config: unconfig
2839 @mkdir -p $(obj)include
2840 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2841 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2843 #========================================================================
2845 #========================================================================
2847 # Analog Devices boards
2848 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2850 $(BFIN_BOARDS:%=%_config) : unconfig
2851 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2857 #========================================================================
2859 #========================================================================
2860 #########################################################################
2862 #########################################################################
2864 atstk1002_config : unconfig
2865 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2867 atstk1003_config : unconfig
2868 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2870 atstk1004_config : unconfig
2871 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2873 atngw100_config : unconfig
2874 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2876 #########################################################################
2877 #########################################################################
2878 #########################################################################
2880 #########################################################################
2881 ## sh3 (Renesas SuperH)
2882 #########################################################################
2883 mpr2_config: unconfig
2885 @echo "#define CONFIG_MPR2 1" >> include/config.h
2886 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2888 ms7720se_config: unconfig
2889 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2890 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2892 #########################################################################
2893 ## sh4 (Renesas SuperH)
2894 #########################################################################
2895 ms7750se_config: unconfig
2896 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2897 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2899 ms7722se_config : unconfig
2900 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2901 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2903 MigoR_config : unconfig
2905 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2906 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2908 r7780mp_config: unconfig
2910 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2911 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2913 r2dplus_config : unconfig
2915 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2916 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2918 #========================================================================
2920 #========================================================================
2921 #########################################################################
2923 #########################################################################
2925 # Gaisler GR-XC3S-1500 board
2926 gr_xc3s_1500_config : unconfig
2927 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
2929 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
2930 gr_cpci_ax2000_config : unconfig
2931 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
2933 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
2934 # Development board Stratix II edition, FPGA Device EP2S60.
2935 gr_ep2s60_config: unconfig
2936 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
2938 # Gaisler LEON3 GRSIM simulator
2939 grsim_config : unconfig
2940 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2942 #########################################################################
2944 #########################################################################
2946 # Gaisler LEON2 GRSIM simulator
2947 grsim_leon2_config : unconfig
2948 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2950 #########################################################################
2951 #########################################################################
2952 #########################################################################
2955 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2956 $(obj)examples/hello_world $(obj)examples/interrupt \
2957 $(obj)examples/mem_to_mem_idma2intr \
2958 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2959 $(obj)examples/test_burst $(obj)examples/timer
2960 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2961 $(obj)tools/env/{fw_printenv,fw_setenv} \
2962 $(obj)tools/envcrc \
2963 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2964 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2965 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2966 $(obj)tools/ncb $(obj)tools/ubsha1
2967 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2968 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2969 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2970 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2971 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2972 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2973 @rm -f $(obj)include/bmp_logo.h
2974 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.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,zlib.h}
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 #########################################################################