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 ifneq "$(SUBLEVEL)" ""
29 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
33 VERSION_FILE = $(obj)include/version_autogenerated.h
35 HOSTARCH := $(shell uname -m | \
44 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
45 sed -e 's/\(cygwin\).*/cygwin/')
47 export HOSTARCH HOSTOS
49 # Deal with colliding definitions from tcsh etc.
52 #########################################################################
53 # Allow for silent builds
54 ifeq (,$(findstring s,$(MAKEFLAGS)))
60 #########################################################################
62 # U-boot build supports producing a object files to the separate external
63 # directory. Two use cases are supported:
65 # 1) Add O= to the make command line
66 # 'make O=/tmp/build all'
68 # 2) Set environement variable BUILD_DIR to point to the desired location
69 # 'export BUILD_DIR=/tmp/build'
72 # The second approach can also be used with a MAKEALL script
73 # 'export BUILD_DIR=/tmp/build'
76 # Command line 'O=' setting overrides BUILD_DIR environent variable.
78 # When none of the above methods is used the local build is performed and
79 # the object files are placed in the source directory.
83 ifeq ("$(origin O)", "command line")
89 saved-output := $(BUILD_DIR)
91 # Attempt to create a output directory.
92 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
94 # Verify if it was successful.
95 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
96 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
97 endif # ifneq ($(BUILD_DIR),)
99 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
103 export TOPDIR SRCTREE OBJTREE
105 MKCONFIG := $(SRCTREE)/mkconfig
108 ifneq ($(OBJTREE),$(SRCTREE))
113 # $(obj) and (src) are defined in config.mk but here in main Makefile
114 # we also need them before config.mk is included which is the case for
115 # some targets like unconfig, clean, clobber, distclean, etc.
116 ifneq ($(OBJTREE),$(SRCTREE))
125 # Make sure CDPATH settings don't interfere
128 #########################################################################
130 ifeq ($(ARCH),powerpc)
134 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
136 # load ARCH, BOARD, and CPU configuration
137 include $(obj)include/config.mk
138 export ARCH CPU BOARD VENDOR SOC
141 ifeq ($(HOSTARCH),$(ARCH))
145 CROSS_COMPILE = ppc_8xx-
148 CROSS_COMPILE = arm-linux-
151 CROSS_COMPILE = i386-linux-
154 CROSS_COMPILE = mips_4KC-
157 CROSS_COMPILE = nios-elf-
160 CROSS_COMPILE = nios2-elf-
163 CROSS_COMPILE = m68k-elf-
165 ifeq ($(ARCH),microblaze)
168 ifeq ($(ARCH),blackfin)
169 CROSS_COMPILE = bfin-uclinux-
172 CROSS_COMPILE = avr32-linux-
175 CROSS_COMPILE = sh4-linux-
178 CROSS_COMPILE = sparc-elf-
180 endif # HOSTARCH,ARCH
181 endif # CROSS_COMPILE
185 # load other configuration
186 include $(TOPDIR)/config.mk
188 #########################################################################
189 # U-Boot objects....order is important (i.e. start must be first)
191 OBJS = cpu/$(CPU)/start.o
193 OBJS += cpu/$(CPU)/start16.o
194 OBJS += cpu/$(CPU)/reset.o
197 OBJS += cpu/$(CPU)/resetvec.o
199 ifeq ($(CPU),mpc85xx)
200 OBJS += cpu/$(CPU)/resetvec.o
203 OBJS := $(addprefix $(obj),$(OBJS))
205 LIBS = lib_generic/libgeneric.a
206 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
207 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
208 LIBS += cpu/$(CPU)/lib$(CPU).a
210 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
213 LIBS += cpu/ixp/npe/libnpe.a
215 LIBS += lib_$(ARCH)/lib$(ARCH).a
216 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
217 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
219 LIBS += disk/libdisk.a
220 LIBS += drivers/bios_emulator/libatibiosemu.a
221 LIBS += drivers/block/libblock.a
222 LIBS += drivers/dma/libdma.a
223 LIBS += drivers/hwmon/libhwmon.a
224 LIBS += drivers/i2c/libi2c.a
225 LIBS += drivers/input/libinput.a
226 LIBS += drivers/misc/libmisc.a
227 LIBS += drivers/mmc/libmmc.a
228 LIBS += drivers/mtd/libmtd.a
229 LIBS += drivers/mtd/nand/libnand.a
230 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
231 LIBS += drivers/mtd/onenand/libonenand.a
232 LIBS += drivers/mtd/spi/libspi_flash.a
233 LIBS += drivers/net/libnet.a
234 LIBS += drivers/net/phy/libphy.a
235 LIBS += drivers/net/sk98lin/libsk98lin.a
236 LIBS += drivers/pci/libpci.a
237 LIBS += drivers/pcmcia/libpcmcia.a
238 LIBS += drivers/spi/libspi.a
239 ifeq ($(CPU),mpc83xx)
240 LIBS += drivers/qe/qe.a
242 ifeq ($(CPU),mpc85xx)
243 LIBS += drivers/qe/qe.a
244 LIBS += cpu/mpc8xxx/ddr/libddr.a
246 ifeq ($(CPU),mpc86xx)
247 LIBS += cpu/mpc8xxx/ddr/libddr.a
249 LIBS += drivers/rtc/librtc.a
250 LIBS += drivers/serial/libserial.a
251 LIBS += drivers/usb/libusb.a
252 LIBS += drivers/video/libvideo.a
253 LIBS += common/libcommon.a
254 LIBS += libfdt/libfdt.a
256 LIBS += post/libpost.a
258 LIBS := $(addprefix $(obj),$(LIBS))
259 .PHONY : $(LIBS) $(VERSION_FILE)
261 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
262 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
265 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
267 # The "tools" are needed early, so put this first
268 # Don't include stuff already done in $(LIBS)
275 ifeq ($(CONFIG_NAND_U_BOOT),y)
277 U_BOOT_NAND = $(obj)u-boot-nand.bin
280 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
281 ONENAND_IPL = onenand_ipl
282 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
285 __OBJS := $(subst $(obj),,$(OBJS))
286 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
288 #########################################################################
289 #########################################################################
291 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
292 ifeq ($(ARCH),blackfin)
293 ALL += $(obj)u-boot.ldr
298 $(obj)u-boot.hex: $(obj)u-boot
299 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
301 $(obj)u-boot.srec: $(obj)u-boot
302 $(OBJCOPY) -O srec $< $@
304 $(obj)u-boot.bin: $(obj)u-boot
305 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
307 $(obj)u-boot.ldr: $(obj)u-boot
308 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
310 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
311 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
313 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
314 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
316 $(obj)u-boot.img: $(obj)u-boot.bin
317 ./tools/mkimage -A $(ARCH) -T firmware -C none \
318 -a $(TEXT_BASE) -e 0 \
319 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
320 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
323 $(obj)u-boot.sha1: $(obj)u-boot.bin
324 $(obj)tools/ubsha1 $(obj)u-boot.bin
326 $(obj)u-boot.dis: $(obj)u-boot
327 $(OBJDUMP) -d $< > $@
329 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
330 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
331 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
332 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
333 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
334 -Map u-boot.map -o u-boot
336 $(OBJS): depend $(obj)include/autoconf.mk
337 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
339 $(LIBS): depend $(obj)include/autoconf.mk
340 $(MAKE) -C $(dir $(subst $(obj),,$@))
342 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
343 $(MAKE) -C $(dir $(subst $(obj),,$@))
345 $(SUBDIRS): depend $(obj)include/autoconf.mk
348 $(LDSCRIPT): depend $(obj)include/autoconf.mk
349 $(MAKE) -C $(dir $@) $(notdir $@)
351 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
352 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
354 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
355 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
357 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
358 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
360 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
361 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
362 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
365 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
366 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
368 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
371 $(MAKE) -C tools/gdb all || exit 1
374 $(MAKE) -C tools/updater all || exit 1
377 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
379 depend dep: $(VERSION_FILE)
380 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
382 TAG_SUBDIRS += include
383 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
384 TAG_SUBDIRS += cpu/$(CPU)
385 TAG_SUBDIRS += lib_$(ARCH)
386 TAG_SUBDIRS += fs/cramfs
387 TAG_SUBDIRS += fs/fat
388 TAG_SUBDIRS += fs/fdos
389 TAG_SUBDIRS += fs/jffs2
390 TAG_SUBDIRS += fs/yaffs2
393 TAG_SUBDIRS += common
394 TAG_SUBDIRS += drivers/bios_emulator
395 TAG_SUBDIRS += drivers/block
396 TAG_SUBDIRS += drivers/hwmon
397 TAG_SUBDIRS += drivers/i2c
398 TAG_SUBDIRS += drivers/input
399 TAG_SUBDIRS += drivers/misc
400 TAG_SUBDIRS += drivers/mmc
401 TAG_SUBDIRS += drivers/mtd
402 TAG_SUBDIRS += drivers/mtd/nand
403 TAG_SUBDIRS += drivers/mtd/nand_legacy
404 TAG_SUBDIRS += drivers/mtd/onenand
405 TAG_SUBDIRS += drivers/mtd/spi
406 TAG_SUBDIRS += drivers/net
407 TAG_SUBDIRS += drivers/net/sk98lin
408 TAG_SUBDIRS += drivers/pci
409 TAG_SUBDIRS += drivers/pcmcia
410 TAG_SUBDIRS += drivers/qe
411 TAG_SUBDIRS += drivers/rtc
412 TAG_SUBDIRS += drivers/serial
413 TAG_SUBDIRS += drivers/spi
414 TAG_SUBDIRS += drivers/usb
415 TAG_SUBDIRS += drivers/video
418 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
419 -name '*.[ch]' -print`
422 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
423 -name '*.[ch]' -print`
425 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
429 $(obj)System.map: $(obj)u-boot
431 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
432 sort > $(obj)System.map
435 # Auto-generate the autoconf.mk file (which is included by all makefiles)
437 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
438 # the dep file is only include in this top level makefile to determine when
439 # to regenerate the autoconf.mk file.
440 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
441 @$(XECHO) Generating $@ ; \
443 : Generate the dependancies ; \
444 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
445 -MQ $(obj)include/autoconf.mk include/common.h > $@
447 $(obj)include/autoconf.mk: $(obj)include/config.h
448 @$(XECHO) Generating $@ ; \
450 : Extract the config macros ; \
451 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
452 sed -n -f tools/scripts/define2mk.sed > $@
454 sinclude $(obj)include/autoconf.mk.dep
456 #########################################################################
458 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
459 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
460 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
461 dep tags ctags etags cscope $(obj)System.map:
462 @echo "System not configured - see README" >&2
468 git log --no-merges U-Boot-1_1_5.. | \
469 unexpand -a | sed -e 's/\s\s*$$//' > $@
471 include/license.h: tools/bin2header COPYING
472 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
473 #########################################################################
476 @rm -f $(obj)include/config.h $(obj)include/config.mk \
477 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
478 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
480 #========================================================================
482 #========================================================================
484 #########################################################################
486 #########################################################################
488 canmb_config: unconfig
489 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
491 cmi_mpc5xx_config: unconfig
492 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
494 PATI_config: unconfig
495 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
497 #########################################################################
499 #########################################################################
502 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
504 BC3450_config: unconfig
505 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
507 cm5200_config: unconfig
508 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
510 cpci5200_config: unconfig
511 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
513 hmi1001_config: unconfig
514 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
517 Lite5200_LOWBOOT_config \
518 Lite5200_LOWBOOT08_config \
519 icecube_5200_config \
520 icecube_5200_LOWBOOT_config \
521 icecube_5200_LOWBOOT08_config \
522 icecube_5200_DDR_config \
523 icecube_5200_DDR_LOWBOOT_config \
524 icecube_5200_DDR_LOWBOOT08_config \
525 icecube_5100_config: unconfig
526 @mkdir -p $(obj)include
527 @mkdir -p $(obj)board/icecube
528 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
529 { if [ "$(findstring DDR,$@)" ] ; \
530 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
531 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
533 $(XECHO) "... with LOWBOOT configuration" ; \
535 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
536 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
537 echo "... with 8 MB flash only" ; \
538 $(XECHO) "... with LOWBOOT configuration" ; \
540 @[ -z "$(findstring DDR,$@)" ] || \
541 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
542 $(XECHO) "... DDR memory revision" ; \
544 @[ -z "$(findstring 5200,$@)" ] || \
545 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
546 $(XECHO) "... with MPC5200 processor" ; \
548 @[ -z "$(findstring 5100,$@)" ] || \
549 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
550 $(XECHO) "... with MGT5100 processor" ; \
552 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
554 jupiter_config: unconfig
555 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
557 inka4x0_config: unconfig
558 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
561 lite5200b_PM_config \
562 lite5200b_LOWBOOT_config: unconfig
563 @mkdir -p $(obj)include
564 @mkdir -p $(obj)board/icecube
565 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
566 @ $(XECHO) "... DDR memory revision"
567 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
568 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
569 @[ -z "$(findstring _PM_,$@)" ] || \
570 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
571 $(XECHO) "... with power management (low-power mode) support" ; \
573 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
574 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
575 $(XECHO) "... with LOWBOOT configuration" ; \
577 @ $(XECHO) "... with MPC5200B processor"
578 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
581 mcc200_SDRAM_config \
582 mcc200_highboot_config \
583 mcc200_COM12_config \
584 mcc200_COM12_SDRAM_config \
585 mcc200_COM12_highboot_config \
586 mcc200_COM12_highboot_SDRAM_config \
587 mcc200_highboot_SDRAM_config \
590 prs200_highboot_config \
591 prs200_highboot_DDR_config: unconfig
592 @mkdir -p $(obj)include
593 @mkdir -p $(obj)board/mcc200
594 @[ -n "$(findstring highboot,$@)" ] || \
595 { $(XECHO) "... with lowboot configuration" ; \
597 @[ -z "$(findstring highboot,$@)" ] || \
598 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
599 $(XECHO) "... with highboot configuration" ; \
601 @[ -n "$(findstring _SDRAM,$@)" ] || \
602 { if [ -n "$(findstring mcc200,$@)" ]; \
604 $(XECHO) "... with DDR" ; \
606 if [ -n "$(findstring _DDR,$@)" ];\
608 $(XECHO) "... with DDR" ; \
610 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
611 $(XECHO) "... with SDRAM" ; \
615 @[ -z "$(findstring _SDRAM,$@)" ] || \
616 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
617 $(XECHO) "... with SDRAM" ; \
619 @[ -z "$(findstring COM12,$@)" ] || \
620 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
621 $(XECHO) "... with console on COM12" ; \
623 @[ -z "$(findstring prs200,$@)" ] || \
624 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
626 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
628 mecp5200_config: unconfig
629 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
631 motionpro_config: unconfig
632 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
634 mucmc52_config: unconfig
635 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
637 munices_config: unconfig
638 @$(MKCONFIG) munices ppc mpc5xxx munices
640 MVBC_P_config: unconfig
641 @mkdir -p $(obj)include
642 @mkdir -p $(obj)board/mvbc_p
643 @ >$(obj)include/config.h
644 @[ -z "$(findstring MVBC_P,$@)" ] || \
645 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
646 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
648 o2dnt_config: unconfig
649 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
651 pf5200_config: unconfig
652 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
656 PM520_ROMBOOT_config \
657 PM520_ROMBOOT_DDR_config: unconfig
658 @mkdir -p $(obj)include
659 @[ -z "$(findstring DDR,$@)" ] || \
660 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
661 $(XECHO) "... DDR memory revision" ; \
663 @[ -z "$(findstring ROMBOOT,$@)" ] || \
664 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
665 $(XECHO) "... booting from 8-bit flash" ; \
667 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
669 smmaco4_config: unconfig
670 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
672 spieval_config: unconfig
673 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
676 TB5200_config: unconfig
677 @mkdir -p $(obj)include
678 @[ -z "$(findstring _B,$@)" ] || \
679 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
680 $(XECHO) "... with MPC5200B processor" ; \
682 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
686 TOP5200_config: unconfig
687 @mkdir -p $(obj)include
688 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
689 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
693 Total5200_lowboot_config \
694 Total5200_Rev2_config \
695 Total5200_Rev2_lowboot_config: unconfig
696 @mkdir -p $(obj)include
697 @mkdir -p $(obj)board/total5200
698 @[ -z "$(findstring 5100,$@)" ] || \
699 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
700 $(XECHO) "... with MGT5100 processor" ; \
702 @[ -z "$(findstring 5200,$@)" ] || \
703 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
704 $(XECHO) "... with MPC5200 processor" ; \
706 @[ -n "$(findstring Rev,$@)" ] || \
707 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
708 $(XECHO) "... revision 1 board" ; \
710 @[ -z "$(findstring Rev2_,$@)" ] || \
711 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
712 $(XECHO) "... revision 2 board" ; \
714 @[ -z "$(findstring lowboot_,$@)" ] || \
715 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
716 $(XECHO) "... with lowboot configuration" ; \
718 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
721 cam5200_niosflash_config \
725 TQM5200S_HIGHBOOT_config \
727 TQM5200_B_HIGHBOOT_config \
729 TQM5200_STK100_config: unconfig
730 @mkdir -p $(obj)include
731 @mkdir -p $(obj)board/tqc/tqm5200
732 @[ -z "$(findstring cam5200,$@)" ] || \
733 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
734 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
735 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
736 $(XECHO) "... TQM5200S on Cam5200" ; \
738 @[ -z "$(findstring niosflash,$@)" ] || \
739 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
740 $(XECHO) "... with NIOS flash driver" ; \
742 @[ -z "$(findstring fo300,$@)" ] || \
743 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
744 $(XECHO) "... TQM5200 on FO300" ; \
746 @[ -z "$(findstring MiniFAP,$@)" ] || \
747 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
748 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
750 @[ -z "$(findstring STK100,$@)" ] || \
751 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
752 $(XECHO) "... on a STK52XX.100 base board" ; \
754 @[ -z "$(findstring TQM5200_B,$@)" ] || \
755 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
757 @[ -z "$(findstring TQM5200S,$@)" ] || \
758 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
759 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
761 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
762 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
764 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
766 uc101_config: unconfig
767 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
769 v38b_config: unconfig
770 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
772 #########################################################################
774 #########################################################################
777 ads5121_rev2_config \
779 @mkdir -p $(obj)include
780 @if [ "$(findstring rev2,$@)" ] ; then \
781 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
783 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
786 #########################################################################
788 #########################################################################
794 @mkdir -p $(obj)include
795 $(if $(findstring AdderII,$@), \
796 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
797 @$(MKCONFIG) -a Adder ppc mpc8xx adder
799 AdderUSB_config: unconfig
800 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
807 FADS860T_config: unconfig
808 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
810 AMX860_config : unconfig
811 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
813 c2mon_config: unconfig
814 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
817 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
819 cogent_mpc8xx_config: unconfig
820 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
822 ELPT860_config: unconfig
823 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
825 EP88x_config: unconfig
826 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
828 ESTEEM192E_config: unconfig
829 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
831 ETX094_config : unconfig
832 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
834 FLAGADM_config: unconfig
835 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
837 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
840 GEN860T_config: unconfig
841 @mkdir -p $(obj)include
842 @[ -z "$(findstring _SC,$@)" ] || \
843 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
844 $(XECHO) "With reduced H/W feature set (SC)..." ; \
846 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
848 GENIETV_config: unconfig
849 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
852 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
854 hermes_config : unconfig
855 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
857 HMI10_config : unconfig
858 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
860 IAD210_config: unconfig
861 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
863 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
865 ICU862_100MHz_config \
866 ICU862_config: unconfig
867 @mkdir -p $(obj)include
868 @[ -z "$(findstring _100MHz,$@)" ] || \
869 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
870 $(XECHO) "... with 100MHz system clock" ; \
872 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
874 IP860_config : unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
879 IVML24_config: unconfig
880 @mkdir -p $(obj)include
881 @[ -z "$(findstring IVML24_config,$@)" ] || \
882 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
884 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
885 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
887 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
888 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
890 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
894 IVMS8_config: unconfig
895 @mkdir -p $(obj)include
896 @[ -z "$(findstring IVMS8_config,$@)" ] || \
897 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
899 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
900 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
902 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
903 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
905 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
907 KUP4K_config : unconfig
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
910 KUP4X_config : unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
913 LANTEC_config : unconfig
914 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
916 lwmon_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
920 MBX860T_config: unconfig
921 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
923 mgsuvd_config: unconfig
924 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
926 MHPC_config: unconfig
927 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
929 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
932 NETVIA_config: unconfig
933 @mkdir -p $(obj)include
934 @[ -z "$(findstring NETVIA_config,$@)" ] || \
935 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
936 $(XECHO) "... Version 1" ; \
938 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
939 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
940 $(XECHO) "... Version 2" ; \
942 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
944 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
947 NETPHONE_config: unconfig
948 @mkdir -p $(obj)include
949 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
950 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
952 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
953 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
955 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
957 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
959 NETTA_ISDN_6412_SWAPHOOK_config \
960 NETTA_ISDN_SWAPHOOK_config \
961 NETTA_6412_SWAPHOOK_config \
962 NETTA_SWAPHOOK_config \
963 NETTA_ISDN_6412_config \
966 NETTA_config: unconfig
967 @mkdir -p $(obj)include
968 @[ -z "$(findstring ISDN_,$@)" ] || \
969 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
971 @[ -n "$(findstring ISDN_,$@)" ] || \
972 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
974 @[ -z "$(findstring 6412_,$@)" ] || \
975 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
977 @[ -n "$(findstring 6412_,$@)" ] || \
978 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
980 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
981 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
983 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
984 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
986 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
988 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
991 NETTA2_config: unconfig
992 @mkdir -p $(obj)include
993 @[ -z "$(findstring NETTA2_config,$@)" ] || \
994 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
996 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
997 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
999 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1003 CP850_config: unconfig
1004 @mkdir -p $(obj)include
1005 @[ -z "$(findstring CP850,$@)" ] || \
1006 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1007 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1009 @[ -z "$(findstring Rev1,$@)" ] || \
1010 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1012 @[ -z "$(findstring Rev2,$@)" ] || \
1013 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1015 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1017 NX823_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1020 pcu_e_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1023 QS850_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1026 QS823_config: unconfig
1027 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1029 QS860T_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1032 quantum_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1035 R360MPI_config: unconfig
1036 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1038 RBC823_config: unconfig
1039 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1041 RPXClassic_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1044 RPXlite_config: unconfig
1045 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1047 RPXlite_DW_64_config \
1048 RPXlite_DW_LCD_config \
1049 RPXlite_DW_64_LCD_config \
1050 RPXlite_DW_NVRAM_config \
1051 RPXlite_DW_NVRAM_64_config \
1052 RPXlite_DW_NVRAM_LCD_config \
1053 RPXlite_DW_NVRAM_64_LCD_config \
1054 RPXlite_DW_config: unconfig
1055 @mkdir -p $(obj)include
1056 @[ -z "$(findstring _64,$@)" ] || \
1057 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1058 $(XECHO) "... with 64MHz system clock ..."; \
1060 @[ -z "$(findstring _LCD,$@)" ] || \
1061 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1062 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1063 $(XECHO) "... with LCD display ..."; \
1065 @[ -z "$(findstring _NVRAM,$@)" ] || \
1066 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1067 $(XECHO) "... with ENV in NVRAM ..."; \
1069 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1071 rmu_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1074 RRvision_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1077 RRvision_LCD_config: unconfig
1078 @mkdir -p $(obj)include
1079 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1080 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1081 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1083 SM850_config : unconfig
1084 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1086 spc1920_config: unconfig
1087 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1089 SPD823TS_config: unconfig
1090 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1092 stxxtc_config: unconfig
1093 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1095 svm_sc8xx_config: unconfig
1096 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1098 SXNI855T_config: unconfig
1099 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1101 # EMK MPC8xx based modules
1102 TOP860_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1105 # Play some tricks for configuration selection
1106 # Only 855 and 860 boards may come with FEC
1107 # and only 823 boards may have LCD support
1108 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1114 TQM823L_LCD_config \
1127 virtlab2_config: unconfig
1128 @mkdir -p $(obj)include
1129 @[ -z "$(findstring _LCD,$@)" ] || \
1130 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1131 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1132 $(XECHO) "... with LCD display" ; \
1134 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1136 TTTech_config: unconfig
1137 @mkdir -p $(obj)include
1138 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1139 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1140 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1142 uc100_config : unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1145 v37_config: unconfig
1146 @mkdir -p $(obj)include
1147 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1148 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1149 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1151 wtk_config: unconfig
1152 @mkdir -p $(obj)include
1153 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1154 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1155 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1157 #########################################################################
1159 #########################################################################
1160 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1162 acadia_config: unconfig
1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1165 acadia_nand_config: unconfig
1166 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1167 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1168 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1169 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1170 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1171 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1173 ADCIOP_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1176 alpr_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1179 AP1000_config:unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1182 APC405_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1185 AR405_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1188 ASH405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1191 bamboo_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1194 bamboo_nand_config: unconfig
1195 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1196 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1197 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1198 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1199 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1200 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1202 bubinga_config: unconfig
1203 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1205 CANBT_config: unconfig
1206 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1208 # Canyonlands & Glacier use different U-Boot images
1209 canyonlands_config \
1210 glacier_config: unconfig
1211 @mkdir -p $(obj)include
1212 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1213 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1214 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1216 canyonlands_nand_config \
1217 glacier_nand_config: unconfig
1218 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1219 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1220 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1221 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1222 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1223 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1224 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1225 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1228 CATcenter_25_config \
1229 CATcenter_33_config: unconfig
1230 @mkdir -p $(obj)include
1231 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1232 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1233 @[ -z "$(findstring _25,$@)" ] || \
1234 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1235 $(XECHO) "SysClk = 25MHz" ; \
1237 @[ -z "$(findstring _33,$@)" ] || \
1238 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1239 $(XECHO) "SysClk = 33MHz" ; \
1241 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1243 CMS700_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1246 CPCI2DP_config: unconfig
1247 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1249 CPCI405_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1254 CPCI405AB_config: unconfig
1255 @mkdir -p $(obj)board/esd/cpci405
1256 @echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1259 CPCIISER4_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1262 CRAYL1_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1265 csb272_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1268 csb472_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1271 DASA_SIM_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1274 DP405_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1277 DU405_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1280 DU440_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1283 ebony_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1286 ERIC_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1289 EXBITGEN_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1292 G2000_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1295 hcu4_config: unconfig
1296 @mkdir -p $(obj)board/netstal/common
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1299 hcu5_config: unconfig
1300 @mkdir -p $(obj)board/netstal/common
1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1303 HH405_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1306 HUB405_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1309 JSE_config: unconfig
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1312 KAREF_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1315 katmai_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1318 # Kilauea & Haleakala images are identical (recognized via PVR)
1320 haleakala_config: unconfig
1321 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1323 kilauea_nand_config \
1324 haleakala_nand_config: unconfig
1325 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1326 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1327 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1328 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1329 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1330 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1332 korat_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1335 luan_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1338 lwmon5_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1341 makalu_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1344 mcu25_config: unconfig
1345 @mkdir -p $(obj)board/netstal/common
1346 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1348 METROBOX_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1351 MIP405_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1354 MIP405T_config: unconfig
1355 @mkdir -p $(obj)include
1356 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1357 @$(XECHO) "Enable subset config for MIP405T"
1358 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1360 ML2_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1363 ml300_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1366 ml507_flash_config: unconfig
1367 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1368 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1369 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1370 > $(obj)board/xilinx/ml507/config.tmp
1371 @echo "TEXT_BASE := 0xFE360000" \
1372 >> $(obj)board/xilinx/ml507/config.tmp
1373 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1375 ml507_config: unconfig
1376 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1377 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1378 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1379 > $(obj)board/xilinx/ml507/config.tmp
1380 @echo "TEXT_BASE := 0x04000000" \
1381 >> $(obj)board/xilinx/ml507/config.tmp
1382 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1384 ocotea_config: unconfig
1385 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1388 ORSG_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1391 p3p440_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1394 PCI405_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1397 pcs440ep_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1400 PIP405_config: unconfig
1401 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1403 PLU405_config: unconfig
1404 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1406 PMC405_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1409 PMC440_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1412 PPChameleonEVB_config \
1413 PPChameleonEVB_BA_25_config \
1414 PPChameleonEVB_ME_25_config \
1415 PPChameleonEVB_HI_25_config \
1416 PPChameleonEVB_BA_33_config \
1417 PPChameleonEVB_ME_33_config \
1418 PPChameleonEVB_HI_33_config: unconfig
1419 @mkdir -p $(obj)include
1420 @[ -z "$(findstring EVB_BA,$@)" ] || \
1421 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1422 $(XECHO) "... BASIC model" ; \
1424 @[ -z "$(findstring EVB_ME,$@)" ] || \
1425 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1426 $(XECHO) "... MEDIUM model" ; \
1428 @[ -z "$(findstring EVB_HI,$@)" ] || \
1429 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1430 $(XECHO) "... HIGH-END model" ; \
1432 @[ -z "$(findstring _25,$@)" ] || \
1433 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1434 $(XECHO) "SysClk = 25MHz" ; \
1436 @[ -z "$(findstring _33,$@)" ] || \
1437 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1438 $(XECHO) "SysClk = 33MHz" ; \
1440 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1442 quad100hd_config: unconfig
1443 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1445 redwood_config: unconfig
1446 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1448 sbc405_config: unconfig
1449 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1452 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1455 rainier_config: unconfig
1456 @mkdir -p $(obj)include
1457 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1458 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1459 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1461 sequoia_nand_config \
1462 rainier_nand_config: unconfig
1463 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1464 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1465 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1466 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1467 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1468 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1469 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1470 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1472 taihu_config: unconfig
1473 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1475 taishan_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1478 v5fx30teval_config: unconfig
1479 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1480 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1481 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1482 > $(obj)board/avnet/v5fx30teval/config.tmp
1483 @echo "TEXT_BASE := 0x03000000" \
1484 >> $(obj)board/avnet/v5fx30teval/config.tmp
1485 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1487 v5fx30teval_flash_config: unconfig
1488 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1489 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1490 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1491 > $(obj)board/avnet/v5fx30teval/config.tmp
1492 @echo "TEXT_BASE := 0xFF1C0000" \
1493 >> $(obj)board/avnet/v5fx30teval/config.tmp
1494 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1496 VOH405_config: unconfig
1497 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1499 VOM405_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1503 W7OLMG_config: unconfig
1504 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1506 # Walnut & Sycamore images are identical (recognized via PVR)
1508 sycamore_config: unconfig
1509 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1511 WUH405_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1514 xilinx-ppc440-generic_flash_config: unconfig
1515 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1516 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1517 > $(obj)board/xilinx/ppc440-generic/config.tmp
1518 @echo "TEXT_BASE := 0xFE360000" \
1519 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1520 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1522 xilinx-ppc440-generic_config: unconfig
1523 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1524 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1525 > $(obj)board/xilinx/ppc440-generic/config.tmp
1526 @echo "TEXT_BASE := 0x04000000" \
1527 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1528 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1530 XPEDITE1K_config: unconfig
1531 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1534 yellowstone_config: unconfig
1535 @mkdir -p $(obj)include
1536 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1537 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1538 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1540 yucca_config: unconfig
1541 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1543 zeus_config: unconfig
1544 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1546 #########################################################################
1548 #########################################################################
1551 Yukon8220_config: unconfig
1552 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1554 sorcery_config: unconfig
1555 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1557 #########################################################################
1559 #########################################################################
1560 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1562 A3000_config: unconfig
1563 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1565 barco_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1568 BMW_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1572 CPC45_ROMBOOT_config: unconfig
1573 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
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;
1584 CU824_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1587 debris_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1590 eXalion_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1593 HIDDEN_DRAGON_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1596 kvme080_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1599 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1601 #linkstation_HDLAN_config \
1602 # Remove this line when HDLAN is fixed
1603 linkstation_HGLAN_config: unconfig
1604 @mkdir -p $(obj)include
1606 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1607 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1609 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1611 MOUSSE_config: unconfig
1612 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1614 MUSENKI_config: unconfig
1615 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1617 MVBLUE_config: unconfig
1618 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1620 OXC_config: unconfig
1621 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1623 PN62_config: unconfig
1624 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1626 Sandpoint8240_config: unconfig
1627 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1629 Sandpoint8245_config: unconfig
1630 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1632 sbc8240_config: unconfig
1633 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1635 SL8245_config: unconfig
1636 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1638 utx8245_config: unconfig
1639 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1641 #########################################################################
1643 #########################################################################
1645 atc_config: unconfig
1646 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1648 cogent_mpc8260_config: unconfig
1649 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1652 CPU86_ROMBOOT_config: unconfig
1653 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1654 @cd $(obj)include ; \
1655 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1656 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1657 $(XECHO) "... booting from 8-bit flash" ; \
1659 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1660 $(XECHO) "... booting from 64-bit flash" ; \
1662 echo "export CONFIG_BOOT_ROM" >> config.mk;
1665 CPU87_ROMBOOT_config: unconfig
1666 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1667 @cd $(obj)include ; \
1668 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1669 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1670 $(XECHO) "... booting from 8-bit flash" ; \
1672 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1673 $(XECHO) "... booting from 64-bit flash" ; \
1675 echo "export CONFIG_BOOT_ROM" >> config.mk;
1678 ep8248E_config : unconfig
1679 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1681 ep8260_config: unconfig
1682 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1684 ep82xxm_config: unconfig
1685 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1687 gw8260_config: unconfig
1688 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1690 hymod_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1693 IDS8247_config: unconfig
1694 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1696 IPHASE4539_config: unconfig
1697 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1700 ISPAN_REVB_config: unconfig
1701 @mkdir -p $(obj)include
1702 @if [ "$(findstring _REVB_,$@)" ] ; then \
1703 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1705 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1707 mgcoge_config : unconfig
1708 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1711 MPC8260ADS_lowboot_config \
1712 MPC8260ADS_33MHz_config \
1713 MPC8260ADS_33MHz_lowboot_config \
1714 MPC8260ADS_40MHz_config \
1715 MPC8260ADS_40MHz_lowboot_config \
1717 MPC8272ADS_lowboot_config \
1719 PQ2FADS_lowboot_config \
1721 PQ2FADS-VR_lowboot_config \
1723 PQ2FADS-ZU_lowboot_config \
1724 PQ2FADS-ZU_66MHz_config \
1725 PQ2FADS-ZU_66MHz_lowboot_config \
1727 @mkdir -p $(obj)include
1728 @mkdir -p $(obj)board/freescale/mpc8260ads
1729 $(if $(findstring PQ2FADS,$@), \
1730 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1731 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1732 $(if $(findstring MHz,$@), \
1733 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1734 $(if $(findstring VR,$@), \
1735 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1736 @[ -z "$(findstring lowboot_,$@)" ] || \
1737 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1738 $(XECHO) "... with lowboot configuration" ; \
1740 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1742 MPC8266ADS_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1745 muas3001_dev_config \
1746 muas3001_config : unconfig
1747 @mkdir -p $(obj)include
1748 @mkdir -p $(obj)board/muas3001
1749 @if [ "$(findstring dev,$@)" ] ; then \
1750 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1752 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1754 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1756 PM825_ROMBOOT_config \
1757 PM825_BIGFLASH_config \
1758 PM825_ROMBOOT_BIGFLASH_config \
1760 PM826_ROMBOOT_config \
1761 PM826_BIGFLASH_config \
1762 PM826_ROMBOOT_BIGFLASH_config: unconfig
1763 @mkdir -p $(obj)include
1764 @mkdir -p $(obj)board/pm826
1765 @if [ "$(findstring PM825_,$@)" ] ; then \
1766 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1768 >$(obj)include/config.h ; \
1770 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1771 $(XECHO) "... booting from 8-bit flash" ; \
1772 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1773 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1774 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1775 $(XECHO) "... with 32 MB Flash" ; \
1776 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1779 $(XECHO) "... booting from 64-bit flash" ; \
1780 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1781 $(XECHO) "... with 32 MB Flash" ; \
1782 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1783 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1785 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1788 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1792 PM828_ROMBOOT_config \
1793 PM828_ROMBOOT_PCI_config: unconfig
1794 @mkdir -p $(obj)include
1795 @mkdir -p $(obj)board/pm826
1796 @if [ "$(findstring _PCI_,$@)" ] ; then \
1797 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1798 $(XECHO) "... with PCI enabled" ; \
1800 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1801 $(XECHO) "... booting from 8-bit flash" ; \
1802 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1803 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1805 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1807 ppmc8260_config: unconfig
1808 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1810 Rattler8248_config \
1811 Rattler_config: unconfig
1812 @mkdir -p $(obj)include
1813 $(if $(findstring 8248,$@), \
1814 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1815 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1817 RPXsuper_config: unconfig
1818 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1820 rsdproto_config: unconfig
1821 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1823 sacsng_config: unconfig
1824 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1826 sbc8260_config: unconfig
1827 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1829 SCM_config: unconfig
1830 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1842 TQM8265_AA_config: unconfig
1843 @mkdir -p $(obj)include
1845 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1846 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1847 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1848 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1849 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1850 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1851 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1852 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1853 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1854 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1855 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1857 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1858 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1860 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1861 echo "... with $${CFREQ}MHz system clock" ; \
1862 if [ "$${CACHE}" = "yes" ] ; then \
1863 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1864 $(XECHO) "... with L2 Cache support" ; \
1866 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1867 $(XECHO) "... without L2 Cache support" ; \
1869 if [ "$${BMODE}" = "60x" ] ; then \
1870 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1871 $(XECHO) "... with 60x Bus Mode" ; \
1873 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1874 $(XECHO) "... without 60x Bus Mode" ; \
1876 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1878 TQM8272_config: unconfig
1879 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1881 VoVPN-GW_66MHz_config \
1882 VoVPN-GW_100MHz_config: unconfig
1883 @mkdir -p $(obj)include
1884 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1885 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1887 ZPC1900_config: unconfig
1888 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1890 #########################################################################
1892 #########################################################################
1894 M52277EVB_config: unconfig
1895 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1898 M5235EVB_Flash16_config \
1899 M5235EVB_Flash32_config: unconfig
1901 M5235EVB_config) FLASH=16;; \
1902 M5235EVB_Flash16_config) FLASH=16;; \
1903 M5235EVB_Flash32_config) FLASH=32;; \
1905 if [ "$${FLASH}" != "16" ] ; then \
1906 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1907 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1908 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1910 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1911 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1913 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1915 M5249EVB_config : unconfig
1916 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1918 M5253DEMO_config : unconfig
1919 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1921 M5253EVBE_config : unconfig
1922 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1924 cobra5272_config : unconfig
1925 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1927 EB+MCF-EV123_config : unconfig
1928 @mkdir -p $(obj)include
1929 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1930 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1931 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1933 EB+MCF-EV123_internal_config : unconfig
1934 @mkdir -p $(obj)include
1935 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1936 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1937 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1939 idmr_config : unconfig
1940 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1942 M5271EVB_config : unconfig
1943 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1945 M5272C3_config : unconfig
1946 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1948 M5275EVB_config : unconfig
1949 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1951 M5282EVB_config : unconfig
1952 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1955 M5329BFEE_config : unconfig
1957 M5329AFEE_config) NAND=0;; \
1958 M5329BFEE_config) NAND=16;; \
1960 if [ "$${NAND}" != "0" ] ; then \
1961 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1963 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1965 M5373EVB_config : unconfig
1967 M5373EVB_config) NAND=16;; \
1969 if [ "$${NAND}" != "0" ] ; then \
1970 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1972 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1975 M54451EVB_spansion_config \
1976 M54451EVB_stmicro_config : unconfig
1978 M54451EVB_config) FLASH=SPANSION;; \
1979 M54451EVB_spansion_config) FLASH=SPANSION;; \
1980 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1982 if [ "$${FLASH}" = "SPANSION" ] ; then \
1983 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1984 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1985 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1986 $(XECHO) "... with SPANSION boot..." ; \
1988 if [ "$${FLASH}" = "STMICRO" ] ; then \
1989 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1990 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1991 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1992 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1993 $(XECHO) "... with ST Micro boot..." ; \
1995 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1996 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1999 M54455EVB_atmel_config \
2000 M54455EVB_intel_config \
2001 M54455EVB_a33_config \
2002 M54455EVB_a66_config \
2003 M54455EVB_i33_config \
2004 M54455EVB_i66_config \
2005 M54455EVB_stm33_config : unconfig
2007 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2008 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2009 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2010 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2011 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2012 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2013 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2014 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2016 if [ "$${FLASH}" = "INTEL" ] ; then \
2017 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
2018 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2019 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2020 $(XECHO) "... with INTEL boot..." ; \
2022 if [ "$${FLASH}" = "ATMEL" ] ; then \
2023 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
2024 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2025 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2026 $(XECHO) "... with ATMEL boot..." ; \
2028 if [ "$${FLASH}" = "STMICRO" ] ; then \
2029 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2030 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
2031 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2032 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2033 $(XECHO) "... with ST Micro boot..." ; \
2035 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2036 $(XECHO) "... with $${FREQ}Hz input clock"
2037 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2045 M5475GFE_config : unconfig
2047 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2048 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2049 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2050 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2051 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2052 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2053 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2055 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
2056 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2057 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2058 if [ "$${RAM1}" != "0" ] ; then \
2059 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2061 if [ "$${CODE}" != "0" ] ; then \
2062 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2064 if [ "$${VID}" == "1" ] ; then \
2065 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2067 if [ "$${USB}" == "1" ] ; then \
2068 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2070 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2079 M5485HFE_config : unconfig
2081 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2082 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2083 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2084 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2085 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2086 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2087 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2088 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2090 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2091 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2092 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2093 if [ "$${RAM1}" != "0" ] ; then \
2094 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2096 if [ "$${CODE}" != "0" ] ; then \
2097 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2099 if [ "$${VID}" == "1" ] ; then \
2100 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2102 if [ "$${USB}" == "1" ] ; then \
2103 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2105 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2107 TASREG_config : unconfig
2108 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2110 #########################################################################
2112 #########################################################################
2114 MPC8313ERDB_33_config \
2115 MPC8313ERDB_66_config \
2116 MPC8313ERDB_NAND_33_config \
2117 MPC8313ERDB_NAND_66_config: unconfig
2118 @mkdir -p $(obj)include
2119 @mkdir -p $(obj)board/freescale/mpc8313erdb
2120 @if [ "$(findstring _33_,$@)" ] ; then \
2121 $(XECHO) -n "...33M ..." ; \
2122 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2124 if [ "$(findstring _66_,$@)" ] ; then \
2125 $(XECHO) -n "...66M..." ; \
2126 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2128 if [ "$(findstring _NAND_,$@)" ] ; then \
2129 $(XECHO) -n "...NAND..." ; \
2130 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2131 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2133 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2134 @if [ "$(findstring _NAND_,$@)" ] ; then \
2135 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2138 MPC8315ERDB_config: unconfig
2139 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2141 MPC8323ERDB_config: unconfig
2142 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2144 MPC832XEMDS_config \
2145 MPC832XEMDS_HOST_33_config \
2146 MPC832XEMDS_HOST_66_config \
2147 MPC832XEMDS_SLAVE_config \
2148 MPC832XEMDS_ATM_config: unconfig
2149 @mkdir -p $(obj)include
2150 @if [ "$(findstring _HOST_,$@)" ] ; then \
2151 $(XECHO) -n "... PCI HOST " ; \
2152 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2154 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2155 $(XECHO) "...PCI SLAVE 66M" ; \
2156 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2157 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2159 if [ "$(findstring _33_,$@)" ] ; then \
2160 $(XECHO) -n "...33M ..." ; \
2161 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2162 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2164 if [ "$(findstring _66_,$@)" ] ; then \
2165 $(XECHO) -n "...66M..." ; \
2166 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2167 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2169 if [ "$(findstring _ATM_,$@)" ] ; then \
2170 $(XECHO) -n "...ATM..." ; \
2171 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2172 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2174 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2176 MPC8349EMDS_config: unconfig
2177 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2180 MPC8349ITX_LOWBOOT_config \
2181 MPC8349ITXGP_config: unconfig
2182 @mkdir -p $(obj)include
2183 @mkdir -p $(obj)board/freescale/mpc8349itx
2184 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2185 @if [ "$(findstring GP,$@)" ] ; then \
2186 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2188 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2189 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2191 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2193 MPC8360EMDS_config \
2194 MPC8360EMDS_HOST_33_config \
2195 MPC8360EMDS_HOST_66_config \
2196 MPC8360EMDS_SLAVE_config \
2197 MPC8360EMDS_ATM_config: unconfig
2198 @mkdir -p $(obj)include
2199 @if [ "$(findstring _HOST_,$@)" ] ; then \
2200 $(XECHO) -n "... PCI HOST " ; \
2201 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2203 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2204 $(XECHO) "...PCI SLAVE 66M" ; \
2205 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2206 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2208 if [ "$(findstring _33_,$@)" ] ; then \
2209 $(XECHO) -n "...33M ..." ; \
2210 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2211 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2213 if [ "$(findstring _66_,$@)" ] ; then \
2214 $(XECHO) -n "...66M..." ; \
2215 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2216 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2218 if [ "$(findstring _ATM_,$@)" ] ; then \
2219 $(XECHO) -n "...ATM..." ; \
2220 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2221 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2223 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2225 MPC8360ERDK_33_config \
2226 MPC8360ERDK_66_config \
2227 MPC8360ERDK_config: unconfig
2228 @mkdir -p $(obj)include
2229 @if [ "$(findstring _33_,$@)" ] ; then \
2230 $(XECHO) -n "... CLKIN 33MHz " ; \
2231 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2233 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2235 MPC837XEMDS_config \
2236 MPC837XEMDS_HOST_config: unconfig
2237 @mkdir -p $(obj)include
2238 @if [ "$(findstring _HOST_,$@)" ] ; then \
2239 $(XECHO) -n "... PCI HOST " ; \
2240 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2242 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2244 MPC837XERDB_config: unconfig
2245 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2247 MVBLM7_config: unconfig
2248 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2250 sbc8349_config: unconfig
2251 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2253 TQM834x_config: unconfig
2254 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2257 #########################################################################
2259 #########################################################################
2261 ATUM8548_config: unconfig
2262 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2264 MPC8536DS_config: unconfig
2265 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2267 MPC8540ADS_config: unconfig
2268 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2270 MPC8540EVAL_config \
2271 MPC8540EVAL_33_config \
2272 MPC8540EVAL_66_config \
2273 MPC8540EVAL_33_slave_config \
2274 MPC8540EVAL_66_slave_config: unconfig
2275 @mkdir -p $(obj)include
2276 @if [ "$(findstring _33_,$@)" ] ; then \
2277 $(XECHO) "... 33 MHz PCI" ; \
2279 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2280 $(XECHO) "... 66 MHz PCI" ; \
2282 if [ "$(findstring _slave_,$@)" ] ; then \
2283 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2284 $(XECHO) " slave" ; \
2286 $(XECHO) " host" ; \
2288 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2290 MPC8560ADS_config: unconfig
2291 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2293 MPC8541CDS_legacy_config \
2294 MPC8541CDS_config: unconfig
2295 @mkdir -p $(obj)include
2296 @if [ "$(findstring _legacy_,$@)" ] ; then \
2297 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2298 $(XECHO) "... legacy" ; \
2300 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2302 MPC8544DS_config: unconfig
2303 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2305 MPC8548CDS_legacy_config \
2306 MPC8548CDS_config: unconfig
2307 @mkdir -p $(obj)include
2308 @if [ "$(findstring _legacy_,$@)" ] ; then \
2309 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2310 $(XECHO) "... legacy" ; \
2312 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2314 MPC8555CDS_legacy_config \
2315 MPC8555CDS_config: unconfig
2316 @mkdir -p $(obj)include
2317 @if [ "$(findstring _legacy_,$@)" ] ; then \
2318 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2319 $(XECHO) "... legacy" ; \
2321 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2323 MPC8568MDS_config: unconfig
2324 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2326 MPC8572DS_config: unconfig
2327 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2329 PM854_config: unconfig
2330 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2332 PM856_config: unconfig
2333 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2337 sbc8540_66_config: unconfig
2338 @mkdir -p $(obj)include
2339 @if [ "$(findstring _66_,$@)" ] ; then \
2340 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2341 $(XECHO) "... 66 MHz PCI" ; \
2343 $(XECHO) "... 33 MHz PCI" ; \
2345 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2347 sbc8548_config: unconfig
2348 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2352 sbc8560_66_config: unconfig
2353 @mkdir -p $(obj)include
2354 @if [ "$(findstring _66_,$@)" ] ; then \
2355 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2356 $(XECHO) "... 66 MHz PCI" ; \
2358 $(XECHO) "... 33 MHz PCI" ; \
2360 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2362 socrates_config: unconfig
2363 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2365 stxgp3_config: unconfig
2366 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2369 stxssa_4M_config: unconfig
2370 @mkdir -p $(obj)include
2371 @if [ "$(findstring _4M_,$@)" ] ; then \
2372 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2373 $(XECHO) "... with 4 MiB flash memory" ; \
2375 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2381 TQM8560_config: unconfig
2382 @mkdir -p $(obj)include
2383 @CTYPE=$(subst TQM,,$(@:_config=)); \
2384 $(XECHO) "... TQM"$${CTYPE}; \
2385 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2386 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2387 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2388 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2389 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2391 #########################################################################
2393 #########################################################################
2395 MPC8610HPCD_config: unconfig
2396 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2398 MPC8641HPCN_config: unconfig
2399 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2401 sbc8641d_config: unconfig
2402 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2404 #########################################################################
2406 #########################################################################
2408 AmigaOneG3SE_config: unconfig
2409 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2411 BAB7xx_config: unconfig
2412 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2414 CPCI750_config: unconfig
2415 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2417 DB64360_config: unconfig
2418 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2420 DB64460_config: unconfig
2421 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2423 ELPPC_config: unconfig
2424 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2427 EVB64260_750CX_config: unconfig
2428 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2430 mpc7448hpc2_config: unconfig
2431 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2433 P3G4_config: unconfig
2434 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2437 p3m7448_config: unconfig
2438 @mkdir -p $(obj)include
2439 @if [ "$(findstring 750_,$@)" ] ; then \
2440 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2442 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2444 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2447 PCIPPC6_config: unconfig
2448 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2450 ppmc7xx_config: unconfig
2451 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2453 ZUMA_config: unconfig
2454 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2456 #========================================================================
2458 #========================================================================
2459 #########################################################################
2460 ## StrongARM Systems
2461 #########################################################################
2463 assabet_config : unconfig
2464 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2466 dnp1110_config : unconfig
2467 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2469 gcplus_config : unconfig
2470 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2472 lart_config : unconfig
2473 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2475 shannon_config : unconfig
2476 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2478 #########################################################################
2480 #########################################################################
2482 #########################################################################
2483 ## Atmel AT91RM9200 Systems
2484 #########################################################################
2486 at91rm9200dk_config : unconfig
2487 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2489 at91sam9261ek_config : unconfig
2490 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2492 at91sam9263ek_config : unconfig
2493 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2495 at91sam9rlek_config : unconfig
2496 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2498 cmc_pu2_config : unconfig
2499 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2501 csb637_config : unconfig
2502 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2504 kb9202_config : unconfig
2505 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2507 m501sk_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2510 mp2usb_config : unconfig
2511 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2513 #########################################################################
2514 ## Atmel ARM926EJ-S Systems
2515 #########################################################################
2517 at91cap9adk_config : unconfig
2518 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2520 at91sam9260ek_config : unconfig
2521 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2523 ########################################################################
2524 ## ARM Integrator boards - see doc/README-integrator for more info.
2525 integratorap_config \
2534 ap946es_config: unconfig
2535 @board/integratorap/split_by_variant.sh $@
2537 integratorcp_config \
2546 cp1026_config: unconfig
2547 @board/integratorcp/split_by_variant.sh $@
2549 davinci_dvevm_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2552 davinci_schmoogie_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2555 davinci_sffsdr_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2558 davinci_sonata_config : unconfig
2559 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2562 lpd7a404_config: unconfig
2563 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2565 mx1ads_config : unconfig
2566 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2568 mx1fs2_config : unconfig
2569 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2571 netstar_config: unconfig
2572 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2574 omap1510inn_config : unconfig
2575 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2577 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2579 omap1610inn_config \
2580 omap1610inn_cs0boot_config \
2581 omap1610inn_cs3boot_config \
2582 omap1610inn_cs_autoboot_config \
2584 omap1610h2_cs0boot_config \
2585 omap1610h2_cs3boot_config \
2586 omap1610h2_cs_autoboot_config: unconfig
2587 @mkdir -p $(obj)include
2588 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2589 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2590 $(XECHO) "... configured for CS0 boot"; \
2591 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2592 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2593 $(XECHO) "... configured for CS_AUTO boot"; \
2595 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2596 $(XECHO) "... configured for CS3 boot"; \
2598 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2600 omap5912osk_config : unconfig
2601 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2603 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2606 omap730p2_cs0boot_config \
2607 omap730p2_cs3boot_config : unconfig
2608 @mkdir -p $(obj)include
2609 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2610 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2611 $(XECHO) "... configured for CS0 boot"; \
2613 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2614 $(XECHO) "... configured for CS3 boot"; \
2616 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2618 sbc2410x_config: unconfig
2619 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2621 scb9328_config : unconfig
2622 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2624 smdk2400_config : unconfig
2625 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2627 smdk2410_config : unconfig
2628 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2630 SX1_config : unconfig
2631 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2633 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2634 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2637 trab_bigram_config \
2638 trab_bigflash_config \
2639 trab_old_config: unconfig
2640 @mkdir -p $(obj)include
2641 @mkdir -p $(obj)board/trab
2642 @[ -z "$(findstring _bigram,$@)" ] || \
2643 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2644 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2645 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2647 @[ -z "$(findstring _bigflash,$@)" ] || \
2648 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2649 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2650 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2651 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2653 @[ -z "$(findstring _old,$@)" ] || \
2654 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2655 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2656 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2657 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2659 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2661 VCMA9_config : unconfig
2662 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2664 #########################################################################
2665 # ARM supplied Versatile development boards
2666 #########################################################################
2668 cm4008_config : unconfig
2669 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2671 cm41xx_config : unconfig
2672 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2675 versatileab_config \
2676 versatilepb_config : unconfig
2677 @board/versatile/split_by_variant.sh $@
2679 voiceblue_config: unconfig
2680 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2682 #########################################################################
2684 #########################################################################
2686 B2_config : unconfig
2687 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2689 #########################################################################
2691 #########################################################################
2693 armadillo_config: unconfig
2694 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2696 ep7312_config : unconfig
2697 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2699 impa7_config : unconfig
2700 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2702 modnet50_config : unconfig
2703 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2705 evb4510_config : unconfig
2706 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2708 lpc2292sodimm_config: unconfig
2709 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2711 SMN42_config : unconfig
2712 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2714 #########################################################################
2716 #########################################################################
2718 actux1_config : unconfig
2719 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2721 actux2_config : unconfig
2722 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2724 actux3_config : unconfig
2725 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2727 actux4_config : unconfig
2728 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2730 cerf250_config : unconfig
2731 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2733 cradle_config : unconfig
2734 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2736 csb226_config : unconfig
2737 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2739 delta_config : unconfig
2740 @$(MKCONFIG) $(@:_config=) arm pxa delta
2742 innokom_config : unconfig
2743 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2745 ixdp425_config : unconfig
2746 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2748 ixdpg425_config : unconfig
2749 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2751 lubbock_config : unconfig
2752 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2754 pleb2_config : unconfig
2755 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2757 logodl_config : unconfig
2758 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2761 scpu_config: unconfig
2762 @mkdir -p $(obj)include
2763 @if [ "$(findstring scpu_,$@)" ] ; then \
2764 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2765 $(XECHO) "... on SCPU board variant" ; \
2767 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2769 pxa255_idp_config: unconfig
2770 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2772 trizepsiv_config : unconfig
2773 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2775 wepep250_config : unconfig
2776 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2778 xaeniax_config : unconfig
2779 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2781 xm250_config : unconfig
2782 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2784 xsengine_config : unconfig
2785 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2788 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2790 #########################################################################
2792 #########################################################################
2794 apollon_config : unconfig
2795 @mkdir -p $(obj)include
2796 @mkdir -p $(obj)onenand_ipl/board/apollon
2797 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2798 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2799 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2801 imx31_litekit_config : unconfig
2802 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2804 imx31_phycore_config : unconfig
2805 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2807 mx31ads_config : unconfig
2808 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2810 omap2420h4_config : unconfig
2811 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2813 #########################################################################
2815 #########################################################################
2816 smdk6400_noUSB_config \
2817 smdk6400_config : unconfig
2818 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2819 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2820 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2821 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2822 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2823 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2825 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2826 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
2828 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2830 #========================================================================
2832 #========================================================================
2833 #########################################################################
2835 #########################################################################
2836 sc520_cdp_config : unconfig
2837 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2839 sc520_spunk_config : unconfig
2840 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2842 sc520_spunk_rel_config : unconfig
2843 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2845 #========================================================================
2847 #========================================================================
2848 #########################################################################
2850 #########################################################################
2852 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2854 incaip_100MHz_config \
2855 incaip_133MHz_config \
2856 incaip_150MHz_config \
2857 incaip_config: unconfig
2858 @mkdir -p $(obj)include
2859 @[ -z "$(findstring _100MHz,$@)" ] || \
2860 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2861 $(XECHO) "... with 100MHz system clock" ; \
2863 @[ -z "$(findstring _133MHz,$@)" ] || \
2864 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2865 $(XECHO) "... with 133MHz system clock" ; \
2867 @[ -z "$(findstring _150MHz,$@)" ] || \
2868 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2869 $(XECHO) "... with 150MHz system clock" ; \
2871 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2873 tb0229_config: unconfig
2874 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2876 #########################################################################
2878 #########################################################################
2880 dbau1000_config : unconfig
2881 @mkdir -p $(obj)include
2882 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2883 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2885 dbau1100_config : unconfig
2886 @mkdir -p $(obj)include
2887 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2888 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2890 dbau1500_config : unconfig
2891 @mkdir -p $(obj)include
2892 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2893 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2895 dbau1550_config : unconfig
2896 @mkdir -p $(obj)include
2897 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2898 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2900 dbau1550_el_config : unconfig
2901 @mkdir -p $(obj)include
2902 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2903 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2905 gth2_config : unconfig
2906 @mkdir -p $(obj)include
2907 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2908 @$(MKCONFIG) -a gth2 mips mips gth2
2910 pb1000_config : unconfig
2911 @mkdir -p $(obj)include
2912 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2913 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2915 qemu_mips_config : unconfig
2916 @mkdir -p $(obj)include
2917 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2918 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2920 #########################################################################
2922 #########################################################################
2924 purple_config : unconfig
2925 @$(MKCONFIG) $(@:_config=) mips mips purple
2927 #========================================================================
2929 #========================================================================
2930 #########################################################################
2932 #########################################################################
2934 ADNPESC1_DNPEVA2_base_32_config \
2935 ADNPESC1_base_32_config \
2936 ADNPESC1_config: unconfig
2937 @mkdir -p $(obj)include
2938 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2939 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2940 $(XECHO) "... DNP/EVA2 configuration" ; \
2942 @[ -z "$(findstring _base_32,$@)" ] || \
2943 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2944 $(XECHO) "... NIOS 'base_32' configuration" ; \
2946 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2947 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2948 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2950 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2952 DK1C20_safe_32_config \
2953 DK1C20_standard_32_config \
2954 DK1C20_config: unconfig
2955 @mkdir -p $(obj)include
2956 @[ -z "$(findstring _safe_32,$@)" ] || \
2957 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2958 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2960 @[ -z "$(findstring _standard_32,$@)" ] || \
2961 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2962 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2964 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2965 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2966 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2968 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2970 DK1S10_safe_32_config \
2971 DK1S10_standard_32_config \
2972 DK1S10_mtx_ldk_20_config \
2973 DK1S10_config: unconfig
2974 @mkdir -p $(obj)include
2975 @[ -z "$(findstring _safe_32,$@)" ] || \
2976 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2977 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2979 @[ -z "$(findstring _standard_32,$@)" ] || \
2980 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2981 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2983 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2984 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2985 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2987 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2988 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2989 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2991 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2993 #########################################################################
2995 #########################################################################
2997 EP1C20_config : unconfig
2998 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3000 EP1S10_config : unconfig
3001 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3003 EP1S40_config : unconfig
3004 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3006 PK1C20_config : unconfig
3007 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3009 PCI5441_config : unconfig
3010 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3012 #========================================================================
3014 #========================================================================
3016 ml401_config: unconfig
3017 @mkdir -p $(obj)include
3018 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
3019 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3021 suzaku_config: unconfig
3022 @mkdir -p $(obj)include
3023 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3024 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3026 xupv2p_config: unconfig
3027 @mkdir -p $(obj)include
3028 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
3029 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
3031 #========================================================================
3033 #========================================================================
3035 # Analog Devices boards
3036 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3038 $(BFIN_BOARDS:%=%_config) : unconfig
3039 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3045 #========================================================================
3047 #========================================================================
3049 atngw100_config : unconfig
3050 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3052 atstk1002_config : unconfig
3053 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3055 atstk1003_config : unconfig
3056 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3058 atstk1004_config : unconfig
3059 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3061 atstk1006_config : unconfig
3062 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3064 favr-32-ezkit_config : unconfig
3065 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3067 hammerhead_config : unconfig
3068 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3070 mimc200_config : unconfig
3071 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3073 #========================================================================
3075 #========================================================================
3077 #########################################################################
3078 ## sh2 (Renesas SuperH)
3079 #########################################################################
3080 rsk7203_config: unconfig
3082 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3083 @./mkconfig -a $(@:_config=) sh sh2 rsk7203
3085 #########################################################################
3086 ## sh3 (Renesas SuperH)
3087 #########################################################################
3089 mpr2_config: unconfig
3090 @mkdir -p $(obj)include
3091 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3092 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3094 ms7720se_config: unconfig
3095 @mkdir -p $(obj)include
3096 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3097 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3099 #########################################################################
3100 ## sh4 (Renesas SuperH)
3101 #########################################################################
3103 MigoR_config : unconfig
3104 @mkdir -p $(obj)include
3105 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3106 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3108 ms7750se_config: unconfig
3109 @mkdir -p $(obj)include
3110 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3111 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3113 ms7722se_config : unconfig
3114 @mkdir -p $(obj)include
3115 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3116 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3118 r2dplus_config : unconfig
3119 @mkdir -p $(obj)include
3120 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3121 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus
3123 r7780mp_config: unconfig
3124 @mkdir -p $(obj)include
3125 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3126 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp
3128 sh7763rdp_config : unconfig
3129 @mkdir -p $(obj)include
3130 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3131 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp
3133 sh7785lcr_config : unconfig
3135 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3136 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
3138 ap325rxa_config : unconfig
3139 @mkdir -p $(obj)include
3140 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3141 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa
3143 #========================================================================
3145 #========================================================================
3147 #########################################################################
3149 #########################################################################
3151 # Gaisler GR-XC3S-1500 board
3152 gr_xc3s_1500_config : unconfig
3153 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3155 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3156 gr_cpci_ax2000_config : unconfig
3157 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3159 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3160 # Development board Stratix II edition, FPGA Device EP2S60.
3161 gr_ep2s60_config: unconfig
3162 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3164 # Gaisler LEON3 GRSIM simulator
3165 grsim_config : unconfig
3166 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3168 #########################################################################
3170 #########################################################################
3172 # Gaisler LEON2 GRSIM simulator
3173 grsim_leon2_config : unconfig
3174 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3176 #########################################################################
3177 #########################################################################
3178 #########################################################################
3181 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3182 $(obj)examples/hello_world $(obj)examples/interrupt \
3183 $(obj)examples/mem_to_mem_idma2intr \
3184 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3185 $(obj)examples/test_burst $(obj)examples/timer
3186 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3187 $(obj)tools/env/{fw_printenv,fw_setenv} \
3188 $(obj)tools/envcrc \
3189 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3190 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3191 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3192 $(obj)tools/ncb $(obj)tools/ubsha1
3193 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3194 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3195 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3196 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3197 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3198 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3199 @rm -f $(obj)include/bmp_logo.h
3200 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3201 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3202 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3203 @find $(OBJTREE) -type f \
3204 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3205 -o -name '*.o' -o -name '*.a' \) -print \
3209 @find $(OBJTREE) -type f \( -name .depend \
3210 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3213 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3214 $(obj)cscope.* $(obj)*.*~
3215 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3216 @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3217 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3218 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3219 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3220 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3221 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3222 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3223 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3225 ifeq ($(OBJTREE),$(SRCTREE))
3227 distclean: clobber unconfig
3230 distclean: clobber unconfig
3235 F=`basename $(TOPDIR)` ; cd .. ; \
3236 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3238 #########################################################################