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/mtd/spi/libspi_flash.a
228 LIBS += drivers/net/libnet.a
229 LIBS += drivers/net/sk98lin/libsk98lin.a
230 LIBS += drivers/pci/libpci.a
231 LIBS += drivers/pcmcia/libpcmcia.a
232 LIBS += drivers/spi/libspi.a
233 ifeq ($(CPU),mpc83xx)
234 LIBS += drivers/qe/qe.a
236 ifeq ($(CPU),mpc85xx)
237 LIBS += drivers/qe/qe.a
239 LIBS += drivers/rtc/librtc.a
240 LIBS += drivers/serial/libserial.a
241 LIBS += drivers/usb/libusb.a
242 LIBS += drivers/video/libvideo.a
243 LIBS += common/libcommon.a
244 LIBS += libfdt/libfdt.a
246 LIBS += post/libpost.a
248 LIBS := $(addprefix $(obj),$(LIBS))
249 .PHONY : $(LIBS) $(VERSION_FILE)
251 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
252 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
255 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
257 # The "tools" are needed early, so put this first
258 # Don't include stuff already done in $(LIBS)
265 ifeq ($(CONFIG_NAND_U_BOOT),y)
267 U_BOOT_NAND = $(obj)u-boot-nand.bin
270 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
271 ONENAND_IPL = onenand_ipl
272 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
275 __OBJS := $(subst $(obj),,$(OBJS))
276 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
278 #########################################################################
279 #########################################################################
281 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
282 ifeq ($(ARCH),blackfin)
283 ALL += $(obj)u-boot.ldr
288 $(obj)u-boot.hex: $(obj)u-boot
289 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
291 $(obj)u-boot.srec: $(obj)u-boot
292 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
294 $(obj)u-boot.bin: $(obj)u-boot
295 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
297 $(obj)u-boot.ldr: $(obj)u-boot
298 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
300 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
301 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
303 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
304 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
306 $(obj)u-boot.img: $(obj)u-boot.bin
307 ./tools/mkimage -A $(ARCH) -T firmware -C none \
308 -a $(TEXT_BASE) -e 0 \
309 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
310 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
313 $(obj)u-boot.sha1: $(obj)u-boot.bin
314 $(obj)tools/ubsha1 $(obj)u-boot.bin
316 $(obj)u-boot.dis: $(obj)u-boot
317 $(OBJDUMP) -d $< > $@
319 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
320 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
321 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
322 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
323 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
324 -Map u-boot.map -o u-boot
326 $(OBJS): depend $(obj)include/autoconf.mk
327 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
329 $(LIBS): depend $(obj)include/autoconf.mk
330 $(MAKE) -C $(dir $(subst $(obj),,$@))
332 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
333 $(MAKE) -C $(dir $(subst $(obj),,$@))
335 $(SUBDIRS): depend $(obj)include/autoconf.mk
338 $(LDSCRIPT): depend $(obj)include/autoconf.mk
339 $(MAKE) -C $(dir $@) $(notdir $@)
341 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
342 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
344 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
345 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
347 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
348 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
350 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
351 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
352 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
353 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
356 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
357 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
359 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
362 $(MAKE) -C tools/gdb all || exit 1
365 $(MAKE) -C tools/updater all || exit 1
368 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
370 depend dep: $(VERSION_FILE)
371 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
373 TAG_SUBDIRS += include
374 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
375 TAG_SUBDIRS += cpu/$(CPU)
376 TAG_SUBDIRS += lib_$(ARCH)
377 TAG_SUBDIRS += fs/cramfs
378 TAG_SUBDIRS += fs/fat
379 TAG_SUBDIRS += fs/fdos
380 TAG_SUBDIRS += fs/jffs2
383 TAG_SUBDIRS += common
384 TAG_SUBDIRS += drivers/bios_emulator
385 TAG_SUBDIRS += drivers/block
386 TAG_SUBDIRS += drivers/hwmon
387 TAG_SUBDIRS += drivers/i2c
388 TAG_SUBDIRS += drivers/input
389 TAG_SUBDIRS += drivers/misc
390 TAG_SUBDIRS += drivers/mtd
391 TAG_SUBDIRS += drivers/mtd/nand
392 TAG_SUBDIRS += drivers/mtd/nand_legacy
393 TAG_SUBDIRS += drivers/mtd/onenand
394 TAG_SUBDIRS += drivers/mtd/spi
395 TAG_SUBDIRS += drivers/net
396 TAG_SUBDIRS += drivers/net/sk98lin
397 TAG_SUBDIRS += drivers/pci
398 TAG_SUBDIRS += drivers/pcmcia
399 TAG_SUBDIRS += drivers/qe
400 TAG_SUBDIRS += drivers/rtc
401 TAG_SUBDIRS += drivers/serial
402 TAG_SUBDIRS += drivers/spi
403 TAG_SUBDIRS += drivers/usb
404 TAG_SUBDIRS += drivers/video
407 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
408 -name '*.[ch]' -print`
411 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
412 -name '*.[ch]' -print`
414 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
418 $(obj)System.map: $(obj)u-boot
420 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
421 sort > $(obj)System.map
424 # Auto-generate the autoconf.mk file (which is included by all makefiles)
426 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
427 # the dep file is only include in this top level makefile to determine when
428 # to regenerate the autoconf.mk file.
429 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
430 @$(XECHO) Generating $@ ; \
432 : Generate the dependancies ; \
433 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
434 -MQ $(obj)include/autoconf.mk include/common.h > $@
436 $(obj)include/autoconf.mk: $(obj)include/config.h
437 @$(XECHO) Generating $@ ; \
439 : Extract the config macros ; \
440 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
441 sed -n -f tools/scripts/define2mk.sed > $@
443 sinclude $(obj)include/autoconf.mk.dep
445 #########################################################################
447 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
448 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
449 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
450 dep tags ctags etags cscope $(obj)System.map:
451 @echo "System not configured - see README" >&2
457 git log --no-merges U-Boot-1_1_5.. | \
458 unexpand -a | sed -e 's/\s\s*$$//' > $@
460 #########################################################################
463 @rm -f $(obj)include/config.h $(obj)include/config.mk \
464 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
465 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
467 #========================================================================
469 #========================================================================
471 #########################################################################
473 #########################################################################
475 canmb_config: unconfig
476 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
478 cmi_mpc5xx_config: unconfig
479 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
481 PATI_config: unconfig
482 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
484 #########################################################################
486 #########################################################################
489 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
491 BC3450_config: unconfig
492 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
494 cpci5200_config: unconfig
495 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
497 hmi1001_config: unconfig
498 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
501 Lite5200_LOWBOOT_config \
502 Lite5200_LOWBOOT08_config \
503 icecube_5200_config \
504 icecube_5200_LOWBOOT_config \
505 icecube_5200_LOWBOOT08_config \
506 icecube_5200_DDR_config \
507 icecube_5200_DDR_LOWBOOT_config \
508 icecube_5200_DDR_LOWBOOT08_config \
509 icecube_5100_config: unconfig
510 @mkdir -p $(obj)include
511 @mkdir -p $(obj)board/icecube
512 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
513 { if [ "$(findstring DDR,$@)" ] ; \
514 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
515 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
517 $(XECHO) "... with LOWBOOT configuration" ; \
519 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
520 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
521 echo "... with 8 MB flash only" ; \
522 $(XECHO) "... with LOWBOOT configuration" ; \
524 @[ -z "$(findstring DDR,$@)" ] || \
525 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
526 $(XECHO) "... DDR memory revision" ; \
528 @[ -z "$(findstring 5200,$@)" ] || \
529 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
530 $(XECHO) "... with MPC5200 processor" ; \
532 @[ -z "$(findstring 5100,$@)" ] || \
533 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
534 $(XECHO) "... with MGT5100 processor" ; \
536 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
538 jupiter_config: unconfig
539 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
541 v38b_config: unconfig
542 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
544 inka4x0_config: unconfig
545 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
548 lite5200b_PM_config \
549 lite5200b_LOWBOOT_config: unconfig
550 @mkdir -p $(obj)include
551 @mkdir -p $(obj)board/icecube
552 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
553 @ $(XECHO) "... DDR memory revision"
554 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
555 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
556 @[ -z "$(findstring _PM_,$@)" ] || \
557 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
558 $(XECHO) "... with power management (low-power mode) support" ; \
560 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
561 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
562 $(XECHO) "... with LOWBOOT configuration" ; \
564 @ $(XECHO) "... with MPC5200B processor"
565 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
568 mcc200_SDRAM_config \
569 mcc200_highboot_config \
570 mcc200_COM12_config \
571 mcc200_COM12_SDRAM_config \
572 mcc200_COM12_highboot_config \
573 mcc200_COM12_highboot_SDRAM_config \
574 mcc200_highboot_SDRAM_config \
577 prs200_highboot_config \
578 prs200_highboot_DDR_config: unconfig
579 @mkdir -p $(obj)include
580 @mkdir -p $(obj)board/mcc200
581 @[ -n "$(findstring highboot,$@)" ] || \
582 { $(XECHO) "... with lowboot configuration" ; \
584 @[ -z "$(findstring highboot,$@)" ] || \
585 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
586 $(XECHO) "... with highboot configuration" ; \
588 @[ -n "$(findstring _SDRAM,$@)" ] || \
589 { if [ -n "$(findstring mcc200,$@)" ]; \
591 $(XECHO) "... with DDR" ; \
593 if [ -n "$(findstring _DDR,$@)" ];\
595 $(XECHO) "... with DDR" ; \
597 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
598 $(XECHO) "... with SDRAM" ; \
602 @[ -z "$(findstring _SDRAM,$@)" ] || \
603 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
604 $(XECHO) "... with SDRAM" ; \
606 @[ -z "$(findstring COM12,$@)" ] || \
607 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
608 $(XECHO) "... with console on COM12" ; \
610 @[ -z "$(findstring prs200,$@)" ] || \
611 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
613 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
615 mecp5200_config: unconfig
616 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
618 munices_config: unconfig
619 @$(MKCONFIG) munices ppc mpc5xxx munices
621 o2dnt_config: unconfig
622 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
624 pf5200_config: unconfig
625 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
629 PM520_ROMBOOT_config \
630 PM520_ROMBOOT_DDR_config: unconfig
631 @mkdir -p $(obj)include
632 @[ -z "$(findstring DDR,$@)" ] || \
633 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
634 $(XECHO) "... DDR memory revision" ; \
636 @[ -z "$(findstring ROMBOOT,$@)" ] || \
637 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
638 $(XECHO) "... booting from 8-bit flash" ; \
640 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
642 smmaco4_config: unconfig
643 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
645 cm5200_config: unconfig
646 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
648 spieval_config: unconfig
649 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
652 TB5200_config: unconfig
653 @mkdir -p $(obj)include
654 @[ -z "$(findstring _B,$@)" ] || \
655 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
656 $(XECHO) "... with MPC5200B processor" ; \
658 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
662 TOP5200_config: unconfig
663 @mkdir -p $(obj)include
664 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
665 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
669 Total5200_lowboot_config \
670 Total5200_Rev2_config \
671 Total5200_Rev2_lowboot_config: unconfig
672 @mkdir -p $(obj)include
673 @mkdir -p $(obj)board/total5200
674 @[ -z "$(findstring 5100,$@)" ] || \
675 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
676 $(XECHO) "... with MGT5100 processor" ; \
678 @[ -z "$(findstring 5200,$@)" ] || \
679 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
680 $(XECHO) "... with MPC5200 processor" ; \
682 @[ -n "$(findstring Rev,$@)" ] || \
683 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
684 $(XECHO) "... revision 1 board" ; \
686 @[ -z "$(findstring Rev2_,$@)" ] || \
687 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
688 $(XECHO) "... revision 2 board" ; \
690 @[ -z "$(findstring lowboot_,$@)" ] || \
691 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
692 $(XECHO) "... with lowboot configuration" ; \
694 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
697 cam5200_niosflash_config \
701 TQM5200S_HIGHBOOT_config \
703 TQM5200_B_HIGHBOOT_config \
705 TQM5200_STK100_config: unconfig
706 @mkdir -p $(obj)include
707 @mkdir -p $(obj)board/tqc/tqm5200
708 @[ -z "$(findstring cam5200,$@)" ] || \
709 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
710 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
711 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
712 $(XECHO) "... TQM5200S on Cam5200" ; \
714 @[ -z "$(findstring niosflash,$@)" ] || \
715 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
716 $(XECHO) "... with NIOS flash driver" ; \
718 @[ -z "$(findstring fo300,$@)" ] || \
719 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
720 $(XECHO) "... TQM5200 on FO300" ; \
722 @[ -z "$(findstring MiniFAP,$@)" ] || \
723 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
724 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
726 @[ -z "$(findstring STK100,$@)" ] || \
727 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
728 $(XECHO) "... on a STK52XX.100 base board" ; \
730 @[ -z "$(findstring TQM5200_B,$@)" ] || \
731 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
733 @[ -z "$(findstring TQM5200S,$@)" ] || \
734 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
735 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
737 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
738 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
740 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
741 uc101_config: unconfig
742 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
743 motionpro_config: unconfig
744 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
747 #########################################################################
749 #########################################################################
753 @mkdir -p $(obj)include
754 @if [ "$(findstring _PCI_,$@)" ] ; then \
755 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
756 $(XECHO) "... with PCI enabled" ; \
758 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
761 #########################################################################
763 #########################################################################
769 @mkdir -p $(obj)include
770 $(if $(findstring AdderII,$@), \
771 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
772 @$(MKCONFIG) -a Adder ppc mpc8xx adder
774 AdderUSB_config: unconfig
775 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
782 FADS860T_config: unconfig
783 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
785 AMX860_config : unconfig
786 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
788 c2mon_config: unconfig
789 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
792 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
794 cogent_mpc8xx_config: unconfig
795 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
797 ELPT860_config: unconfig
798 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
800 EP88x_config: unconfig
801 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
803 ESTEEM192E_config: unconfig
804 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
806 ETX094_config : unconfig
807 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
809 FLAGADM_config: unconfig
810 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
812 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
815 GEN860T_config: unconfig
816 @mkdir -p $(obj)include
817 @[ -z "$(findstring _SC,$@)" ] || \
818 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
819 $(XECHO) "With reduced H/W feature set (SC)..." ; \
821 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
823 GENIETV_config: unconfig
824 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
827 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
829 hermes_config : unconfig
830 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
832 HMI10_config : unconfig
833 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
835 IAD210_config: unconfig
836 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
838 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
840 ICU862_100MHz_config \
841 ICU862_config: unconfig
842 @mkdir -p $(obj)include
843 @[ -z "$(findstring _100MHz,$@)" ] || \
844 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
845 $(XECHO) "... with 100MHz system clock" ; \
847 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
849 IP860_config : unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
854 IVML24_config: unconfig
855 @mkdir -p $(obj)include
856 @[ -z "$(findstring IVML24_config,$@)" ] || \
857 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
859 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
860 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
862 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
863 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
865 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
869 IVMS8_config: unconfig
870 @mkdir -p $(obj)include
871 @[ -z "$(findstring IVMS8_config,$@)" ] || \
872 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
874 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
875 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
877 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
878 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
880 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
882 KUP4K_config : unconfig
883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
885 KUP4X_config : unconfig
886 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
888 LANTEC_config : unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
891 lwmon_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
895 MBX860T_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
898 mgsuvd_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
901 MHPC_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
904 MVS1_config : unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
907 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
910 NETVIA_config: unconfig
911 @mkdir -p $(obj)include
912 @[ -z "$(findstring NETVIA_config,$@)" ] || \
913 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
914 $(XECHO) "... Version 1" ; \
916 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
917 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
918 $(XECHO) "... Version 2" ; \
920 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
922 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
925 NETPHONE_config: unconfig
926 @mkdir -p $(obj)include
927 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
928 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
930 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
931 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
933 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
935 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
937 NETTA_ISDN_6412_SWAPHOOK_config \
938 NETTA_ISDN_SWAPHOOK_config \
939 NETTA_6412_SWAPHOOK_config \
940 NETTA_SWAPHOOK_config \
941 NETTA_ISDN_6412_config \
944 NETTA_config: unconfig
945 @mkdir -p $(obj)include
946 @[ -z "$(findstring ISDN_,$@)" ] || \
947 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
949 @[ -n "$(findstring ISDN_,$@)" ] || \
950 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
952 @[ -z "$(findstring 6412_,$@)" ] || \
953 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
955 @[ -n "$(findstring 6412_,$@)" ] || \
956 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
958 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
959 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
961 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
962 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
964 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
966 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
969 NETTA2_config: unconfig
970 @mkdir -p $(obj)include
971 @[ -z "$(findstring NETTA2_config,$@)" ] || \
972 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
974 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
975 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
977 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
981 CP850_config: unconfig
982 @mkdir -p $(obj)include
983 @[ -z "$(findstring CP850,$@)" ] || \
984 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
985 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
987 @[ -z "$(findstring Rev1,$@)" ] || \
988 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
990 @[ -z "$(findstring Rev2,$@)" ] || \
991 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
993 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
995 NX823_config: unconfig
996 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
998 pcu_e_config: unconfig
999 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1001 QS850_config: unconfig
1002 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1004 QS823_config: unconfig
1005 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1007 QS860T_config: unconfig
1008 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1010 quantum_config: unconfig
1011 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1013 R360MPI_config: unconfig
1014 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1016 RBC823_config: unconfig
1017 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1019 RPXClassic_config: unconfig
1020 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1022 RPXlite_config: unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1025 RPXlite_DW_64_config \
1026 RPXlite_DW_LCD_config \
1027 RPXlite_DW_64_LCD_config \
1028 RPXlite_DW_NVRAM_config \
1029 RPXlite_DW_NVRAM_64_config \
1030 RPXlite_DW_NVRAM_LCD_config \
1031 RPXlite_DW_NVRAM_64_LCD_config \
1032 RPXlite_DW_config: unconfig
1033 @mkdir -p $(obj)include
1034 @[ -z "$(findstring _64,$@)" ] || \
1035 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1036 $(XECHO) "... with 64MHz system clock ..."; \
1038 @[ -z "$(findstring _LCD,$@)" ] || \
1039 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1040 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1041 $(XECHO) "... with LCD display ..."; \
1043 @[ -z "$(findstring _NVRAM,$@)" ] || \
1044 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1045 $(XECHO) "... with ENV in NVRAM ..."; \
1047 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1049 rmu_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1052 RRvision_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1055 RRvision_LCD_config: unconfig
1056 @mkdir -p $(obj)include
1057 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1058 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1059 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1061 SM850_config : unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1064 spc1920_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1067 SPD823TS_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1070 stxxtc_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1073 svm_sc8xx_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1076 SXNI855T_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1079 # EMK MPC8xx based modules
1080 TOP860_config: unconfig
1081 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1083 # Play some tricks for configuration selection
1084 # Only 855 and 860 boards may come with FEC
1085 # and only 823 boards may have LCD support
1086 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1092 TQM823L_LCD_config \
1105 virtlab2_config: unconfig
1106 @mkdir -p $(obj)include
1107 @[ -z "$(findstring _LCD,$@)" ] || \
1108 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1109 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1110 $(XECHO) "... with LCD display" ; \
1112 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1114 TTTech_config: unconfig
1115 @mkdir -p $(obj)include
1116 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1117 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1118 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1120 uc100_config : unconfig
1121 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1123 v37_config: unconfig
1124 @mkdir -p $(obj)include
1125 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1126 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1127 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1129 wtk_config: unconfig
1130 @mkdir -p $(obj)include
1131 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1132 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1133 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1135 #########################################################################
1137 #########################################################################
1138 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1140 acadia_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1143 acadia_nand_config: unconfig
1144 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1145 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1146 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1147 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1148 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1149 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1151 ADCIOP_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1154 alpr_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1157 AP1000_config:unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1160 APC405_config: unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1163 AR405_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1166 ASH405_config: unconfig
1167 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1169 bamboo_config: unconfig
1170 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1172 bamboo_nand_config: unconfig
1173 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1174 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1175 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1176 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1177 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1178 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1180 bubinga_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1183 CANBT_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1186 # Canyonlands & Glacier use different U-Boot images
1187 canyonlands_config \
1188 glacier_config: unconfig
1189 @mkdir -p $(obj)include
1190 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1191 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1192 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1194 canyonlands_nand_config \
1195 glacier_nand_config: unconfig
1196 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1197 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1198 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1199 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1200 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1201 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1202 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1203 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1206 CATcenter_25_config \
1207 CATcenter_33_config: unconfig
1208 @mkdir -p $(obj)include
1209 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1210 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1211 @[ -z "$(findstring _25,$@)" ] || \
1212 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1213 $(XECHO) "SysClk = 25MHz" ; \
1215 @[ -z "$(findstring _33,$@)" ] || \
1216 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1217 $(XECHO) "SysClk = 33MHz" ; \
1219 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1221 CPCI2DP_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1227 CPCI405AB_config: unconfig
1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1229 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1231 CPCIISER4_config: unconfig
1232 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1234 CRAYL1_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1237 csb272_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1240 csb472_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1243 DASA_SIM_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1246 DP405_config: unconfig
1247 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1249 DU405_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1252 DU440_config: unconfig
1253 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1255 ebony_config: unconfig
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1258 ERIC_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1261 EXBITGEN_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1264 G2000_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1267 hcu4_config: unconfig
1268 @mkdir -p $(obj)board/netstal/common
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1271 hcu5_config: unconfig
1272 @mkdir -p $(obj)board/netstal/common
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1275 HH405_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1278 HUB405_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1281 JSE_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1284 KAREF_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1287 katmai_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1290 # Kilauea & Haleakala images are identical (recognized via PVR)
1292 haleakala_config: unconfig
1293 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1295 kilauea_nand_config \
1296 haleakala_nand_config: unconfig
1297 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1298 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1299 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1300 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1301 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1302 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1304 korat_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1307 luan_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1310 lwmon5_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1313 makalu_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1316 mcu25_config: unconfig
1317 @mkdir -p $(obj)board/netstal/common
1318 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1320 METROBOX_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1323 MIP405_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1326 MIP405T_config: unconfig
1327 @mkdir -p $(obj)include
1328 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1329 @$(XECHO) "Enable subset config for MIP405T"
1330 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1332 ML2_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1335 ml300_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1338 ocotea_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1342 ORSG_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1345 p3p440_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1348 PCI405_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1351 pcs440ep_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1354 PIP405_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1357 PLU405_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1360 PMC405_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1363 PMC440_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1366 PPChameleonEVB_config \
1367 PPChameleonEVB_BA_25_config \
1368 PPChameleonEVB_ME_25_config \
1369 PPChameleonEVB_HI_25_config \
1370 PPChameleonEVB_BA_33_config \
1371 PPChameleonEVB_ME_33_config \
1372 PPChameleonEVB_HI_33_config: unconfig
1373 @mkdir -p $(obj)include
1374 @[ -z "$(findstring EVB_BA,$@)" ] || \
1375 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1376 $(XECHO) "... BASIC model" ; \
1378 @[ -z "$(findstring EVB_ME,$@)" ] || \
1379 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1380 $(XECHO) "... MEDIUM model" ; \
1382 @[ -z "$(findstring EVB_HI,$@)" ] || \
1383 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1384 $(XECHO) "... HIGH-END model" ; \
1386 @[ -z "$(findstring _25,$@)" ] || \
1387 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1388 $(XECHO) "SysClk = 25MHz" ; \
1390 @[ -z "$(findstring _33,$@)" ] || \
1391 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1392 $(XECHO) "SysClk = 33MHz" ; \
1394 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1396 quad100hd_config: unconfig
1397 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1399 sbc405_config: unconfig
1400 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1403 rainier_config: unconfig
1404 @mkdir -p $(obj)include
1405 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1406 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1407 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1409 sequoia_nand_config \
1410 rainier_nand_config: unconfig
1411 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1412 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1413 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1414 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1415 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1416 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1417 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1418 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1423 taihu_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1426 taishan_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1429 VOH405_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1432 VOM405_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1435 CMS700_config: unconfig
1436 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1439 W7OLMG_config: unconfig
1440 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1442 # Walnut & Sycamore images are identical (recognized via PVR)
1444 sycamore_config: unconfig
1445 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1447 WUH405_config: unconfig
1448 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1450 XPEDITE1K_config: unconfig
1451 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1454 yellowstone_config: unconfig
1455 @mkdir -p $(obj)include
1456 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1457 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1458 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1460 yucca_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1463 zeus_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1466 #########################################################################
1468 #########################################################################
1471 Yukon8220_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1474 sorcery_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1477 #########################################################################
1479 #########################################################################
1480 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1482 A3000_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1485 barco_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1488 BMW_config: unconfig
1489 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1492 CPC45_ROMBOOT_config: unconfig
1493 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1494 @cd $(obj)include ; \
1495 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1496 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1497 $(XECHO) "... booting from 8-bit flash" ; \
1499 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1500 $(XECHO) "... booting from 64-bit flash" ; \
1502 echo "export CONFIG_BOOT_ROM" >> config.mk;
1504 CU824_config: unconfig
1505 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1507 debris_config: unconfig
1508 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1510 eXalion_config: unconfig
1511 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1513 HIDDEN_DRAGON_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1516 kvme080_config: unconfig
1517 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1519 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1521 #linkstation_HDLAN_config \
1522 # Remove this line when HDLAN is fixed
1523 linkstation_HGLAN_config: unconfig
1524 @mkdir -p $(obj)include
1526 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1527 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1529 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1531 MOUSSE_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1534 MUSENKI_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1537 MVBLUE_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1540 OXC_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1543 PN62_config: unconfig
1544 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1546 Sandpoint8240_config: unconfig
1547 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1549 Sandpoint8245_config: unconfig
1550 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1552 sbc8240_config: unconfig
1553 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1555 SL8245_config: unconfig
1556 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1558 utx8245_config: unconfig
1559 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1561 #########################################################################
1563 #########################################################################
1565 atc_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1568 cogent_mpc8260_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1572 CPU86_ROMBOOT_config: unconfig
1573 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1574 @cd $(obj)include ; \
1575 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1576 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1577 $(XECHO) "... booting from 8-bit flash" ; \
1579 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1580 $(XECHO) "... booting from 64-bit flash" ; \
1582 echo "export CONFIG_BOOT_ROM" >> config.mk;
1585 CPU87_ROMBOOT_config: unconfig
1586 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1587 @cd $(obj)include ; \
1588 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1589 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1590 $(XECHO) "... booting from 8-bit flash" ; \
1592 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1593 $(XECHO) "... booting from 64-bit flash" ; \
1595 echo "export CONFIG_BOOT_ROM" >> config.mk;
1598 ep8248E_config : unconfig
1599 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1601 ep8260_config: unconfig
1602 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1604 ep82xxm_config: unconfig
1605 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1607 gw8260_config: unconfig
1608 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1610 hymod_config: unconfig
1611 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1613 IDS8247_config: unconfig
1614 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1616 IPHASE4539_config: unconfig
1617 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1620 ISPAN_REVB_config: unconfig
1621 @mkdir -p $(obj)include
1622 @if [ "$(findstring _REVB_,$@)" ] ; then \
1623 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1625 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1627 mgcoge_config : unconfig
1628 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1631 MPC8260ADS_lowboot_config \
1632 MPC8260ADS_33MHz_config \
1633 MPC8260ADS_33MHz_lowboot_config \
1634 MPC8260ADS_40MHz_config \
1635 MPC8260ADS_40MHz_lowboot_config \
1637 MPC8272ADS_lowboot_config \
1639 PQ2FADS_lowboot_config \
1641 PQ2FADS-VR_lowboot_config \
1643 PQ2FADS-ZU_lowboot_config \
1644 PQ2FADS-ZU_66MHz_config \
1645 PQ2FADS-ZU_66MHz_lowboot_config \
1647 @mkdir -p $(obj)include
1648 @mkdir -p $(obj)board/freescale/mpc8260ads
1649 $(if $(findstring PQ2FADS,$@), \
1650 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1651 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1652 $(if $(findstring MHz,$@), \
1653 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1654 $(if $(findstring VR,$@), \
1655 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1656 @[ -z "$(findstring lowboot_,$@)" ] || \
1657 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1658 $(XECHO) "... with lowboot configuration" ; \
1660 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1662 MPC8266ADS_config: unconfig
1663 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1665 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1667 PM825_ROMBOOT_config \
1668 PM825_BIGFLASH_config \
1669 PM825_ROMBOOT_BIGFLASH_config \
1671 PM826_ROMBOOT_config \
1672 PM826_BIGFLASH_config \
1673 PM826_ROMBOOT_BIGFLASH_config: unconfig
1674 @mkdir -p $(obj)include
1675 @mkdir -p $(obj)board/pm826
1676 @if [ "$(findstring PM825_,$@)" ] ; then \
1677 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1679 >$(obj)include/config.h ; \
1681 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1682 $(XECHO) "... booting from 8-bit flash" ; \
1683 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1684 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1685 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1686 $(XECHO) "... with 32 MB Flash" ; \
1687 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1690 $(XECHO) "... booting from 64-bit flash" ; \
1691 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1692 $(XECHO) "... with 32 MB Flash" ; \
1693 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1694 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1696 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1699 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1703 PM828_ROMBOOT_config \
1704 PM828_ROMBOOT_PCI_config: unconfig
1705 @mkdir -p $(obj)include
1706 @mkdir -p $(obj)board/pm826
1707 @if [ "$(findstring _PCI_,$@)" ] ; then \
1708 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1709 $(XECHO) "... with PCI enabled" ; \
1711 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1712 $(XECHO) "... booting from 8-bit flash" ; \
1713 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1714 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1716 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1718 ppmc8260_config: unconfig
1719 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1721 Rattler8248_config \
1722 Rattler_config: unconfig
1723 @mkdir -p $(obj)include
1724 $(if $(findstring 8248,$@), \
1725 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1726 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1728 RPXsuper_config: unconfig
1729 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1731 rsdproto_config: unconfig
1732 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1734 sacsng_config: unconfig
1735 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1737 sbc8260_config: unconfig
1738 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1740 SCM_config: unconfig
1741 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1753 TQM8265_AA_config: unconfig
1754 @mkdir -p $(obj)include
1756 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1757 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1758 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1759 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1760 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1761 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1762 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1763 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1764 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1765 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1766 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1768 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1769 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1771 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1772 echo "... with $${CFREQ}MHz system clock" ; \
1773 if [ "$${CACHE}" = "yes" ] ; then \
1774 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1775 $(XECHO) "... with L2 Cache support" ; \
1777 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1778 $(XECHO) "... without L2 Cache support" ; \
1780 if [ "$${BMODE}" = "60x" ] ; then \
1781 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1782 $(XECHO) "... with 60x Bus Mode" ; \
1784 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1785 $(XECHO) "... without 60x Bus Mode" ; \
1787 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1789 TQM8272_config: unconfig
1790 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1792 VoVPN-GW_66MHz_config \
1793 VoVPN-GW_100MHz_config: unconfig
1794 @mkdir -p $(obj)include
1795 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1796 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1798 ZPC1900_config: unconfig
1799 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1801 #########################################################################
1803 #########################################################################
1805 M52277EVB_config: unconfig
1806 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1809 M5235EVB_Flash16_config \
1810 M5235EVB_Flash32_config: unconfig
1812 M5235EVB_config) FLASH=16;; \
1813 M5235EVB_Flash16_config) FLASH=16;; \
1814 M5235EVB_Flash32_config) FLASH=32;; \
1816 if [ "$${FLASH}" != "16" ] ; then \
1817 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1818 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1819 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1821 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1822 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1824 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1826 M5249EVB_config : unconfig
1827 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1829 M5253EVBE_config : unconfig
1830 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1832 cobra5272_config : unconfig
1833 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1835 EB+MCF-EV123_config : unconfig
1836 @mkdir -p $(obj)include
1837 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1838 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1839 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1841 EB+MCF-EV123_internal_config : unconfig
1842 @mkdir -p $(obj)include
1843 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1844 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1845 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1847 idmr_config : unconfig
1848 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1850 M5271EVB_config : unconfig
1851 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1853 M5272C3_config : unconfig
1854 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1856 M5275EVB_config : unconfig
1857 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1859 M5282EVB_config : unconfig
1860 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1862 TASREG_config : unconfig
1863 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1866 M5329BFEE_config : unconfig
1868 M5329AFEE_config) NAND=0;; \
1869 M5329BFEE_config) NAND=16;; \
1871 if [ "$${NAND}" != "0" ] ; then \
1872 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1874 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1876 M5373EVB_config : unconfig
1878 M5373EVB_config) NAND=16;; \
1880 if [ "$${NAND}" != "0" ] ; then \
1881 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1883 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1886 M54455EVB_atmel_config \
1887 M54455EVB_intel_config \
1888 M54455EVB_a33_config \
1889 M54455EVB_a66_config \
1890 M54455EVB_i33_config \
1891 M54455EVB_i66_config : unconfig
1893 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1894 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1895 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1896 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1897 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1898 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1899 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1901 if [ "$${FLASH}" = "INTEL" ] ; then \
1902 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1903 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1904 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1905 $(XECHO) "... with INTEL boot..." ; \
1907 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1908 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1909 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1910 $(XECHO) "... with ATMEL boot..." ; \
1912 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1913 $(XECHO) "... with $${FREQ}Hz input clock"
1914 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1922 M5475GFE_config : unconfig
1924 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1925 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1926 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1927 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1928 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1929 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1930 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1932 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1933 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1934 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1935 if [ "$${RAM1}" != "0" ] ; then \
1936 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1938 if [ "$${CODE}" != "0" ] ; then \
1939 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1941 if [ "$${VID}" == "1" ] ; then \
1942 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1944 if [ "$${USB}" == "1" ] ; then \
1945 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1947 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1956 M5485HFE_config : unconfig
1958 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1959 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1960 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1961 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1962 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1963 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1964 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1965 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1967 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1968 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1969 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1970 if [ "$${RAM1}" != "0" ] ; then \
1971 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1973 if [ "$${CODE}" != "0" ] ; then \
1974 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1976 if [ "$${VID}" == "1" ] ; then \
1977 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1979 if [ "$${USB}" == "1" ] ; then \
1980 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1982 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1984 #########################################################################
1986 #########################################################################
1988 MPC8313ERDB_33_config \
1989 MPC8313ERDB_66_config: unconfig
1990 @mkdir -p $(obj)include
1991 @if [ "$(findstring _33_,$@)" ] ; then \
1992 $(XECHO) -n "...33M ..." ; \
1993 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1995 if [ "$(findstring _66_,$@)" ] ; then \
1996 $(XECHO) -n "...66M..." ; \
1997 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1999 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2001 MPC8315ERDB_config: unconfig
2002 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2004 MPC8323ERDB_config: unconfig
2005 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2007 MPC832XEMDS_config \
2008 MPC832XEMDS_HOST_33_config \
2009 MPC832XEMDS_HOST_66_config \
2010 MPC832XEMDS_SLAVE_config \
2011 MPC832XEMDS_ATM_config: unconfig
2012 @mkdir -p $(obj)include
2013 @if [ "$(findstring _HOST_,$@)" ] ; then \
2014 $(XECHO) -n "... PCI HOST " ; \
2015 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2017 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2018 $(XECHO) "...PCI SLAVE 66M" ; \
2019 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2020 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2022 if [ "$(findstring _33_,$@)" ] ; then \
2023 $(XECHO) -n "...33M ..." ; \
2024 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2025 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2027 if [ "$(findstring _66_,$@)" ] ; then \
2028 $(XECHO) -n "...66M..." ; \
2029 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2030 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2032 if [ "$(findstring _ATM_,$@)" ] ; then \
2033 $(XECHO) -n "...ATM..." ; \
2034 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2035 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2037 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2039 MPC8349EMDS_config: unconfig
2040 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2043 MPC8349ITX_LOWBOOT_config \
2044 MPC8349ITXGP_config: unconfig
2045 @mkdir -p $(obj)include
2046 @mkdir -p $(obj)board/freescale/mpc8349itx
2047 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2048 @if [ "$(findstring GP,$@)" ] ; then \
2049 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2051 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2052 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2054 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2056 MPC8360EMDS_config \
2057 MPC8360EMDS_HOST_33_config \
2058 MPC8360EMDS_HOST_66_config \
2059 MPC8360EMDS_SLAVE_config \
2060 MPC8360EMDS_ATM_config: unconfig
2061 @mkdir -p $(obj)include
2062 @if [ "$(findstring _HOST_,$@)" ] ; then \
2063 $(XECHO) -n "... PCI HOST " ; \
2064 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2066 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2067 $(XECHO) "...PCI SLAVE 66M" ; \
2068 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2069 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2071 if [ "$(findstring _33_,$@)" ] ; then \
2072 $(XECHO) -n "...33M ..." ; \
2073 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2074 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2076 if [ "$(findstring _66_,$@)" ] ; then \
2077 $(XECHO) -n "...66M..." ; \
2078 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2079 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2081 if [ "$(findstring _ATM_,$@)" ] ; then \
2082 $(XECHO) -n "...ATM..." ; \
2083 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2084 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2086 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2088 MPC8360ERDK_33_config \
2089 MPC8360ERDK_66_config \
2090 MPC8360ERDK_config: unconfig
2091 @mkdir -p $(obj)include
2092 @if [ "$(findstring _33_,$@)" ] ; then \
2093 $(XECHO) -n "... CLKIN 33MHz " ; \
2094 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2096 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2098 MPC837XEMDS_config \
2099 MPC837XEMDS_HOST_config: unconfig
2100 @mkdir -p $(obj)include
2101 @if [ "$(findstring _HOST_,$@)" ] ; then \
2102 $(XECHO) -n "... PCI HOST " ; \
2103 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2105 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2107 MPC837XERDB_config: unconfig
2108 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2110 sbc8349_config: unconfig
2111 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2113 TQM834x_config: unconfig
2114 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2117 #########################################################################
2119 #########################################################################
2121 ATUM8548_config: unconfig
2122 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2124 MPC8540ADS_config: unconfig
2125 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2127 MPC8540EVAL_config \
2128 MPC8540EVAL_33_config \
2129 MPC8540EVAL_66_config \
2130 MPC8540EVAL_33_slave_config \
2131 MPC8540EVAL_66_slave_config: unconfig
2132 @mkdir -p $(obj)include
2133 @if [ "$(findstring _33_,$@)" ] ; then \
2134 $(XECHO) "... 33 MHz PCI" ; \
2136 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2137 $(XECHO) "... 66 MHz PCI" ; \
2139 if [ "$(findstring _slave_,$@)" ] ; then \
2140 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2141 $(XECHO) " slave" ; \
2143 $(XECHO) " host" ; \
2145 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2147 MPC8560ADS_config: unconfig
2148 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2150 MPC8541CDS_legacy_config \
2151 MPC8541CDS_config: unconfig
2152 @mkdir -p $(obj)include
2153 @if [ "$(findstring _legacy_,$@)" ] ; then \
2154 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2155 $(XECHO) "... legacy" ; \
2157 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2159 MPC8544DS_config: unconfig
2160 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2162 MPC8548CDS_legacy_config \
2163 MPC8548CDS_config: unconfig
2164 @mkdir -p $(obj)include
2165 @if [ "$(findstring _legacy_,$@)" ] ; then \
2166 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2167 $(XECHO) "... legacy" ; \
2169 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2171 MPC8555CDS_legacy_config \
2172 MPC8555CDS_config: unconfig
2173 @mkdir -p $(obj)include
2174 @if [ "$(findstring _legacy_,$@)" ] ; then \
2175 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2176 $(XECHO) "... legacy" ; \
2178 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2180 MPC8568MDS_config: unconfig
2181 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2183 PM854_config: unconfig
2184 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2186 PM856_config: unconfig
2187 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2191 sbc8540_66_config: unconfig
2192 @mkdir -p $(obj)include
2193 @if [ "$(findstring _66_,$@)" ] ; then \
2194 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2195 $(XECHO) "... 66 MHz PCI" ; \
2197 $(XECHO) "... 33 MHz PCI" ; \
2199 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2201 sbc8548_config: unconfig
2202 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2206 sbc8560_66_config: unconfig
2207 @mkdir -p $(obj)include
2208 @if [ "$(findstring _66_,$@)" ] ; then \
2209 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2210 $(XECHO) "... 66 MHz PCI" ; \
2212 $(XECHO) "... 33 MHz PCI" ; \
2214 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2216 socrates_config: unconfig
2217 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2219 stxgp3_config: unconfig
2220 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2223 stxssa_4M_config: unconfig
2224 @mkdir -p $(obj)include
2225 @if [ "$(findstring _4M_,$@)" ] ; then \
2226 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2227 $(XECHO) "... with 4 MiB flash memory" ; \
2229 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2235 TQM8560_config: unconfig
2236 @mkdir -p $(obj)include
2237 @CTYPE=$(subst TQM,,$(@:_config=)); \
2238 $(XECHO) "... TQM"$${CTYPE}; \
2239 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2240 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2241 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2242 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2243 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2245 #########################################################################
2247 #########################################################################
2249 MPC8610HPCD_config: unconfig
2250 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2252 MPC8641HPCN_config: unconfig
2253 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2255 sbc8641d_config: unconfig
2256 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2258 #########################################################################
2260 #########################################################################
2262 AmigaOneG3SE_config: unconfig
2263 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2265 BAB7xx_config: unconfig
2266 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2268 CPCI750_config: unconfig
2269 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2271 DB64360_config: unconfig
2272 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2274 DB64460_config: unconfig
2275 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2277 ELPPC_config: unconfig
2278 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2281 EVB64260_750CX_config: unconfig
2282 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2284 mpc7448hpc2_config: unconfig
2285 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2287 P3G4_config: unconfig
2288 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2291 p3m7448_config: unconfig
2292 @mkdir -p $(obj)include
2293 @if [ "$(findstring 750_,$@)" ] ; then \
2294 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2296 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2298 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2301 PCIPPC6_config: unconfig
2302 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2304 ZUMA_config: unconfig
2305 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2307 ppmc7xx_config: unconfig
2308 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2310 #========================================================================
2312 #========================================================================
2313 #########################################################################
2314 ## StrongARM Systems
2315 #########################################################################
2317 assabet_config : unconfig
2318 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2320 dnp1110_config : unconfig
2321 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2323 gcplus_config : unconfig
2324 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2326 lart_config : unconfig
2327 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2329 shannon_config : unconfig
2330 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2332 #########################################################################
2334 #########################################################################
2336 #########################################################################
2337 ## Atmel AT91RM9200 Systems
2338 #########################################################################
2340 at91rm9200dk_config : unconfig
2341 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2343 at91sam9261ek_config : unconfig
2344 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91sam9
2346 at91sam9263ek_config : unconfig
2347 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9
2349 at91sam9rlek_config : unconfig
2350 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91sam9
2352 cmc_pu2_config : unconfig
2353 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2355 csb637_config : unconfig
2356 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2358 kb9202_config : unconfig
2359 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2361 mp2usb_config : unconfig
2362 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2364 m501sk_config : unconfig
2365 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2367 #########################################################################
2368 ## Atmel ARM926EJ-S Systems
2369 #########################################################################
2371 at91cap9adk_config : unconfig
2372 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2374 at91sam9260ek_config : unconfig
2375 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2377 ########################################################################
2378 ## ARM Integrator boards - see doc/README-integrator for more info.
2379 integratorap_config \
2388 ap946es_config: unconfig
2389 @board/integratorap/split_by_variant.sh $@
2391 integratorcp_config \
2400 cp1026_config: unconfig
2401 @board/integratorcp/split_by_variant.sh $@
2404 lpd7a404_config: unconfig
2405 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2407 mx1ads_config : unconfig
2408 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2410 mx1fs2_config : unconfig
2411 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2413 netstar_config: unconfig
2414 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2416 omap1510inn_config : unconfig
2417 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2419 omap5912osk_config : unconfig
2420 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2422 davinci_dvevm_config : unconfig
2423 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2425 davinci_schmoogie_config : unconfig
2426 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2428 davinci_sonata_config : unconfig
2429 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2431 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2433 omap1610inn_config \
2434 omap1610inn_cs0boot_config \
2435 omap1610inn_cs3boot_config \
2436 omap1610inn_cs_autoboot_config \
2438 omap1610h2_cs0boot_config \
2439 omap1610h2_cs3boot_config \
2440 omap1610h2_cs_autoboot_config: unconfig
2441 @mkdir -p $(obj)include
2442 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2443 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2444 $(XECHO) "... configured for CS0 boot"; \
2445 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2446 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2447 $(XECHO) "... configured for CS_AUTO boot"; \
2449 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2450 $(XECHO) "... configured for CS3 boot"; \
2452 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2454 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2457 omap730p2_cs0boot_config \
2458 omap730p2_cs3boot_config : unconfig
2459 @mkdir -p $(obj)include
2460 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2461 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2462 $(XECHO) "... configured for CS0 boot"; \
2464 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2465 $(XECHO) "... configured for CS3 boot"; \
2467 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2469 sbc2410x_config: unconfig
2470 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2472 scb9328_config : unconfig
2473 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2475 smdk2400_config : unconfig
2476 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2478 smdk2410_config : unconfig
2479 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2481 SX1_config : unconfig
2482 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2484 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2485 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2488 trab_bigram_config \
2489 trab_bigflash_config \
2490 trab_old_config: unconfig
2491 @mkdir -p $(obj)include
2492 @mkdir -p $(obj)board/trab
2493 @[ -z "$(findstring _bigram,$@)" ] || \
2494 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2495 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2496 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2498 @[ -z "$(findstring _bigflash,$@)" ] || \
2499 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2500 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2501 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2502 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2504 @[ -z "$(findstring _old,$@)" ] || \
2505 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2506 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2507 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2508 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2510 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2512 VCMA9_config : unconfig
2513 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2515 #========================================================================
2516 # ARM supplied Versatile development boards
2517 #========================================================================
2519 versatileab_config \
2520 versatilepb_config : unconfig
2521 @board/versatile/split_by_variant.sh $@
2523 voiceblue_config: unconfig
2524 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2526 cm4008_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2529 cm41xx_config : unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2532 #########################################################################
2534 #########################################################################
2536 B2_config : unconfig
2537 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2539 #########################################################################
2541 #########################################################################
2543 armadillo_config: unconfig
2544 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2546 ep7312_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2549 impa7_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2552 modnet50_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2555 evb4510_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2558 lpc2292sodimm_config: unconfig
2559 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2561 SMN42_config : unconfig
2562 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2564 #########################################################################
2566 #########################################################################
2568 actux1_config : unconfig
2569 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2571 actux2_config : unconfig
2572 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2574 actux3_config : unconfig
2575 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2577 actux4_config : unconfig
2578 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2580 adsvix_config : unconfig
2581 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2583 cerf250_config : unconfig
2584 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2586 cradle_config : unconfig
2587 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2589 csb226_config : unconfig
2590 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2592 delta_config : unconfig
2593 @$(MKCONFIG) $(@:_config=) arm pxa delta
2595 innokom_config : unconfig
2596 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2598 ixdp425_config : unconfig
2599 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2601 ixdpg425_config : unconfig
2602 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2604 lubbock_config : unconfig
2605 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2607 pleb2_config : unconfig
2608 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2610 logodl_config : unconfig
2611 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2614 scpu_config: unconfig
2615 @mkdir -p $(obj)include
2616 @if [ "$(findstring scpu_,$@)" ] ; then \
2617 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2618 $(XECHO) "... on SCPU board variant" ; \
2620 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2622 pxa255_idp_config: unconfig
2623 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2625 trizepsiv_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2628 wepep250_config : unconfig
2629 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2631 xaeniax_config : unconfig
2632 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2634 xm250_config : unconfig
2635 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2637 xsengine_config : unconfig
2638 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2641 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2643 #########################################################################
2645 #########################################################################
2646 omap2420h4_config : unconfig
2647 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2649 apollon_config : unconfig
2650 @mkdir -p $(obj)include
2651 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2652 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2653 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2655 imx31_litekit_config : unconfig
2656 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2658 imx31_phycore_config : unconfig
2659 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2661 mx31ads_config : unconfig
2662 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2664 #========================================================================
2666 #========================================================================
2667 #########################################################################
2669 #########################################################################
2670 sc520_cdp_config : unconfig
2671 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2673 sc520_spunk_config : unconfig
2674 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2676 sc520_spunk_rel_config : unconfig
2677 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2679 #========================================================================
2681 #========================================================================
2682 #########################################################################
2684 #########################################################################
2686 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2688 incaip_100MHz_config \
2689 incaip_133MHz_config \
2690 incaip_150MHz_config \
2691 incaip_config: unconfig
2692 @mkdir -p $(obj)include
2693 @[ -z "$(findstring _100MHz,$@)" ] || \
2694 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2695 $(XECHO) "... with 100MHz system clock" ; \
2697 @[ -z "$(findstring _133MHz,$@)" ] || \
2698 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2699 $(XECHO) "... with 133MHz system clock" ; \
2701 @[ -z "$(findstring _150MHz,$@)" ] || \
2702 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2703 $(XECHO) "... with 150MHz system clock" ; \
2705 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2707 tb0229_config: unconfig
2708 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2710 #########################################################################
2712 #########################################################################
2713 dbau1000_config : unconfig
2714 @mkdir -p $(obj)include
2715 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2716 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2718 dbau1100_config : unconfig
2719 @mkdir -p $(obj)include
2720 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2721 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2723 dbau1500_config : unconfig
2724 @mkdir -p $(obj)include
2725 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2726 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2728 dbau1550_config : unconfig
2729 @mkdir -p $(obj)include
2730 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2731 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2733 dbau1550_el_config : unconfig
2734 @mkdir -p $(obj)include
2735 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2736 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2738 pb1000_config : unconfig
2739 @mkdir -p $(obj)include
2740 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2741 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2743 gth2_config: unconfig
2744 @mkdir -p $(obj)include
2745 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2746 @$(MKCONFIG) -a gth2 mips mips gth2
2748 qemu_mips_config: unconfig
2749 @mkdir -p $(obj)include
2750 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2751 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2753 #########################################################################
2755 #########################################################################
2757 purple_config : unconfig
2758 @$(MKCONFIG) $(@:_config=) mips mips purple
2760 #========================================================================
2762 #========================================================================
2763 #########################################################################
2765 #########################################################################
2767 DK1C20_safe_32_config \
2768 DK1C20_standard_32_config \
2769 DK1C20_config: unconfig
2770 @mkdir -p $(obj)include
2771 @[ -z "$(findstring _safe_32,$@)" ] || \
2772 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2773 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2775 @[ -z "$(findstring _standard_32,$@)" ] || \
2776 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2777 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2779 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2780 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2781 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2783 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2785 DK1S10_safe_32_config \
2786 DK1S10_standard_32_config \
2787 DK1S10_mtx_ldk_20_config \
2788 DK1S10_config: unconfig
2789 @mkdir -p $(obj)include
2790 @[ -z "$(findstring _safe_32,$@)" ] || \
2791 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2792 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2794 @[ -z "$(findstring _standard_32,$@)" ] || \
2795 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2796 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2798 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2799 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2800 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2802 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2803 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2804 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2806 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2808 ADNPESC1_DNPEVA2_base_32_config \
2809 ADNPESC1_base_32_config \
2810 ADNPESC1_config: unconfig
2811 @mkdir -p $(obj)include
2812 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2813 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2814 $(XECHO) "... DNP/EVA2 configuration" ; \
2816 @[ -z "$(findstring _base_32,$@)" ] || \
2817 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2818 $(XECHO) "... NIOS 'base_32' configuration" ; \
2820 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2821 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2822 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2824 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2826 #########################################################################
2828 #########################################################################
2830 EP1C20_config : unconfig
2831 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2833 EP1S10_config : unconfig
2834 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2836 EP1S40_config : unconfig
2837 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2839 PK1C20_config : unconfig
2840 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2842 PCI5441_config : unconfig
2843 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2845 #========================================================================
2847 #========================================================================
2848 #########################################################################
2850 #########################################################################
2851 suzaku_config: unconfig
2852 @mkdir -p $(obj)include
2853 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2854 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2856 ml401_config: unconfig
2857 @mkdir -p $(obj)include
2858 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2859 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2861 xupv2p_config: unconfig
2862 @mkdir -p $(obj)include
2863 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2864 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2866 #========================================================================
2868 #========================================================================
2870 # Analog Devices boards
2871 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2873 $(BFIN_BOARDS:%=%_config) : unconfig
2874 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2880 #========================================================================
2882 #========================================================================
2883 #########################################################################
2885 #########################################################################
2887 atstk1002_config : unconfig
2888 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2890 atstk1003_config : unconfig
2891 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2893 atstk1004_config : unconfig
2894 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2896 atstk1006_config : unconfig
2897 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2899 atngw100_config : unconfig
2900 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2902 #########################################################################
2903 #########################################################################
2904 #########################################################################
2906 #########################################################################
2907 ## sh3 (Renesas SuperH)
2908 #########################################################################
2909 mpr2_config: unconfig
2911 @echo "#define CONFIG_MPR2 1" >> include/config.h
2912 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2914 ms7720se_config: unconfig
2915 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2916 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2918 #########################################################################
2919 ## sh4 (Renesas SuperH)
2920 #########################################################################
2921 ms7750se_config: unconfig
2922 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2923 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2925 ms7722se_config : unconfig
2926 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2927 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2929 MigoR_config : unconfig
2931 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2932 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2934 r7780mp_config: unconfig
2936 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2937 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2939 r2dplus_config : unconfig
2941 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2942 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2944 #========================================================================
2946 #========================================================================
2947 #########################################################################
2949 #########################################################################
2951 # Gaisler GR-XC3S-1500 board
2952 gr_xc3s_1500_config : unconfig
2953 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
2955 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
2956 gr_cpci_ax2000_config : unconfig
2957 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
2959 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
2960 # Development board Stratix II edition, FPGA Device EP2S60.
2961 gr_ep2s60_config: unconfig
2962 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
2964 # Gaisler LEON3 GRSIM simulator
2965 grsim_config : unconfig
2966 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2968 #########################################################################
2970 #########################################################################
2972 # Gaisler LEON2 GRSIM simulator
2973 grsim_leon2_config : unconfig
2974 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2976 #########################################################################
2977 #########################################################################
2978 #########################################################################
2981 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2982 $(obj)examples/hello_world $(obj)examples/interrupt \
2983 $(obj)examples/mem_to_mem_idma2intr \
2984 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2985 $(obj)examples/test_burst $(obj)examples/timer
2986 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2987 $(obj)tools/env/{fw_printenv,fw_setenv} \
2988 $(obj)tools/envcrc \
2989 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2990 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2991 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2992 $(obj)tools/ncb $(obj)tools/ubsha1
2993 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2994 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2995 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2996 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2997 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2998 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2999 @rm -f $(obj)include/bmp_logo.h
3000 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3001 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3002 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3003 @find $(OBJTREE) -type f \
3004 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3005 -o -name '*.o' -o -name '*.a' \) -print \
3009 @find $(OBJTREE) -type f \( -name .depend \
3010 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3013 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3014 $(obj)cscope.* $(obj)*.*~
3015 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3016 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3017 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3018 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3019 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3020 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3021 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
3022 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
3023 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
3025 ifeq ($(OBJTREE),$(SRCTREE))
3027 distclean: clobber unconfig
3030 distclean: clobber unconfig
3035 F=`basename $(TOPDIR)` ; cd .. ; \
3036 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3038 #########################################################################