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 TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34 VERSION_FILE = $(obj)include/version_autogenerated.h
36 HOSTARCH := $(shell uname -m | \
45 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
46 sed -e 's/\(cygwin\).*/cygwin/')
48 # Set shell to bash if possible, otherwise fall back to sh
49 SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
53 export HOSTARCH HOSTOS SHELL
55 # Deal with colliding definitions from tcsh etc.
58 #########################################################################
59 # Allow for silent builds
60 ifeq (,$(findstring s,$(MAKEFLAGS)))
66 #########################################################################
68 # U-boot build supports producing a object files to the separate external
69 # directory. Two use cases are supported:
71 # 1) Add O= to the make command line
72 # 'make O=/tmp/build all'
74 # 2) Set environement variable BUILD_DIR to point to the desired location
75 # 'export BUILD_DIR=/tmp/build'
78 # The second approach can also be used with a MAKEALL script
79 # 'export BUILD_DIR=/tmp/build'
82 # Command line 'O=' setting overrides BUILD_DIR environent variable.
84 # When none of the above methods is used the local build is performed and
85 # the object files are placed in the source directory.
89 ifeq ("$(origin O)", "command line")
95 saved-output := $(BUILD_DIR)
97 # Attempt to create a output directory.
98 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
100 # Verify if it was successful.
101 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103 endif # ifneq ($(BUILD_DIR),)
105 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
109 export TOPDIR SRCTREE OBJTREE
111 MKCONFIG := $(SRCTREE)/mkconfig
114 ifneq ($(OBJTREE),$(SRCTREE))
119 # $(obj) and (src) are defined in config.mk but here in main Makefile
120 # we also need them before config.mk is included which is the case for
121 # some targets like unconfig, clean, clobber, distclean, etc.
122 ifneq ($(OBJTREE),$(SRCTREE))
131 # Make sure CDPATH settings don't interfere
134 #########################################################################
136 ifeq ($(ARCH),powerpc)
140 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
142 # load ARCH, BOARD, and CPU configuration
143 include $(obj)include/config.mk
144 export ARCH CPU BOARD VENDOR SOC
147 ifeq ($(HOSTARCH),$(ARCH))
151 CROSS_COMPILE = ppc_8xx-
154 CROSS_COMPILE = arm-linux-
157 CROSS_COMPILE = i386-linux-
160 CROSS_COMPILE = mips_4KC-
163 CROSS_COMPILE = nios-elf-
166 CROSS_COMPILE = nios2-elf-
169 CROSS_COMPILE = m68k-elf-
171 ifeq ($(ARCH),microblaze)
174 ifeq ($(ARCH),blackfin)
175 CROSS_COMPILE = bfin-uclinux-
178 CROSS_COMPILE = avr32-linux-
181 CROSS_COMPILE = sh4-linux-
184 CROSS_COMPILE = sparc-elf-
186 endif # HOSTARCH,ARCH
187 endif # CROSS_COMPILE
191 # load other configuration
192 include $(TOPDIR)/config.mk
194 #########################################################################
195 # U-Boot objects....order is important (i.e. start must be first)
197 OBJS = cpu/$(CPU)/start.o
199 OBJS += cpu/$(CPU)/start16.o
200 OBJS += cpu/$(CPU)/resetvec.o
203 OBJS += cpu/$(CPU)/resetvec.o
205 ifeq ($(CPU),mpc85xx)
206 OBJS += cpu/$(CPU)/resetvec.o
209 OBJS := $(addprefix $(obj),$(OBJS))
211 LIBS = lib_generic/libgeneric.a
212 LIBS += lib_generic/lzma/liblzma.a
213 LIBS += lib_generic/lzo/liblzo.a
214 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
215 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
216 LIBS += cpu/$(CPU)/lib$(CPU).a
218 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
221 LIBS += cpu/ixp/npe/libnpe.a
223 LIBS += lib_$(ARCH)/lib$(ARCH).a
224 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
225 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
228 LIBS += disk/libdisk.a
229 LIBS += drivers/bios_emulator/libatibiosemu.a
230 LIBS += drivers/block/libblock.a
231 LIBS += drivers/dma/libdma.a
232 LIBS += drivers/fpga/libfpga.a
233 LIBS += drivers/gpio/libgpio.a
234 LIBS += drivers/hwmon/libhwmon.a
235 LIBS += drivers/i2c/libi2c.a
236 LIBS += drivers/input/libinput.a
237 LIBS += drivers/misc/libmisc.a
238 LIBS += drivers/mmc/libmmc.a
239 LIBS += drivers/mtd/libmtd.a
240 LIBS += drivers/mtd/nand/libnand.a
241 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
242 LIBS += drivers/mtd/onenand/libonenand.a
243 LIBS += drivers/mtd/ubi/libubi.a
244 LIBS += drivers/mtd/spi/libspi_flash.a
245 LIBS += drivers/net/libnet.a
246 LIBS += drivers/net/phy/libphy.a
247 LIBS += drivers/net/sk98lin/libsk98lin.a
248 LIBS += drivers/pci/libpci.a
249 LIBS += drivers/pcmcia/libpcmcia.a
250 LIBS += drivers/spi/libspi.a
251 ifeq ($(CPU),mpc83xx)
252 LIBS += drivers/qe/qe.a
254 ifeq ($(CPU),mpc85xx)
255 LIBS += drivers/qe/qe.a
256 LIBS += cpu/mpc8xxx/ddr/libddr.a
257 TAG_SUBDIRS += cpu/mpc8xxx
259 ifeq ($(CPU),mpc86xx)
260 LIBS += cpu/mpc8xxx/ddr/libddr.a
261 TAG_SUBDIRS += cpu/mpc8xxx
263 LIBS += drivers/rtc/librtc.a
264 LIBS += drivers/serial/libserial.a
265 LIBS += drivers/usb/libusb.a
266 LIBS += drivers/video/libvideo.a
267 LIBS += common/libcommon.a
268 LIBS += libfdt/libfdt.a
270 LIBS += post/libpost.a
272 LIBS := $(addprefix $(obj),$(LIBS))
273 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
275 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
276 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
279 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
281 # The "tools" are needed early, so put this first
282 # Don't include stuff already done in $(LIBS)
289 ifeq ($(CONFIG_NAND_U_BOOT),y)
291 U_BOOT_NAND = $(obj)u-boot-nand.bin
294 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
295 ONENAND_IPL = onenand_ipl
296 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
299 __OBJS := $(subst $(obj),,$(OBJS))
300 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
302 #########################################################################
303 #########################################################################
305 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
306 ifeq ($(ARCH),blackfin)
307 ALL += $(obj)u-boot.ldr
312 $(obj)u-boot.hex: $(obj)u-boot
313 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
315 $(obj)u-boot.srec: $(obj)u-boot
316 $(OBJCOPY) -O srec $< $@
318 $(obj)u-boot.bin: $(obj)u-boot
319 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
321 $(obj)u-boot.ldr: $(obj)u-boot
322 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
324 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
325 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
327 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
328 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
330 $(obj)u-boot.img: $(obj)u-boot.bin
331 ./tools/mkimage -A $(ARCH) -T firmware -C none \
332 -a $(TEXT_BASE) -e 0 \
333 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
334 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
337 $(obj)u-boot.sha1: $(obj)u-boot.bin
338 $(obj)tools/ubsha1 $(obj)u-boot.bin
340 $(obj)u-boot.dis: $(obj)u-boot
341 $(OBJDUMP) -d $< > $@
343 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
344 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
345 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
346 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
347 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
348 -Map u-boot.map -o u-boot
350 $(OBJS): depend $(obj)include/autoconf.mk
351 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
353 $(LIBS): depend $(obj)include/autoconf.mk $(SUBDIRS)
354 $(MAKE) -C $(dir $(subst $(obj),,$@))
356 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
357 $(MAKE) -C $(dir $(subst $(obj),,$@))
359 $(SUBDIRS): depend $(obj)include/autoconf.mk
362 $(LDSCRIPT): depend $(obj)include/autoconf.mk
363 $(MAKE) -C $(dir $@) $(notdir $@)
365 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
366 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
368 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
369 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
371 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
372 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
374 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
375 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
376 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
379 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
380 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
381 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
384 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
385 @date +'#define U_BOOT_TIME "%T"' >> $@
388 $(MAKE) -C tools/gdb all || exit 1
391 $(MAKE) -C tools/updater all || exit 1
394 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
396 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE)
397 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
399 TAG_SUBDIRS += include
400 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
401 TAG_SUBDIRS += cpu/$(CPU)
402 TAG_SUBDIRS += lib_$(ARCH)
403 TAG_SUBDIRS += fs/cramfs
404 TAG_SUBDIRS += fs/fat
405 TAG_SUBDIRS += fs/fdos
406 TAG_SUBDIRS += fs/jffs2
407 TAG_SUBDIRS += fs/yaffs2
410 TAG_SUBDIRS += common
411 TAG_SUBDIRS += drivers/bios_emulator
412 TAG_SUBDIRS += drivers/block
413 TAG_SUBDIRS += drivers/gpio
414 TAG_SUBDIRS += drivers/hwmon
415 TAG_SUBDIRS += drivers/i2c
416 TAG_SUBDIRS += drivers/input
417 TAG_SUBDIRS += drivers/misc
418 TAG_SUBDIRS += drivers/mmc
419 TAG_SUBDIRS += drivers/mtd
420 TAG_SUBDIRS += drivers/mtd/nand
421 TAG_SUBDIRS += drivers/mtd/nand_legacy
422 TAG_SUBDIRS += drivers/mtd/onenand
423 TAG_SUBDIRS += drivers/mtd/spi
424 TAG_SUBDIRS += drivers/net
425 TAG_SUBDIRS += drivers/net/sk98lin
426 TAG_SUBDIRS += drivers/pci
427 TAG_SUBDIRS += drivers/pcmcia
428 TAG_SUBDIRS += drivers/qe
429 TAG_SUBDIRS += drivers/rtc
430 TAG_SUBDIRS += drivers/serial
431 TAG_SUBDIRS += drivers/spi
432 TAG_SUBDIRS += drivers/usb
433 TAG_SUBDIRS += drivers/video
436 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
437 -name '*.[ch]' -print`
440 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
441 -name '*.[ch]' -print`
443 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
447 $(obj)System.map: $(obj)u-boot
449 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
450 sort > $(obj)System.map
453 # Auto-generate the autoconf.mk file (which is included by all makefiles)
455 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
456 # the dep file is only include in this top level makefile to determine when
457 # to regenerate the autoconf.mk file.
458 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
459 @$(XECHO) Generating $@ ; \
461 : Generate the dependancies ; \
462 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
463 -MQ $(obj)include/autoconf.mk include/common.h > $@
465 $(obj)include/autoconf.mk: $(obj)include/config.h
466 @$(XECHO) Generating $@ ; \
468 : Extract the config macros ; \
469 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
470 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
473 sinclude $(obj)include/autoconf.mk.dep
475 #########################################################################
477 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
478 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
479 $(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
480 dep tags ctags etags cscope $(obj)System.map:
481 @echo "System not configured - see README" >&2
487 git log --no-merges U-Boot-1_1_5.. | \
488 unexpand -a | sed -e 's/\s\s*$$//' > $@
490 include/license.h: tools/bin2header COPYING
491 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
492 #########################################################################
495 @rm -f $(obj)include/config.h $(obj)include/config.mk \
496 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
497 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
499 #========================================================================
501 #========================================================================
503 #########################################################################
505 #########################################################################
507 canmb_config: unconfig
508 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
510 cmi_mpc5xx_config: unconfig
511 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
513 PATI_config: unconfig
514 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
516 #########################################################################
518 #########################################################################
521 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
523 BC3450_config: unconfig
524 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
526 cm5200_config: unconfig
527 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
529 cpci5200_config: unconfig
530 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
533 digsy_mtc_LOWBOOT_config \
534 digsy_mtc_RAMBOOT_config: unconfig
535 @mkdir -p $(obj)include
536 @mkdir -p $(obj)board/digsy_mtc
537 @ >$(obj)include/config.h
538 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
539 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
540 echo "... with LOWBOOT configuration" ; \
542 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
543 { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
544 echo "... with RAMBOOT configuration" ; \
546 @$(MKCONFIG) -a digsy_mtc ppc mpc5xxx digsy_mtc
548 hmi1001_config: unconfig
549 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
552 Lite5200_LOWBOOT_config \
553 Lite5200_LOWBOOT08_config \
554 icecube_5200_config \
555 icecube_5200_LOWBOOT_config \
556 icecube_5200_LOWBOOT08_config \
557 icecube_5200_DDR_config \
558 icecube_5200_DDR_LOWBOOT_config \
559 icecube_5200_DDR_LOWBOOT08_config \
560 icecube_5100_config: unconfig
561 @mkdir -p $(obj)include
562 @mkdir -p $(obj)board/icecube
563 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
564 { if [ "$(findstring DDR,$@)" ] ; \
565 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
566 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
568 $(XECHO) "... with LOWBOOT configuration" ; \
570 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
571 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
572 echo "... with 8 MB flash only" ; \
573 $(XECHO) "... with LOWBOOT configuration" ; \
575 @[ -z "$(findstring DDR,$@)" ] || \
576 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
577 $(XECHO) "... DDR memory revision" ; \
579 @[ -z "$(findstring 5200,$@)" ] || \
580 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
581 $(XECHO) "... with MPC5200 processor" ; \
583 @[ -z "$(findstring 5100,$@)" ] || \
584 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
585 $(XECHO) "... with MGT5100 processor" ; \
587 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
589 jupiter_config: unconfig
590 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
592 inka4x0_config: unconfig
593 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
596 lite5200b_PM_config \
597 lite5200b_LOWBOOT_config: unconfig
598 @mkdir -p $(obj)include
599 @mkdir -p $(obj)board/icecube
600 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
601 @ $(XECHO) "... DDR memory revision"
602 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
603 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
604 @[ -z "$(findstring _PM_,$@)" ] || \
605 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
606 $(XECHO) "... with power management (low-power mode) support" ; \
608 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
609 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
610 $(XECHO) "... with LOWBOOT configuration" ; \
612 @ $(XECHO) "... with MPC5200B processor"
613 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
616 mcc200_SDRAM_config \
617 mcc200_highboot_config \
618 mcc200_COM12_config \
619 mcc200_COM12_SDRAM_config \
620 mcc200_COM12_highboot_config \
621 mcc200_COM12_highboot_SDRAM_config \
622 mcc200_highboot_SDRAM_config \
625 prs200_highboot_config \
626 prs200_highboot_DDR_config: unconfig
627 @mkdir -p $(obj)include
628 @mkdir -p $(obj)board/mcc200
629 @[ -n "$(findstring highboot,$@)" ] || \
630 { $(XECHO) "... with lowboot configuration" ; \
632 @[ -z "$(findstring highboot,$@)" ] || \
633 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
634 $(XECHO) "... with highboot configuration" ; \
636 @[ -n "$(findstring _SDRAM,$@)" ] || \
637 { if [ -n "$(findstring mcc200,$@)" ]; \
639 $(XECHO) "... with DDR" ; \
641 if [ -n "$(findstring _DDR,$@)" ];\
643 $(XECHO) "... with DDR" ; \
645 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
646 $(XECHO) "... with SDRAM" ; \
650 @[ -z "$(findstring _SDRAM,$@)" ] || \
651 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
652 $(XECHO) "... with SDRAM" ; \
654 @[ -z "$(findstring COM12,$@)" ] || \
655 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
656 $(XECHO) "... with console on COM12" ; \
658 @[ -z "$(findstring prs200,$@)" ] || \
659 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
661 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
663 mecp5200_config: unconfig
664 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
666 motionpro_config: unconfig
667 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
669 mucmc52_config: unconfig
670 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
672 munices_config: unconfig
673 @$(MKCONFIG) munices ppc mpc5xxx munices
675 MVBC_P_config: unconfig
676 @mkdir -p $(obj)include
677 @mkdir -p $(obj)board/mvbc_p
678 @ >$(obj)include/config.h
679 @[ -z "$(findstring MVBC_P,$@)" ] || \
680 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
681 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
683 o2dnt_config: unconfig
684 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
686 pf5200_config: unconfig
687 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
691 PM520_ROMBOOT_config \
692 PM520_ROMBOOT_DDR_config: unconfig
693 @mkdir -p $(obj)include
694 @[ -z "$(findstring DDR,$@)" ] || \
695 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
696 $(XECHO) "... DDR memory revision" ; \
698 @[ -z "$(findstring ROMBOOT,$@)" ] || \
699 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
700 $(XECHO) "... booting from 8-bit flash" ; \
702 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
704 smmaco4_config: unconfig
705 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
707 spieval_config: unconfig
708 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
711 TB5200_config: unconfig
712 @mkdir -p $(obj)include
713 @[ -z "$(findstring _B,$@)" ] || \
714 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
715 $(XECHO) "... with MPC5200B processor" ; \
717 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
721 TOP5200_config: unconfig
722 @mkdir -p $(obj)include
723 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
724 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
728 Total5200_lowboot_config \
729 Total5200_Rev2_config \
730 Total5200_Rev2_lowboot_config: unconfig
731 @mkdir -p $(obj)include
732 @mkdir -p $(obj)board/total5200
733 @[ -z "$(findstring 5100,$@)" ] || \
734 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
735 $(XECHO) "... with MGT5100 processor" ; \
737 @[ -z "$(findstring 5200,$@)" ] || \
738 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
739 $(XECHO) "... with MPC5200 processor" ; \
741 @[ -n "$(findstring Rev,$@)" ] || \
742 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
743 $(XECHO) "... revision 1 board" ; \
745 @[ -z "$(findstring Rev2_,$@)" ] || \
746 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
747 $(XECHO) "... revision 2 board" ; \
749 @[ -z "$(findstring lowboot_,$@)" ] || \
750 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
751 $(XECHO) "... with lowboot configuration" ; \
753 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
756 cam5200_niosflash_config \
760 TQM5200S_HIGHBOOT_config \
762 TQM5200_B_HIGHBOOT_config \
764 TQM5200_STK100_config: unconfig
765 @mkdir -p $(obj)include
766 @mkdir -p $(obj)board/tqc/tqm5200
767 @[ -z "$(findstring cam5200,$@)" ] || \
768 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
769 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
770 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
771 $(XECHO) "... TQM5200S on Cam5200" ; \
773 @[ -z "$(findstring niosflash,$@)" ] || \
774 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
775 $(XECHO) "... with NIOS flash driver" ; \
777 @[ -z "$(findstring fo300,$@)" ] || \
778 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
779 $(XECHO) "... TQM5200 on FO300" ; \
781 @[ -z "$(findstring MiniFAP,$@)" ] || \
782 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
783 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
785 @[ -z "$(findstring STK100,$@)" ] || \
786 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
787 $(XECHO) "... on a STK52XX.100 base board" ; \
789 @[ -z "$(findstring TQM5200_B,$@)" ] || \
790 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
792 @[ -z "$(findstring TQM5200S,$@)" ] || \
793 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
794 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
796 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
797 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
799 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
801 uc101_config: unconfig
802 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
804 v38b_config: unconfig
805 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
807 #########################################################################
809 #########################################################################
812 ads5121_rev2_config \
814 @mkdir -p $(obj)include
815 @if [ "$(findstring rev2,$@)" ] ; then \
816 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
818 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
821 #########################################################################
823 #########################################################################
829 @mkdir -p $(obj)include
830 $(if $(findstring AdderII,$@), \
831 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
832 @$(MKCONFIG) -a Adder ppc mpc8xx adder
834 AdderUSB_config: unconfig
835 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
842 FADS860T_config: unconfig
843 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
845 AMX860_config : unconfig
846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
848 c2mon_config: unconfig
849 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
852 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
854 cogent_mpc8xx_config: unconfig
855 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
857 ELPT860_config: unconfig
858 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
860 EP88x_config: unconfig
861 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
863 ESTEEM192E_config: unconfig
864 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
866 ETX094_config : unconfig
867 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
869 FLAGADM_config: unconfig
870 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
872 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
875 GEN860T_config: unconfig
876 @mkdir -p $(obj)include
877 @[ -z "$(findstring _SC,$@)" ] || \
878 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
879 $(XECHO) "With reduced H/W feature set (SC)..." ; \
881 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
883 GENIETV_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
889 hermes_config : unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
892 HMI10_config : unconfig
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
895 IAD210_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
898 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
900 ICU862_100MHz_config \
901 ICU862_config: unconfig
902 @mkdir -p $(obj)include
903 @[ -z "$(findstring _100MHz,$@)" ] || \
904 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
905 $(XECHO) "... with 100MHz system clock" ; \
907 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
909 IP860_config : unconfig
910 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
914 IVML24_config: unconfig
915 @mkdir -p $(obj)include
916 @[ -z "$(findstring IVML24_config,$@)" ] || \
917 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
919 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
920 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
922 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
923 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
925 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
929 IVMS8_config: unconfig
930 @mkdir -p $(obj)include
931 @[ -z "$(findstring IVMS8_config,$@)" ] || \
932 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
934 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
935 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
937 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
938 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
940 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
942 kmsupx4_config: unconfig
943 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
945 KUP4K_config : unconfig
946 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
948 KUP4X_config : unconfig
949 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
951 LANTEC_config : unconfig
952 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
954 lwmon_config: unconfig
955 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
958 MBX860T_config: unconfig
959 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
961 mgsuvd_config: unconfig
962 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
964 MHPC_config: unconfig
965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
967 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
970 NETVIA_config: unconfig
971 @mkdir -p $(obj)include
972 @[ -z "$(findstring NETVIA_config,$@)" ] || \
973 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
974 $(XECHO) "... Version 1" ; \
976 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
977 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
978 $(XECHO) "... Version 2" ; \
980 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
982 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
985 NETPHONE_config: unconfig
986 @mkdir -p $(obj)include
987 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
988 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
990 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
991 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
993 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
995 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
997 NETTA_ISDN_6412_SWAPHOOK_config \
998 NETTA_ISDN_SWAPHOOK_config \
999 NETTA_6412_SWAPHOOK_config \
1000 NETTA_SWAPHOOK_config \
1001 NETTA_ISDN_6412_config \
1004 NETTA_config: unconfig
1005 @mkdir -p $(obj)include
1006 @[ -z "$(findstring ISDN_,$@)" ] || \
1007 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
1009 @[ -n "$(findstring ISDN_,$@)" ] || \
1010 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
1012 @[ -z "$(findstring 6412_,$@)" ] || \
1013 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
1015 @[ -n "$(findstring 6412_,$@)" ] || \
1016 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
1018 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1019 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
1021 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1022 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
1024 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
1026 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
1029 NETTA2_config: unconfig
1030 @mkdir -p $(obj)include
1031 @[ -z "$(findstring NETTA2_config,$@)" ] || \
1032 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1034 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1035 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1037 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
1041 CP850_config: unconfig
1042 @mkdir -p $(obj)include
1043 @[ -z "$(findstring CP850,$@)" ] || \
1044 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1045 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1047 @[ -z "$(findstring Rev1,$@)" ] || \
1048 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1050 @[ -z "$(findstring Rev2,$@)" ] || \
1051 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1053 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1055 NX823_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1058 pcu_e_config: unconfig
1059 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1061 QS850_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1064 QS823_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1067 QS860T_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1070 quantum_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1073 R360MPI_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1076 RBC823_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1079 RPXClassic_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1082 RPXlite_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1085 RPXlite_DW_64_config \
1086 RPXlite_DW_LCD_config \
1087 RPXlite_DW_64_LCD_config \
1088 RPXlite_DW_NVRAM_config \
1089 RPXlite_DW_NVRAM_64_config \
1090 RPXlite_DW_NVRAM_LCD_config \
1091 RPXlite_DW_NVRAM_64_LCD_config \
1092 RPXlite_DW_config: unconfig
1093 @mkdir -p $(obj)include
1094 @[ -z "$(findstring _64,$@)" ] || \
1095 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1096 $(XECHO) "... with 64MHz system clock ..."; \
1098 @[ -z "$(findstring _LCD,$@)" ] || \
1099 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1100 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1101 $(XECHO) "... with LCD display ..."; \
1103 @[ -z "$(findstring _NVRAM,$@)" ] || \
1104 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1105 $(XECHO) "... with ENV in NVRAM ..."; \
1107 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1109 rmu_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1112 RRvision_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1115 RRvision_LCD_config: unconfig
1116 @mkdir -p $(obj)include
1117 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1118 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1119 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1121 SM850_config : unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1124 spc1920_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1127 SPD823TS_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1130 stxxtc_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1133 svm_sc8xx_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1136 SXNI855T_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1139 # EMK MPC8xx based modules
1140 TOP860_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1143 # Play some tricks for configuration selection
1144 # Only 855 and 860 boards may come with FEC
1145 # and only 823 boards may have LCD support
1146 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1152 TQM823L_LCD_config \
1165 virtlab2_config: unconfig
1166 @mkdir -p $(obj)include
1167 @[ -z "$(findstring _LCD,$@)" ] || \
1168 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1169 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1170 $(XECHO) "... with LCD display" ; \
1172 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1174 TTTech_config: unconfig
1175 @mkdir -p $(obj)include
1176 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1177 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1178 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1180 uc100_config : unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1183 v37_config: unconfig
1184 @mkdir -p $(obj)include
1185 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1186 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1187 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1189 wtk_config: unconfig
1190 @mkdir -p $(obj)include
1191 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1192 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1193 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1195 #########################################################################
1197 #########################################################################
1198 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1200 acadia_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1203 acadia_nand_config: unconfig
1204 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1205 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1206 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1207 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1208 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1209 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1211 ADCIOP_config: unconfig
1212 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1214 alpr_config: unconfig
1215 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1217 AP1000_config:unconfig
1218 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1220 APC405_config: unconfig
1221 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1223 AR405_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1226 ASH405_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1229 bamboo_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1232 bamboo_nand_config: unconfig
1233 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1234 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1235 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1236 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1237 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1238 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1240 bubinga_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1243 CANBT_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1246 # Arches, Canyonlands & Glacier use different U-Boot images
1248 canyonlands_config \
1249 glacier_config: unconfig
1250 @mkdir -p $(obj)include
1251 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1252 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1253 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1255 canyonlands_nand_config \
1256 glacier_nand_config: unconfig
1257 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1258 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1259 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1260 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1261 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1262 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1263 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1264 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1267 CATcenter_25_config \
1268 CATcenter_33_config: unconfig
1269 @mkdir -p $(obj)include
1270 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1271 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1272 @[ -z "$(findstring _25,$@)" ] || \
1273 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1274 $(XECHO) "SysClk = 25MHz" ; \
1276 @[ -z "$(findstring _33,$@)" ] || \
1277 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1278 $(XECHO) "SysClk = 33MHz" ; \
1280 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1282 CMS700_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1285 CPCI2DP_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1291 CPCI405AB_config: unconfig
1292 @mkdir -p $(obj)board/esd/cpci405
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1295 CPCIISER4_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1298 CRAYL1_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1301 csb272_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1304 csb472_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1307 DASA_SIM_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1310 DP405_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1313 DU405_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1316 DU440_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1319 ebony_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1322 ERIC_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1325 EXBITGEN_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1328 fx12mm_flash_config: unconfig
1329 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1330 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1331 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1332 > $(obj)board/avnet/fx12mm/config.tmp
1333 @echo "TEXT_BASE := 0xFFCB0000" \
1334 >> $(obj)board/avnet/fx12mm/config.tmp
1335 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1337 fx12mm_config: unconfig
1338 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1339 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1340 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1341 > $(obj)board/avnet/fx12mm/config.tmp
1342 @echo "TEXT_BASE := 0x03000000" \
1343 >> $(obj)board/avnet/fx12mm/config.tmp
1344 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
1346 G2000_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1349 gdppc440etx_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
1352 hcu4_config: unconfig
1353 @mkdir -p $(obj)board/netstal/common
1354 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1356 hcu5_config: unconfig
1357 @mkdir -p $(obj)board/netstal/common
1358 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1360 HH405_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1363 HUB405_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1366 JSE_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1369 KAREF_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1372 katmai_config: unconfig
1373 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1375 # Kilauea & Haleakala images are identical (recognized via PVR)
1377 haleakala_config: unconfig
1378 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1380 kilauea_nand_config \
1381 haleakala_nand_config: unconfig
1382 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1383 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1384 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1385 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1386 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1387 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1389 korat_config: unconfig
1390 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1392 luan_config: unconfig
1393 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1395 lwmon5_config: unconfig
1396 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1398 makalu_config: unconfig
1399 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1401 mcu25_config: unconfig
1402 @mkdir -p $(obj)board/netstal/common
1403 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1405 METROBOX_config: unconfig
1406 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1408 MIP405_config: unconfig
1409 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1411 MIP405T_config: unconfig
1412 @mkdir -p $(obj)include
1413 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1414 @$(XECHO) "Enable subset config for MIP405T"
1415 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1417 ML2_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1420 ml300_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1423 ml507_flash_config: unconfig
1424 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1425 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1426 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1427 > $(obj)board/xilinx/ml507/config.tmp
1428 @echo "TEXT_BASE := 0xFE360000" \
1429 >> $(obj)board/xilinx/ml507/config.tmp
1430 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1432 ml507_config: unconfig
1433 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1434 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1435 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1436 > $(obj)board/xilinx/ml507/config.tmp
1437 @echo "TEXT_BASE := 0x04000000" \
1438 >> $(obj)board/xilinx/ml507/config.tmp
1439 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1441 neo_config: unconfig
1442 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1444 ocotea_config: unconfig
1445 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1448 ORSG_config: unconfig
1449 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1451 p3p440_config: unconfig
1452 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1454 PCI405_config: unconfig
1455 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1457 pcs440ep_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1460 PIP405_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1463 PLU405_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1466 PMC405_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1469 PMC440_config: unconfig
1470 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1472 PPChameleonEVB_config \
1473 PPChameleonEVB_BA_25_config \
1474 PPChameleonEVB_ME_25_config \
1475 PPChameleonEVB_HI_25_config \
1476 PPChameleonEVB_BA_33_config \
1477 PPChameleonEVB_ME_33_config \
1478 PPChameleonEVB_HI_33_config: unconfig
1479 @mkdir -p $(obj)include
1480 @[ -z "$(findstring EVB_BA,$@)" ] || \
1481 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1482 $(XECHO) "... BASIC model" ; \
1484 @[ -z "$(findstring EVB_ME,$@)" ] || \
1485 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1486 $(XECHO) "... MEDIUM model" ; \
1488 @[ -z "$(findstring EVB_HI,$@)" ] || \
1489 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1490 $(XECHO) "... HIGH-END model" ; \
1492 @[ -z "$(findstring _25,$@)" ] || \
1493 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1494 $(XECHO) "SysClk = 25MHz" ; \
1496 @[ -z "$(findstring _33,$@)" ] || \
1497 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1498 $(XECHO) "SysClk = 33MHz" ; \
1500 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1502 quad100hd_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1505 redwood_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1508 sbc405_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1512 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1515 rainier_config: unconfig
1516 @mkdir -p $(obj)include
1517 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1518 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1519 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1521 sequoia_nand_config \
1522 rainier_nand_config: unconfig
1523 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1524 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1525 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1526 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1527 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1528 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1529 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1530 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1532 taihu_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1535 taishan_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1538 v5fx30teval_config: unconfig
1539 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1540 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1541 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1542 > $(obj)board/avnet/v5fx30teval/config.tmp
1543 @echo "TEXT_BASE := 0x03000000" \
1544 >> $(obj)board/avnet/v5fx30teval/config.tmp
1545 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1547 v5fx30teval_flash_config: unconfig
1548 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1549 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1550 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1551 > $(obj)board/avnet/v5fx30teval/config.tmp
1552 @echo "TEXT_BASE := 0xFF1C0000" \
1553 >> $(obj)board/avnet/v5fx30teval/config.tmp
1554 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1556 VOH405_config: unconfig
1557 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1559 VOM405_config: unconfig
1560 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1563 W7OLMG_config: unconfig
1564 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1566 # Walnut & Sycamore images are identical (recognized via PVR)
1568 sycamore_config: unconfig
1569 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1571 WUH405_config: unconfig
1572 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1574 xilinx-ppc405-generic_flash_config: unconfig
1575 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1576 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1577 > $(obj)board/xilinx/ppc405-generic/config.tmp
1578 @echo "TEXT_BASE := 0xFE360000" \
1579 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1580 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1582 xilinx-ppc405-generic_config: unconfig
1583 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1584 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1585 > $(obj)board/xilinx/ppc405-generic/config.tmp
1586 @echo "TEXT_BASE := 0x04000000" \
1587 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1588 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1590 xilinx-ppc440-generic_flash_config: unconfig
1591 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1592 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1593 > $(obj)board/xilinx/ppc440-generic/config.tmp
1594 @echo "TEXT_BASE := 0xFE360000" \
1595 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1596 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1598 xilinx-ppc440-generic_config: unconfig
1599 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1600 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1601 > $(obj)board/xilinx/ppc440-generic/config.tmp
1602 @echo "TEXT_BASE := 0x04000000" \
1603 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1604 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1606 XPEDITE1K_config: unconfig
1607 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1610 yellowstone_config: unconfig
1611 @mkdir -p $(obj)include
1612 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1613 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1614 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1616 yucca_config: unconfig
1617 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1619 zeus_config: unconfig
1620 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1622 #########################################################################
1624 #########################################################################
1627 Yukon8220_config: unconfig
1628 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1630 sorcery_config: unconfig
1631 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1633 #########################################################################
1635 #########################################################################
1636 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1638 A3000_config: unconfig
1639 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1641 barco_config: unconfig
1642 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1644 BMW_config: unconfig
1645 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1648 CPC45_ROMBOOT_config: unconfig
1649 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1650 @cd $(obj)include ; \
1651 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1652 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1653 $(XECHO) "... booting from 8-bit flash" ; \
1655 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1656 $(XECHO) "... booting from 64-bit flash" ; \
1658 echo "export CONFIG_BOOT_ROM" >> config.mk;
1660 CU824_config: unconfig
1661 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1663 debris_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1666 eXalion_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1669 HIDDEN_DRAGON_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1672 kvme080_config: unconfig
1673 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1675 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1677 #linkstation_HDLAN_config \
1678 # Remove this line when HDLAN is fixed
1679 linkstation_HGLAN_config: unconfig
1680 @mkdir -p $(obj)include
1682 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1683 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1685 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1687 MOUSSE_config: unconfig
1688 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1690 MUSENKI_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1693 MVBLUE_config: unconfig
1694 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1696 OXC_config: unconfig
1697 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1699 PN62_config: unconfig
1700 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1702 Sandpoint8240_config: unconfig
1703 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1705 Sandpoint8245_config: unconfig
1706 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1708 sbc8240_config: unconfig
1709 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1711 SL8245_config: unconfig
1712 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1714 utx8245_config: unconfig
1715 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1717 #########################################################################
1719 #########################################################################
1721 atc_config: unconfig
1722 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1724 cogent_mpc8260_config: unconfig
1725 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1728 CPU86_ROMBOOT_config: unconfig
1729 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1730 @cd $(obj)include ; \
1731 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1732 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1733 $(XECHO) "... booting from 8-bit flash" ; \
1735 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1736 $(XECHO) "... booting from 64-bit flash" ; \
1738 echo "export CONFIG_BOOT_ROM" >> config.mk;
1741 CPU87_ROMBOOT_config: unconfig
1742 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1743 @cd $(obj)include ; \
1744 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1745 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1746 $(XECHO) "... booting from 8-bit flash" ; \
1748 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1749 $(XECHO) "... booting from 64-bit flash" ; \
1751 echo "export CONFIG_BOOT_ROM" >> config.mk;
1754 ep8248E_config : unconfig
1755 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1757 ep8260_config: unconfig
1758 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1760 ep82xxm_config: unconfig
1761 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1763 gw8260_config: unconfig
1764 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1766 hymod_config: unconfig
1767 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1769 IDS8247_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1772 IPHASE4539_config: unconfig
1773 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1776 ISPAN_REVB_config: unconfig
1777 @mkdir -p $(obj)include
1778 @if [ "$(findstring _REVB_,$@)" ] ; then \
1779 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1781 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1783 mgcoge_config : unconfig
1784 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1787 MPC8260ADS_lowboot_config \
1788 MPC8260ADS_33MHz_config \
1789 MPC8260ADS_33MHz_lowboot_config \
1790 MPC8260ADS_40MHz_config \
1791 MPC8260ADS_40MHz_lowboot_config \
1793 MPC8272ADS_lowboot_config \
1795 PQ2FADS_lowboot_config \
1797 PQ2FADS-VR_lowboot_config \
1799 PQ2FADS-ZU_lowboot_config \
1800 PQ2FADS-ZU_66MHz_config \
1801 PQ2FADS-ZU_66MHz_lowboot_config \
1803 @mkdir -p $(obj)include
1804 @mkdir -p $(obj)board/freescale/mpc8260ads
1805 $(if $(findstring PQ2FADS,$@), \
1806 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1807 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1808 $(if $(findstring MHz,$@), \
1809 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1810 $(if $(findstring VR,$@), \
1811 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1812 @[ -z "$(findstring lowboot_,$@)" ] || \
1813 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1814 $(XECHO) "... with lowboot configuration" ; \
1816 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1818 MPC8266ADS_config: unconfig
1819 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1821 muas3001_dev_config \
1822 muas3001_config : unconfig
1823 @mkdir -p $(obj)include
1824 @mkdir -p $(obj)board/muas3001
1825 @if [ "$(findstring dev,$@)" ] ; then \
1826 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1828 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1830 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1832 PM825_ROMBOOT_config \
1833 PM825_BIGFLASH_config \
1834 PM825_ROMBOOT_BIGFLASH_config \
1836 PM826_ROMBOOT_config \
1837 PM826_BIGFLASH_config \
1838 PM826_ROMBOOT_BIGFLASH_config: unconfig
1839 @mkdir -p $(obj)include
1840 @mkdir -p $(obj)board/pm826
1841 @if [ "$(findstring PM825_,$@)" ] ; then \
1842 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1844 >$(obj)include/config.h ; \
1846 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1847 $(XECHO) "... booting from 8-bit flash" ; \
1848 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1849 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1850 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1851 $(XECHO) "... with 32 MB Flash" ; \
1852 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1855 $(XECHO) "... booting from 64-bit flash" ; \
1856 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1857 $(XECHO) "... with 32 MB Flash" ; \
1858 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1859 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1861 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1864 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1868 PM828_ROMBOOT_config \
1869 PM828_ROMBOOT_PCI_config: unconfig
1870 @mkdir -p $(obj)include
1871 @mkdir -p $(obj)board/pm826
1872 @if [ "$(findstring _PCI_,$@)" ] ; then \
1873 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1874 $(XECHO) "... with PCI enabled" ; \
1876 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1877 $(XECHO) "... booting from 8-bit flash" ; \
1878 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1879 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1881 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1883 ppmc8260_config: unconfig
1884 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1886 Rattler8248_config \
1887 Rattler_config: unconfig
1888 @mkdir -p $(obj)include
1889 $(if $(findstring 8248,$@), \
1890 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1891 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1893 RPXsuper_config: unconfig
1894 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1896 rsdproto_config: unconfig
1897 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1899 sacsng_config: unconfig
1900 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1902 sbc8260_config: unconfig
1903 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1905 SCM_config: unconfig
1906 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1918 TQM8265_AA_config: unconfig
1919 @mkdir -p $(obj)include
1921 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1922 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1923 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1924 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1925 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1926 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1927 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1928 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1929 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1930 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1931 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1933 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1934 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1936 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1937 echo "... with $${CFREQ}MHz system clock" ; \
1938 if [ "$${CACHE}" = "yes" ] ; then \
1939 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1940 $(XECHO) "... with L2 Cache support" ; \
1942 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1943 $(XECHO) "... without L2 Cache support" ; \
1945 if [ "$${BMODE}" = "60x" ] ; then \
1946 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1947 $(XECHO) "... with 60x Bus Mode" ; \
1949 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1950 $(XECHO) "... without 60x Bus Mode" ; \
1952 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1954 TQM8272_config: unconfig
1955 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1957 VoVPN-GW_66MHz_config \
1958 VoVPN-GW_100MHz_config: unconfig
1959 @mkdir -p $(obj)include
1960 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1961 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1963 ZPC1900_config: unconfig
1964 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1966 #########################################################################
1968 #########################################################################
1971 M52277EVB_spansion_config \
1972 M52277EVB_stmicro_config : unconfig
1974 M52277EVB_config) FLASH=SPANSION;; \
1975 M52277EVB_spansion_config) FLASH=SPANSION;; \
1976 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1978 if [ "$${FLASH}" = "SPANSION" ] ; then \
1979 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1980 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1981 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1982 $(XECHO) "... with SPANSION boot..." ; \
1984 if [ "$${FLASH}" = "STMICRO" ] ; then \
1985 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1986 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1987 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1988 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1989 $(XECHO) "... with ST Micro boot..." ; \
1991 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1994 M5235EVB_Flash16_config \
1995 M5235EVB_Flash32_config: unconfig
1997 M5235EVB_config) FLASH=16;; \
1998 M5235EVB_Flash16_config) FLASH=16;; \
1999 M5235EVB_Flash32_config) FLASH=32;; \
2001 if [ "$${FLASH}" != "16" ] ; then \
2002 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
2003 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2004 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2006 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2007 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2009 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
2011 M5249EVB_config : unconfig
2012 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2014 M5253DEMO_config : unconfig
2015 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
2017 M5253EVBE_config : unconfig
2018 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2020 cobra5272_config : unconfig
2021 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
2023 EB+MCF-EV123_config : unconfig
2024 @mkdir -p $(obj)include
2025 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2026 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2027 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2029 EB+MCF-EV123_internal_config : unconfig
2030 @mkdir -p $(obj)include
2031 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2032 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2033 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2035 idmr_config : unconfig
2036 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2038 M5271EVB_config : unconfig
2039 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2041 M5272C3_config : unconfig
2042 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2044 M5275EVB_config : unconfig
2045 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2047 M5282EVB_config : unconfig
2048 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2050 M53017EVB_config : unconfig
2051 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2054 M5329BFEE_config : unconfig
2056 M5329AFEE_config) NAND=0;; \
2057 M5329BFEE_config) NAND=16;; \
2059 if [ "$${NAND}" != "0" ] ; then \
2060 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2062 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2064 M5373EVB_config : unconfig
2066 M5373EVB_config) NAND=16;; \
2068 if [ "$${NAND}" != "0" ] ; then \
2069 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2071 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2074 M54451EVB_spansion_config \
2075 M54451EVB_stmicro_config : unconfig
2077 M54451EVB_config) FLASH=SPANSION;; \
2078 M54451EVB_spansion_config) FLASH=SPANSION;; \
2079 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2081 if [ "$${FLASH}" = "SPANSION" ] ; then \
2082 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2083 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2084 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2085 $(XECHO) "... with SPANSION boot..." ; \
2087 if [ "$${FLASH}" = "STMICRO" ] ; then \
2088 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2089 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2090 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2091 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2092 $(XECHO) "... with ST Micro boot..." ; \
2094 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2095 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2098 M54455EVB_atmel_config \
2099 M54455EVB_intel_config \
2100 M54455EVB_a33_config \
2101 M54455EVB_a66_config \
2102 M54455EVB_i33_config \
2103 M54455EVB_i66_config \
2104 M54455EVB_stm33_config : unconfig
2106 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2107 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2108 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2109 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2110 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2111 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2112 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2113 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2115 if [ "$${FLASH}" = "INTEL" ] ; then \
2116 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2117 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2118 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2119 $(XECHO) "... with INTEL boot..." ; \
2121 if [ "$${FLASH}" = "ATMEL" ] ; then \
2122 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2123 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2124 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2125 $(XECHO) "... with ATMEL boot..." ; \
2127 if [ "$${FLASH}" = "STMICRO" ] ; then \
2128 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2129 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2130 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2131 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2132 $(XECHO) "... with ST Micro boot..." ; \
2134 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2135 $(XECHO) "... with $${FREQ}Hz input clock"
2136 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2144 M5475GFE_config : unconfig
2146 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2147 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2148 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2149 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2150 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2151 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2152 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2154 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2155 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2156 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2157 if [ "$${RAM1}" != "0" ] ; then \
2158 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2160 if [ "$${CODE}" != "0" ] ; then \
2161 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2163 if [ "$${VID}" == "1" ] ; then \
2164 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2166 if [ "$${USB}" == "1" ] ; then \
2167 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2169 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2178 M5485HFE_config : unconfig
2180 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2181 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2182 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2183 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2184 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2185 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2186 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2187 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2189 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2190 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2191 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2192 if [ "$${RAM1}" != "0" ] ; then \
2193 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2195 if [ "$${CODE}" != "0" ] ; then \
2196 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2198 if [ "$${VID}" == "1" ] ; then \
2199 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2201 if [ "$${USB}" == "1" ] ; then \
2202 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2204 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2206 TASREG_config : unconfig
2207 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2209 #########################################################################
2211 #########################################################################
2213 kmeter1_config: unconfig
2214 @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2216 MPC8313ERDB_33_config \
2217 MPC8313ERDB_66_config \
2218 MPC8313ERDB_NAND_33_config \
2219 MPC8313ERDB_NAND_66_config: unconfig
2220 @mkdir -p $(obj)include
2221 @mkdir -p $(obj)board/freescale/mpc8313erdb
2222 @if [ "$(findstring _33_,$@)" ] ; then \
2223 $(XECHO) -n "...33M ..." ; \
2224 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2226 if [ "$(findstring _66_,$@)" ] ; then \
2227 $(XECHO) -n "...66M..." ; \
2228 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2230 if [ "$(findstring _NAND_,$@)" ] ; then \
2231 $(XECHO) -n "...NAND..." ; \
2232 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2233 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2235 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2236 @if [ "$(findstring _NAND_,$@)" ] ; then \
2237 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2240 MPC8315ERDB_config: unconfig
2241 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2243 MPC8323ERDB_config: unconfig
2244 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2246 MPC832XEMDS_config \
2247 MPC832XEMDS_HOST_33_config \
2248 MPC832XEMDS_HOST_66_config \
2249 MPC832XEMDS_SLAVE_config \
2250 MPC832XEMDS_ATM_config: unconfig
2251 @mkdir -p $(obj)include
2252 @if [ "$(findstring _HOST_,$@)" ] ; then \
2253 $(XECHO) -n "... PCI HOST " ; \
2254 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2256 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2257 $(XECHO) "...PCI SLAVE 66M" ; \
2258 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2259 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2261 if [ "$(findstring _33_,$@)" ] ; then \
2262 $(XECHO) -n "...33M ..." ; \
2263 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2264 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2266 if [ "$(findstring _66_,$@)" ] ; then \
2267 $(XECHO) -n "...66M..." ; \
2268 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2269 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2271 if [ "$(findstring _ATM_,$@)" ] ; then \
2272 $(XECHO) -n "...ATM..." ; \
2273 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2274 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2276 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2278 MPC8349EMDS_config: unconfig
2279 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2282 MPC8349ITX_LOWBOOT_config \
2283 MPC8349ITXGP_config: unconfig
2284 @mkdir -p $(obj)include
2285 @mkdir -p $(obj)board/freescale/mpc8349itx
2286 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2287 @if [ "$(findstring GP,$@)" ] ; then \
2288 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2290 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2291 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2293 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2295 MPC8360EMDS_config \
2296 MPC8360EMDS_HOST_33_config \
2297 MPC8360EMDS_HOST_66_config \
2298 MPC8360EMDS_SLAVE_config \
2299 MPC8360EMDS_ATM_config: unconfig
2300 @mkdir -p $(obj)include
2301 @if [ "$(findstring _HOST_,$@)" ] ; then \
2302 $(XECHO) -n "... PCI HOST " ; \
2303 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2305 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2306 $(XECHO) "...PCI SLAVE 66M" ; \
2307 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2308 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2310 if [ "$(findstring _33_,$@)" ] ; then \
2311 $(XECHO) -n "...33M ..." ; \
2312 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2313 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2315 if [ "$(findstring _66_,$@)" ] ; then \
2316 $(XECHO) -n "...66M..." ; \
2317 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2318 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2320 if [ "$(findstring _ATM_,$@)" ] ; then \
2321 $(XECHO) -n "...ATM..." ; \
2322 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2323 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2325 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2327 MPC8360ERDK_33_config \
2328 MPC8360ERDK_66_config \
2329 MPC8360ERDK_config: unconfig
2330 @mkdir -p $(obj)include
2331 @if [ "$(findstring _33_,$@)" ] ; then \
2332 $(XECHO) -n "... CLKIN 33MHz " ; \
2333 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2335 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2337 MPC837XEMDS_config \
2338 MPC837XEMDS_HOST_config: unconfig
2339 @mkdir -p $(obj)include
2340 @if [ "$(findstring _HOST_,$@)" ] ; then \
2341 $(XECHO) -n "... PCI HOST " ; \
2342 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2344 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2346 MPC837XERDB_config: unconfig
2347 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2349 MVBLM7_config: unconfig
2350 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2352 sbc8349_config: unconfig
2353 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2355 SIMPC8313_LP_config \
2356 SIMPC8313_SP_config: unconfig
2357 @mkdir -p $(obj)include
2358 @mkdir -p $(obj)board/sheldon/simpc8313
2359 @if [ "$(findstring _LP_,$@)" ] ; then \
2360 $(XECHO) -n "...Large Page NAND..." ; \
2361 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
2363 if [ "$(findstring _SP_,$@)" ] ; then \
2364 $(XECHO) -n "...Small Page NAND..." ; \
2365 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
2367 @$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
2368 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2370 TQM834x_config: unconfig
2371 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2374 #########################################################################
2376 #########################################################################
2378 ATUM8548_config: unconfig
2379 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2381 MPC8536DS_config: unconfig
2382 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2384 MPC8540ADS_config: unconfig
2385 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2387 MPC8540EVAL_config \
2388 MPC8540EVAL_33_config \
2389 MPC8540EVAL_66_config \
2390 MPC8540EVAL_33_slave_config \
2391 MPC8540EVAL_66_slave_config: unconfig
2392 @mkdir -p $(obj)include
2393 @if [ "$(findstring _33_,$@)" ] ; then \
2394 $(XECHO) "... 33 MHz PCI" ; \
2396 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2397 $(XECHO) "... 66 MHz PCI" ; \
2399 if [ "$(findstring _slave_,$@)" ] ; then \
2400 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2401 $(XECHO) " slave" ; \
2403 $(XECHO) " host" ; \
2405 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2407 MPC8560ADS_config: unconfig
2408 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2410 MPC8541CDS_legacy_config \
2411 MPC8541CDS_config: unconfig
2412 @mkdir -p $(obj)include
2413 @if [ "$(findstring _legacy_,$@)" ] ; then \
2414 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2415 $(XECHO) "... legacy" ; \
2417 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2419 MPC8544DS_config: unconfig
2420 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2422 MPC8548CDS_legacy_config \
2423 MPC8548CDS_config: unconfig
2424 @mkdir -p $(obj)include
2425 @if [ "$(findstring _legacy_,$@)" ] ; then \
2426 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2427 $(XECHO) "... legacy" ; \
2429 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2431 MPC8555CDS_legacy_config \
2432 MPC8555CDS_config: unconfig
2433 @mkdir -p $(obj)include
2434 @if [ "$(findstring _legacy_,$@)" ] ; then \
2435 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2436 $(XECHO) "... legacy" ; \
2438 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2440 MPC8568MDS_config: unconfig
2441 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2443 MPC8572DS_36BIT_config \
2444 MPC8572DS_config: unconfig
2445 @mkdir -p $(obj)include
2446 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2447 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2448 $(XECHO) "... enabling 36-bit physical addressing." ; \
2450 @$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2452 PM854_config: unconfig
2453 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2455 PM856_config: unconfig
2456 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2460 sbc8540_66_config: unconfig
2461 @mkdir -p $(obj)include
2462 @if [ "$(findstring _66_,$@)" ] ; then \
2463 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2464 $(XECHO) "... 66 MHz PCI" ; \
2466 $(XECHO) "... 33 MHz PCI" ; \
2468 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2470 sbc8548_config: unconfig
2471 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2475 sbc8560_66_config: unconfig
2476 @mkdir -p $(obj)include
2477 @if [ "$(findstring _66_,$@)" ] ; then \
2478 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2479 $(XECHO) "... 66 MHz PCI" ; \
2481 $(XECHO) "... 33 MHz PCI" ; \
2483 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2485 socrates_config: unconfig
2486 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2488 stxgp3_config: unconfig
2489 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2492 stxssa_4M_config: unconfig
2493 @mkdir -p $(obj)include
2494 @if [ "$(findstring _4M_,$@)" ] ; then \
2495 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2496 $(XECHO) "... with 4 MiB flash memory" ; \
2498 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2506 TQM8560_config: unconfig
2507 @mkdir -p $(obj)include
2508 @BTYPE=$(@:_config=); \
2509 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2510 $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2511 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2512 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2513 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2514 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
2515 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2516 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2518 XPEDITE5200_config: unconfig
2519 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
2521 XPEDITE5370_config: unconfig
2522 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2524 #########################################################################
2526 #########################################################################
2528 MPC8610HPCD_config: unconfig
2529 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2531 MPC8641HPCN_36BIT_config \
2532 MPC8641HPCN_config: unconfig
2533 @mkdir -p $(obj)include
2534 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2535 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2536 $(XECHO) "... enabling 36-bit physical addressing." ; \
2538 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2540 sbc8641d_config: unconfig
2541 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2543 #########################################################################
2545 #########################################################################
2547 AmigaOneG3SE_config: unconfig
2548 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2550 BAB7xx_config: unconfig
2551 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2553 CPCI750_config: unconfig
2554 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2556 DB64360_config: unconfig
2557 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2559 DB64460_config: unconfig
2560 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2562 ELPPC_config: unconfig
2563 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2566 EVB64260_750CX_config: unconfig
2567 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2569 mpc7448hpc2_config: unconfig
2570 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2572 P3G4_config: unconfig
2573 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2576 p3m7448_config: unconfig
2577 @mkdir -p $(obj)include
2578 @if [ "$(findstring 750_,$@)" ] ; then \
2579 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2581 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2583 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2586 PCIPPC6_config: unconfig
2587 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2589 ppmc7xx_config: unconfig
2590 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2592 ZUMA_config: unconfig
2593 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2595 #========================================================================
2597 #========================================================================
2598 #########################################################################
2599 ## StrongARM Systems
2600 #########################################################################
2602 assabet_config : unconfig
2603 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2605 dnp1110_config : unconfig
2606 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2608 gcplus_config : unconfig
2609 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2611 lart_config : unconfig
2612 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2614 shannon_config : unconfig
2615 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2617 #########################################################################
2619 #########################################################################
2621 #########################################################################
2622 ## Atmel AT91RM9200 Systems
2623 #########################################################################
2625 at91rm9200dk_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2628 cmc_pu2_config : unconfig
2629 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2631 csb637_config : unconfig
2632 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2634 kb9202_config : unconfig
2635 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2637 m501sk_config : unconfig
2638 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2640 mp2usb_config : unconfig
2641 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2643 #########################################################################
2644 ## Atmel ARM926EJ-S Systems
2645 #########################################################################
2647 afeb9260_config: unconfig
2648 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
2650 at91cap9adk_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2653 at91sam9260ek_nandflash_config \
2654 at91sam9260ek_dataflash_cs0_config \
2655 at91sam9260ek_dataflash_cs1_config \
2656 at91sam9260ek_config : unconfig
2657 @mkdir -p $(obj)include
2658 @if [ "$(findstring _nandflash,$@)" ] ; then \
2659 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2660 $(XECHO) "... with environment variable in NAND FLASH" ; \
2661 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2662 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2663 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2665 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2666 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2668 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2670 at91sam9xeek_nandflash_config \
2671 at91sam9xeek_dataflash_cs0_config \
2672 at91sam9xeek_dataflash_cs1_config \
2673 at91sam9xeek_config : unconfig
2674 @mkdir -p $(obj)include
2675 @if [ "$(findstring _nandflash,$@)" ] ; then \
2676 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2677 $(XECHO) "... with environment variable in NAND FLASH" ; \
2678 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2679 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2680 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2682 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2683 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2685 @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2687 at91sam9261ek_nandflash_config \
2688 at91sam9261ek_dataflash_cs0_config \
2689 at91sam9261ek_dataflash_cs3_config \
2690 at91sam9261ek_config : unconfig
2691 @mkdir -p $(obj)include
2692 @if [ "$(findstring _nandflash,$@)" ] ; then \
2693 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2694 $(XECHO) "... with environment variable in NAND FLASH" ; \
2695 elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
2696 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
2697 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
2699 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2700 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2702 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
2704 at91sam9263ek_nandflash_config \
2705 at91sam9263ek_dataflash_config \
2706 at91sam9263ek_dataflash_cs0_config \
2707 at91sam9263ek_config : unconfig
2708 @mkdir -p $(obj)include
2709 @if [ "$(findstring _nandflash,$@)" ] ; then \
2710 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2711 $(XECHO) "... with environment variable in NAND FLASH" ; \
2713 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2714 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2716 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
2718 at91sam9rlek_nandflash_config \
2719 at91sam9rlek_dataflash_config \
2720 at91sam9rlek_dataflash_cs0_config \
2721 at91sam9rlek_config : unconfig
2722 @mkdir -p $(obj)include
2723 @if [ "$(findstring _nandflash,$@)" ] ; then \
2724 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2725 $(XECHO) "... with environment variable in NAND FLASH" ; \
2727 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2728 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2730 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
2732 ########################################################################
2733 ## ARM Integrator boards - see doc/README-integrator for more info.
2734 integratorap_config \
2743 ap946es_config: unconfig
2744 @board/armltd/integratorap/split_by_variant.sh $@
2746 integratorcp_config \
2755 cp1026_config: unconfig
2756 @board/armltd/integratorcp/split_by_variant.sh $@
2758 davinci_dvevm_config : unconfig
2759 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2761 davinci_schmoogie_config : unconfig
2762 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2764 davinci_sffsdr_config : unconfig
2765 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2767 davinci_sonata_config : unconfig
2768 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2771 lpd7a404_config: unconfig
2772 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2774 mx1ads_config : unconfig
2775 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2777 mx1fs2_config : unconfig
2778 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2780 netstar_config: unconfig
2781 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2784 nmdk8815_onenand_config: unconfig
2785 @mkdir -p $(obj)include
2786 @ > $(obj)include/config.h
2787 @if [ "$(findstring _onenand, $@)" ] ; then \
2788 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2789 $(XECHO) "... configured for OneNand Flash"; \
2791 $(XECHO) "... configured for Nand Flash"; \
2793 @$(MKCONFIG) -a nmdk8815 arm arm926ejs nmdk8815 st nomadik
2795 omap1510inn_config : unconfig
2796 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2798 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2800 omap1610inn_config \
2801 omap1610inn_cs0boot_config \
2802 omap1610inn_cs3boot_config \
2803 omap1610inn_cs_autoboot_config \
2805 omap1610h2_cs0boot_config \
2806 omap1610h2_cs3boot_config \
2807 omap1610h2_cs_autoboot_config: unconfig
2808 @mkdir -p $(obj)include
2809 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2810 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2811 $(XECHO) "... configured for CS0 boot"; \
2812 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2813 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2814 $(XECHO) "... configured for CS_AUTO boot"; \
2816 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2817 $(XECHO) "... configured for CS3 boot"; \
2819 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2821 omap5912osk_config : unconfig
2822 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2824 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2827 omap730p2_cs0boot_config \
2828 omap730p2_cs3boot_config : unconfig
2829 @mkdir -p $(obj)include
2830 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2831 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2832 $(XECHO) "... configured for CS0 boot"; \
2834 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2835 $(XECHO) "... configured for CS3 boot"; \
2837 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2839 sbc2410x_config: unconfig
2840 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2842 scb9328_config : unconfig
2843 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2845 smdk2400_config : unconfig
2846 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
2848 smdk2410_config : unconfig
2849 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
2851 SX1_stdout_serial_config \
2852 SX1_config: unconfig
2853 @mkdir -p $(obj)include
2854 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2855 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2856 $(XECHO) "... configured for stdout serial"; \
2858 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2859 $(XECHO) "... configured for stdout usbtty"; \
2861 @$(MKCONFIG) SX1 arm arm925t sx1
2863 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2864 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2867 trab_bigram_config \
2868 trab_bigflash_config \
2869 trab_old_config: unconfig
2870 @mkdir -p $(obj)include
2871 @mkdir -p $(obj)board/trab
2872 @[ -z "$(findstring _bigram,$@)" ] || \
2873 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2874 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2875 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2877 @[ -z "$(findstring _bigflash,$@)" ] || \
2878 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2879 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2880 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2881 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2883 @[ -z "$(findstring _old,$@)" ] || \
2884 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2885 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2886 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2887 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2889 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2891 VCMA9_config : unconfig
2892 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2894 #########################################################################
2895 # ARM supplied Versatile development boards
2896 #########################################################################
2898 cm4008_config : unconfig
2899 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2901 cm41xx_config : unconfig
2902 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2905 versatileab_config \
2906 versatilepb_config : unconfig
2907 @board/armltd/versatile/split_by_variant.sh $@
2909 voiceblue_config: unconfig
2910 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2912 #########################################################################
2914 #########################################################################
2916 B2_config : unconfig
2917 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2919 #########################################################################
2921 #########################################################################
2923 armadillo_config: unconfig
2924 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2926 ep7312_config : unconfig
2927 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2929 impa7_config : unconfig
2930 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2932 modnet50_config : unconfig
2933 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2935 evb4510_config : unconfig
2936 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2938 lpc2292sodimm_config: unconfig
2939 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2941 SMN42_config : unconfig
2942 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2944 #########################################################################
2945 ## ARM CORTEX Systems
2946 #########################################################################
2948 omap3_beagle_config : unconfig
2949 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
2951 omap3_overo_config : unconfig
2952 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
2954 omap3_evm_config : unconfig
2955 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
2957 omap3_pandora_config : unconfig
2958 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
2960 omap3_zoom1_config : unconfig
2961 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
2963 #########################################################################
2965 #########################################################################
2967 actux1_config : unconfig
2968 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2970 actux2_config : unconfig
2971 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2973 actux3_config : unconfig
2974 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2976 actux4_config : unconfig
2977 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2979 cerf250_config : unconfig
2980 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2982 cradle_config : unconfig
2983 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2985 csb226_config : unconfig
2986 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2988 delta_config : unconfig
2989 @$(MKCONFIG) $(@:_config=) arm pxa delta
2991 innokom_config : unconfig
2992 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2994 ixdp425_config : unconfig
2995 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2997 ixdpg425_config : unconfig
2998 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3000 lubbock_config : unconfig
3001 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
3003 pleb2_config : unconfig
3004 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
3006 logodl_config : unconfig
3007 @$(MKCONFIG) $(@:_config=) arm pxa logodl
3010 scpu_config: unconfig
3011 @mkdir -p $(obj)include
3012 @if [ "$(findstring scpu_,$@)" ] ; then \
3013 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
3014 $(XECHO) "... on SCPU board variant" ; \
3016 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3018 pxa255_idp_config: unconfig
3019 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3021 trizepsiv_config : unconfig
3022 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
3024 wepep250_config : unconfig
3025 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
3027 xaeniax_config : unconfig
3028 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
3030 xm250_config : unconfig
3031 @$(MKCONFIG) $(@:_config=) arm pxa xm250
3033 xsengine_config : unconfig
3034 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
3037 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
3039 #########################################################################
3041 #########################################################################
3043 apollon_config : unconfig
3044 @mkdir -p $(obj)include
3045 @mkdir -p $(obj)onenand_ipl/board/apollon
3046 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
3047 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3048 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
3050 imx31_litekit_config : unconfig
3051 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3053 imx31_phycore_eet_config \
3054 imx31_phycore_config : unconfig
3055 @if [ -n "$(findstring _eet_,$@)" ]; then \
3056 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
3058 @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
3060 mx31ads_config : unconfig
3061 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3063 omap2420h4_config : unconfig
3064 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3066 qong_config : unconfig
3067 @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
3070 #########################################################################
3072 #########################################################################
3073 smdk6400_noUSB_config \
3074 smdk6400_config : unconfig
3075 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
3076 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
3077 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
3078 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
3079 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3080 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3082 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3083 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3085 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
3087 #========================================================================
3089 #========================================================================
3090 #########################################################################
3092 #########################################################################
3093 eNET_config : unconfig
3094 @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3096 sc520_cdp_config : unconfig
3097 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3099 sc520_spunk_config : unconfig
3100 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3102 sc520_spunk_rel_config : unconfig
3103 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3105 #========================================================================
3107 #========================================================================
3108 #########################################################################
3110 #########################################################################
3112 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3114 incaip_100MHz_config \
3115 incaip_133MHz_config \
3116 incaip_150MHz_config \
3117 incaip_config: unconfig
3118 @mkdir -p $(obj)include
3119 @[ -z "$(findstring _100MHz,$@)" ] || \
3120 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3121 $(XECHO) "... with 100MHz system clock" ; \
3123 @[ -z "$(findstring _133MHz,$@)" ] || \
3124 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3125 $(XECHO) "... with 133MHz system clock" ; \
3127 @[ -z "$(findstring _150MHz,$@)" ] || \
3128 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3129 $(XECHO) "... with 150MHz system clock" ; \
3131 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3133 tb0229_config: unconfig
3134 @$(MKCONFIG) $(@:_config=) mips mips tb0229
3136 vct_premium_config \
3137 vct_premium_small_config \
3138 vct_premium_onenand_config \
3139 vct_premium_onenand_small_config \
3140 vct_platinum_config \
3141 vct_platinum_small_config \
3142 vct_platinum_onenand_config \
3143 vct_platinum_onenand_small_config \
3144 vct_platinumavc_config \
3145 vct_platinumavc_small_config \
3146 vct_platinumavc_onenand_config \
3147 vct_platinumavc_onenand_small_config: unconfig
3148 @mkdir -p $(obj)include
3149 @if [ "$(findstring _premium,$@)" ] ; then \
3150 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
3151 $(XECHO) "... on Premium board variant" ; \
3153 @if [ "$(findstring _platinum_,$@)" ] ; then \
3154 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
3155 $(XECHO) "... on Platinum board variant" ; \
3157 @if [ "$(findstring _platinumavc,$@)" ] ; then \
3158 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
3159 $(XECHO) "... on PlatinumAVC board variant" ; \
3161 @if [ "$(findstring _onenand,$@)" ] ; then \
3162 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
3163 $(XECHO) "... on OneNAND board variant" ; \
3165 @if [ "$(findstring _small,$@)" ] ; then \
3166 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
3167 $(XECHO) "... stripped down image variant" ; \
3169 @$(MKCONFIG) -a vct mips mips vct micronas
3171 #########################################################################
3173 #########################################################################
3175 dbau1000_config : unconfig
3176 @mkdir -p $(obj)include
3177 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3178 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3180 dbau1100_config : unconfig
3181 @mkdir -p $(obj)include
3182 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3183 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3185 dbau1500_config : unconfig
3186 @mkdir -p $(obj)include
3187 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3188 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3190 dbau1550_config : unconfig
3191 @mkdir -p $(obj)include
3192 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3193 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3195 dbau1550_el_config : unconfig
3196 @mkdir -p $(obj)include
3197 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3198 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3200 gth2_config : unconfig
3201 @mkdir -p $(obj)include
3202 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3203 @$(MKCONFIG) -a gth2 mips mips gth2
3205 pb1000_config : unconfig
3206 @mkdir -p $(obj)include
3207 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3208 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3210 qemu_mips_config : unconfig
3211 @mkdir -p $(obj)include
3212 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3213 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3215 #########################################################################
3217 #########################################################################
3219 purple_config : unconfig
3220 @$(MKCONFIG) $(@:_config=) mips mips purple
3222 #========================================================================
3224 #========================================================================
3225 #########################################################################
3227 #########################################################################
3229 ADNPESC1_DNPEVA2_base_32_config \
3230 ADNPESC1_base_32_config \
3231 ADNPESC1_config: unconfig
3232 @mkdir -p $(obj)include
3233 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
3234 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3235 $(XECHO) "... DNP/EVA2 configuration" ; \
3237 @[ -z "$(findstring _base_32,$@)" ] || \
3238 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3239 $(XECHO) "... NIOS 'base_32' configuration" ; \
3241 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3242 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3243 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3245 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3247 DK1C20_safe_32_config \
3248 DK1C20_standard_32_config \
3249 DK1C20_config: unconfig
3250 @mkdir -p $(obj)include
3251 @[ -z "$(findstring _safe_32,$@)" ] || \
3252 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3253 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3255 @[ -z "$(findstring _standard_32,$@)" ] || \
3256 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3257 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3259 @[ -z "$(findstring DK1C20_config,$@)" ] || \
3260 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3261 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3263 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3265 DK1S10_safe_32_config \
3266 DK1S10_standard_32_config \
3267 DK1S10_mtx_ldk_20_config \
3268 DK1S10_config: unconfig
3269 @mkdir -p $(obj)include
3270 @[ -z "$(findstring _safe_32,$@)" ] || \
3271 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3272 $(XECHO) "... NIOS 'safe_32' configuration" ; \
3274 @[ -z "$(findstring _standard_32,$@)" ] || \
3275 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3276 $(XECHO) "... NIOS 'standard_32' configuration" ; \
3278 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3279 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3280 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3282 @[ -z "$(findstring DK1S10_config,$@)" ] || \
3283 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3284 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3286 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
3288 #########################################################################
3290 #########################################################################
3292 EP1C20_config : unconfig
3293 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3295 EP1S10_config : unconfig
3296 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3298 EP1S40_config : unconfig
3299 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3301 PK1C20_config : unconfig
3302 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3304 PCI5441_config : unconfig
3305 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3307 #========================================================================
3309 #========================================================================
3311 microblaze-generic_config: unconfig
3312 @mkdir -p $(obj)include
3313 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3315 suzaku_config: unconfig
3316 @mkdir -p $(obj)include
3317 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3318 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3320 #========================================================================
3322 #========================================================================
3324 # Analog Devices boards
3325 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
3327 $(BFIN_BOARDS:%=%_config) : unconfig
3328 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3334 #========================================================================
3336 #========================================================================
3338 atngw100_config : unconfig
3339 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3341 atstk1002_config : unconfig
3342 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3344 atstk1003_config : unconfig
3345 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3347 atstk1004_config : unconfig
3348 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3350 atstk1006_config : unconfig
3351 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3353 favr-32-ezkit_config : unconfig
3354 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3356 hammerhead_config : unconfig
3357 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3359 mimc200_config : unconfig
3360 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3362 #========================================================================
3364 #========================================================================
3366 #########################################################################
3367 ## sh2 (Renesas SuperH)
3368 #########################################################################
3369 rsk7203_config: unconfig
3370 @mkdir -p $(obj)include
3371 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
3372 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3374 #########################################################################
3375 ## sh3 (Renesas SuperH)
3376 #########################################################################
3378 mpr2_config: unconfig
3379 @mkdir -p $(obj)include
3380 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3381 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3383 ms7720se_config: unconfig
3384 @mkdir -p $(obj)include
3385 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3386 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3388 #########################################################################
3389 ## sh4 (Renesas SuperH)
3390 #########################################################################
3392 MigoR_config : unconfig
3393 @mkdir -p $(obj)include
3394 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3395 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3397 ms7750se_config: unconfig
3398 @mkdir -p $(obj)include
3399 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3400 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3402 ms7722se_config : unconfig
3403 @mkdir -p $(obj)include
3404 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3405 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3407 r2dplus_config : unconfig
3408 @mkdir -p $(obj)include
3409 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3410 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3412 r7780mp_config: unconfig
3413 @mkdir -p $(obj)include
3414 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3415 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3417 sh7763rdp_config : unconfig
3418 @mkdir -p $(obj)include
3419 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3420 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3422 xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3423 sh7785lcr_32bit_config \
3424 sh7785lcr_config : unconfig
3426 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3427 @if [ "$(findstring 32bit, $@)" ] ; then \
3428 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3429 cp $(obj)board/renesas/sh7785lcr/u-boot_32bit \
3430 $(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3431 echo "TEXT_BASE = 0x8ff80000" > \
3432 $(obj)board/renesas/sh7785lcr/config.tmp ; \
3433 $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3435 cp $(obj)board/renesas/sh7785lcr/u-boot_29bit \
3436 $(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3438 @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
3440 ap325rxa_config : unconfig
3441 @mkdir -p $(obj)include
3442 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3443 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3445 #========================================================================
3447 #========================================================================
3449 #########################################################################
3451 #########################################################################
3453 # Gaisler GR-XC3S-1500 board
3454 gr_xc3s_1500_config : unconfig
3455 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3457 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3458 gr_cpci_ax2000_config : unconfig
3459 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3461 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3462 # Development board Stratix II edition, FPGA Device EP2S60.
3463 gr_ep2s60_config: unconfig
3464 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3466 # Gaisler LEON3 GRSIM simulator
3467 grsim_config : unconfig
3468 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3470 #########################################################################
3472 #########################################################################
3474 # Gaisler LEON2 GRSIM simulator
3475 grsim_leon2_config : unconfig
3476 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3478 #########################################################################
3479 #########################################################################
3480 #########################################################################
3483 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3484 $(obj)examples/hello_world $(obj)examples/interrupt \
3485 $(obj)examples/mem_to_mem_idma2intr \
3486 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3487 $(obj)examples/test_burst $(obj)examples/timer
3488 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3489 $(obj)tools/env/{fw_printenv,fw_setenv} \
3490 $(obj)tools/envcrc \
3491 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3492 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3493 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3494 $(obj)tools/ncb $(obj)tools/ubsha1
3495 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3496 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3497 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3498 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
3499 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3500 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3501 @rm -f $(obj)include/bmp_logo.h
3502 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3503 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3504 @rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3505 @find $(OBJTREE) -type f \
3506 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3507 -o -name '*.o' -o -name '*.a' \) -print \
3511 @find $(OBJTREE) -type f \( -name .depend \
3512 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3515 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3516 $(obj)cscope.* $(obj)*.*~
3517 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3518 @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3519 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3520 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3521 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3522 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3523 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3524 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3525 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3527 ifeq ($(OBJTREE),$(SRCTREE))
3529 distclean: clobber unconfig
3532 distclean: clobber unconfig
3537 F=`basename $(TOPDIR)` ; cd .. ; \
3538 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3540 #########################################################################