2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
56 #########################################################################
58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported:
61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all'
64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory.
79 ifeq ("$(origin O)", "command line")
85 saved-output := $(BUILD_DIR)
87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),)
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
104 ifneq ($(OBJTREE),$(SRCTREE))
109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE))
121 # Make sure CDPATH settings don't interfere
124 #########################################################################
126 ifeq ($(ARCH),powerpc)
130 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
132 # load ARCH, BOARD, and CPU configuration
133 include $(obj)include/config.mk
134 export ARCH CPU BOARD VENDOR SOC
137 ifeq ($(HOSTARCH),$(ARCH))
141 CROSS_COMPILE = ppc_8xx-
144 CROSS_COMPILE = arm-linux-
147 CROSS_COMPILE = i386-linux-
150 CROSS_COMPILE = mips_4KC-
153 CROSS_COMPILE = nios-elf-
156 CROSS_COMPILE = nios2-elf-
159 CROSS_COMPILE = m68k-elf-
161 ifeq ($(ARCH),microblaze)
164 ifeq ($(ARCH),blackfin)
165 CROSS_COMPILE = bfin-uclinux-
168 CROSS_COMPILE = avr32-linux-
171 CROSS_COMPILE = sh4-linux-
174 CROSS_COMPILE = sparc-elf-
176 endif # HOSTARCH,ARCH
177 endif # CROSS_COMPILE
181 # load other configuration
182 include $(TOPDIR)/config.mk
184 #########################################################################
185 # U-Boot objects....order is important (i.e. start must be first)
187 OBJS = cpu/$(CPU)/start.o
189 OBJS += cpu/$(CPU)/start16.o
190 OBJS += cpu/$(CPU)/reset.o
193 OBJS += cpu/$(CPU)/resetvec.o
195 ifeq ($(CPU),mpc85xx)
196 OBJS += cpu/$(CPU)/resetvec.o
199 OBJS := $(addprefix $(obj),$(OBJS))
201 LIBS = lib_generic/libgeneric.a
202 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
203 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
204 LIBS += cpu/$(CPU)/lib$(CPU).a
206 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
209 LIBS += cpu/ixp/npe/libnpe.a
211 LIBS += lib_$(ARCH)/lib$(ARCH).a
212 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
213 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
215 LIBS += disk/libdisk.a
216 LIBS += drivers/bios_emulator/libatibiosemu.a
217 LIBS += drivers/block/libblock.a
218 LIBS += drivers/dma/libdma.a
219 LIBS += drivers/hwmon/libhwmon.a
220 LIBS += drivers/i2c/libi2c.a
221 LIBS += drivers/input/libinput.a
222 LIBS += drivers/misc/libmisc.a
223 LIBS += drivers/mmc/libmmc.a
224 LIBS += drivers/mtd/libmtd.a
225 LIBS += drivers/mtd/nand/libnand.a
226 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
227 LIBS += drivers/mtd/onenand/libonenand.a
228 LIBS += drivers/mtd/spi/libspi_flash.a
229 LIBS += drivers/net/libnet.a
230 LIBS += drivers/net/sk98lin/libsk98lin.a
231 LIBS += drivers/pci/libpci.a
232 LIBS += drivers/pcmcia/libpcmcia.a
233 LIBS += drivers/spi/libspi.a
234 ifeq ($(CPU),mpc83xx)
235 LIBS += drivers/qe/qe.a
237 ifeq ($(CPU),mpc85xx)
238 LIBS += drivers/qe/qe.a
239 LIBS += cpu/mpc8xxx/ddr/libddr.a
241 ifeq ($(CPU),mpc86xx)
242 LIBS += cpu/mpc8xxx/ddr/libddr.a
244 LIBS += drivers/rtc/librtc.a
245 LIBS += drivers/serial/libserial.a
246 LIBS += drivers/usb/libusb.a
247 LIBS += drivers/video/libvideo.a
248 LIBS += common/libcommon.a
249 LIBS += libfdt/libfdt.a
251 LIBS += post/libpost.a
253 LIBS := $(addprefix $(obj),$(LIBS))
254 .PHONY : $(LIBS) $(VERSION_FILE)
256 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
257 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
260 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
262 # The "tools" are needed early, so put this first
263 # Don't include stuff already done in $(LIBS)
270 ifeq ($(CONFIG_NAND_U_BOOT),y)
272 U_BOOT_NAND = $(obj)u-boot-nand.bin
275 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
276 ONENAND_IPL = onenand_ipl
277 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
280 __OBJS := $(subst $(obj),,$(OBJS))
281 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
283 #########################################################################
284 #########################################################################
286 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
287 ifeq ($(ARCH),blackfin)
288 ALL += $(obj)u-boot.ldr
293 $(obj)u-boot.hex: $(obj)u-boot
294 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
296 $(obj)u-boot.srec: $(obj)u-boot
297 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
299 $(obj)u-boot.bin: $(obj)u-boot
300 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
302 $(obj)u-boot.ldr: $(obj)u-boot
303 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
305 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
306 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
308 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
309 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
311 $(obj)u-boot.img: $(obj)u-boot.bin
312 ./tools/mkimage -A $(ARCH) -T firmware -C none \
313 -a $(TEXT_BASE) -e 0 \
314 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
315 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
318 $(obj)u-boot.sha1: $(obj)u-boot.bin
319 $(obj)tools/ubsha1 $(obj)u-boot.bin
321 $(obj)u-boot.dis: $(obj)u-boot
322 $(OBJDUMP) -d $< > $@
324 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
325 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
326 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
327 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
328 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
329 -Map u-boot.map -o u-boot
331 $(OBJS): depend $(obj)include/autoconf.mk
332 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
334 $(LIBS): depend $(obj)include/autoconf.mk
335 $(MAKE) -C $(dir $(subst $(obj),,$@))
337 $(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk
338 $(MAKE) -C $(dir $(subst $(obj),,$@))
340 $(SUBDIRS): depend $(obj)include/autoconf.mk
343 $(LDSCRIPT): depend $(obj)include/autoconf.mk
344 $(MAKE) -C $(dir $@) $(notdir $@)
346 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
347 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
349 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
350 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
352 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
353 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
355 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
356 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
357 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
360 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
361 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
363 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
366 $(MAKE) -C tools/gdb all || exit 1
369 $(MAKE) -C tools/updater all || exit 1
372 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
374 depend dep: $(VERSION_FILE)
375 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
377 TAG_SUBDIRS += include
378 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
379 TAG_SUBDIRS += cpu/$(CPU)
380 TAG_SUBDIRS += lib_$(ARCH)
381 TAG_SUBDIRS += fs/cramfs
382 TAG_SUBDIRS += fs/fat
383 TAG_SUBDIRS += fs/fdos
384 TAG_SUBDIRS += fs/jffs2
385 TAG_SUBDIRS += fs/yaffs2
388 TAG_SUBDIRS += common
389 TAG_SUBDIRS += drivers/bios_emulator
390 TAG_SUBDIRS += drivers/block
391 TAG_SUBDIRS += drivers/hwmon
392 TAG_SUBDIRS += drivers/i2c
393 TAG_SUBDIRS += drivers/input
394 TAG_SUBDIRS += drivers/misc
395 TAG_SUBDIRS += drivers/mmc
396 TAG_SUBDIRS += drivers/mtd
397 TAG_SUBDIRS += drivers/mtd/nand
398 TAG_SUBDIRS += drivers/mtd/nand_legacy
399 TAG_SUBDIRS += drivers/mtd/onenand
400 TAG_SUBDIRS += drivers/mtd/spi
401 TAG_SUBDIRS += drivers/net
402 TAG_SUBDIRS += drivers/net/sk98lin
403 TAG_SUBDIRS += drivers/pci
404 TAG_SUBDIRS += drivers/pcmcia
405 TAG_SUBDIRS += drivers/qe
406 TAG_SUBDIRS += drivers/rtc
407 TAG_SUBDIRS += drivers/serial
408 TAG_SUBDIRS += drivers/spi
409 TAG_SUBDIRS += drivers/usb
410 TAG_SUBDIRS += drivers/video
413 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
414 -name '*.[ch]' -print`
417 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
418 -name '*.[ch]' -print`
420 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
424 $(obj)System.map: $(obj)u-boot
426 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
427 sort > $(obj)System.map
430 # Auto-generate the autoconf.mk file (which is included by all makefiles)
432 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
433 # the dep file is only include in this top level makefile to determine when
434 # to regenerate the autoconf.mk file.
435 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
436 @$(XECHO) Generating $@ ; \
438 : Generate the dependancies ; \
439 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
440 -MQ $(obj)include/autoconf.mk include/common.h > $@
442 $(obj)include/autoconf.mk: $(obj)include/config.h
443 @$(XECHO) Generating $@ ; \
445 : Extract the config macros ; \
446 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
447 sed -n -f tools/scripts/define2mk.sed > $@
449 sinclude $(obj)include/autoconf.mk.dep
451 #########################################################################
453 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
454 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
455 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
456 dep tags ctags etags cscope $(obj)System.map:
457 @echo "System not configured - see README" >&2
463 git log --no-merges U-Boot-1_1_5.. | \
464 unexpand -a | sed -e 's/\s\s*$$//' > $@
466 include/license.h: tools/bin2header COPYING
467 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
468 #########################################################################
471 @rm -f $(obj)include/config.h $(obj)include/config.mk \
472 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
473 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
475 #========================================================================
477 #========================================================================
479 #########################################################################
481 #########################################################################
483 canmb_config: unconfig
484 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
486 cmi_mpc5xx_config: unconfig
487 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
489 PATI_config: unconfig
490 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
492 #########################################################################
494 #########################################################################
497 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
499 BC3450_config: unconfig
500 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
502 cm5200_config: unconfig
503 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
505 cpci5200_config: unconfig
506 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
508 hmi1001_config: unconfig
509 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
512 Lite5200_LOWBOOT_config \
513 Lite5200_LOWBOOT08_config \
514 icecube_5200_config \
515 icecube_5200_LOWBOOT_config \
516 icecube_5200_LOWBOOT08_config \
517 icecube_5200_DDR_config \
518 icecube_5200_DDR_LOWBOOT_config \
519 icecube_5200_DDR_LOWBOOT08_config \
520 icecube_5100_config: unconfig
521 @mkdir -p $(obj)include
522 @mkdir -p $(obj)board/icecube
523 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
524 { if [ "$(findstring DDR,$@)" ] ; \
525 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
526 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
528 $(XECHO) "... with LOWBOOT configuration" ; \
530 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
531 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
532 echo "... with 8 MB flash only" ; \
533 $(XECHO) "... with LOWBOOT configuration" ; \
535 @[ -z "$(findstring DDR,$@)" ] || \
536 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
537 $(XECHO) "... DDR memory revision" ; \
539 @[ -z "$(findstring 5200,$@)" ] || \
540 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
541 $(XECHO) "... with MPC5200 processor" ; \
543 @[ -z "$(findstring 5100,$@)" ] || \
544 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
545 $(XECHO) "... with MGT5100 processor" ; \
547 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
549 jupiter_config: unconfig
550 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
552 inka4x0_config: unconfig
553 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
556 lite5200b_PM_config \
557 lite5200b_LOWBOOT_config: unconfig
558 @mkdir -p $(obj)include
559 @mkdir -p $(obj)board/icecube
560 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
561 @ $(XECHO) "... DDR memory revision"
562 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
563 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
564 @[ -z "$(findstring _PM_,$@)" ] || \
565 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
566 $(XECHO) "... with power management (low-power mode) support" ; \
568 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
569 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
570 $(XECHO) "... with LOWBOOT configuration" ; \
572 @ $(XECHO) "... with MPC5200B processor"
573 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
576 mcc200_SDRAM_config \
577 mcc200_highboot_config \
578 mcc200_COM12_config \
579 mcc200_COM12_SDRAM_config \
580 mcc200_COM12_highboot_config \
581 mcc200_COM12_highboot_SDRAM_config \
582 mcc200_highboot_SDRAM_config \
585 prs200_highboot_config \
586 prs200_highboot_DDR_config: unconfig
587 @mkdir -p $(obj)include
588 @mkdir -p $(obj)board/mcc200
589 @[ -n "$(findstring highboot,$@)" ] || \
590 { $(XECHO) "... with lowboot configuration" ; \
592 @[ -z "$(findstring highboot,$@)" ] || \
593 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
594 $(XECHO) "... with highboot configuration" ; \
596 @[ -n "$(findstring _SDRAM,$@)" ] || \
597 { if [ -n "$(findstring mcc200,$@)" ]; \
599 $(XECHO) "... with DDR" ; \
601 if [ -n "$(findstring _DDR,$@)" ];\
603 $(XECHO) "... with DDR" ; \
605 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
606 $(XECHO) "... with SDRAM" ; \
610 @[ -z "$(findstring _SDRAM,$@)" ] || \
611 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
612 $(XECHO) "... with SDRAM" ; \
614 @[ -z "$(findstring COM12,$@)" ] || \
615 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
616 $(XECHO) "... with console on COM12" ; \
618 @[ -z "$(findstring prs200,$@)" ] || \
619 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
621 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
623 mecp5200_config: unconfig
624 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
626 motionpro_config: unconfig
627 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
629 mucmc52_config: unconfig
630 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
632 munices_config: unconfig
633 @$(MKCONFIG) munices ppc mpc5xxx munices
635 MVBC_P_config: unconfig
636 @mkdir -p $(obj)include
637 @mkdir -p $(obj)board/mvbc_p
638 @ >$(obj)include/config.h
639 @[ -z "$(findstring MVBC_P,$@)" ] || \
640 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
641 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
643 o2dnt_config: unconfig
644 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
646 pf5200_config: unconfig
647 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
651 PM520_ROMBOOT_config \
652 PM520_ROMBOOT_DDR_config: unconfig
653 @mkdir -p $(obj)include
654 @[ -z "$(findstring DDR,$@)" ] || \
655 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
656 $(XECHO) "... DDR memory revision" ; \
658 @[ -z "$(findstring ROMBOOT,$@)" ] || \
659 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
660 $(XECHO) "... booting from 8-bit flash" ; \
662 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
664 smmaco4_config: unconfig
665 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
667 spieval_config: unconfig
668 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
671 TB5200_config: unconfig
672 @mkdir -p $(obj)include
673 @[ -z "$(findstring _B,$@)" ] || \
674 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
675 $(XECHO) "... with MPC5200B processor" ; \
677 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
681 TOP5200_config: unconfig
682 @mkdir -p $(obj)include
683 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
684 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
688 Total5200_lowboot_config \
689 Total5200_Rev2_config \
690 Total5200_Rev2_lowboot_config: unconfig
691 @mkdir -p $(obj)include
692 @mkdir -p $(obj)board/total5200
693 @[ -z "$(findstring 5100,$@)" ] || \
694 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
695 $(XECHO) "... with MGT5100 processor" ; \
697 @[ -z "$(findstring 5200,$@)" ] || \
698 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
699 $(XECHO) "... with MPC5200 processor" ; \
701 @[ -n "$(findstring Rev,$@)" ] || \
702 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
703 $(XECHO) "... revision 1 board" ; \
705 @[ -z "$(findstring Rev2_,$@)" ] || \
706 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
707 $(XECHO) "... revision 2 board" ; \
709 @[ -z "$(findstring lowboot_,$@)" ] || \
710 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
711 $(XECHO) "... with lowboot configuration" ; \
713 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
716 cam5200_niosflash_config \
720 TQM5200S_HIGHBOOT_config \
722 TQM5200_B_HIGHBOOT_config \
724 TQM5200_STK100_config: unconfig
725 @mkdir -p $(obj)include
726 @mkdir -p $(obj)board/tqc/tqm5200
727 @[ -z "$(findstring cam5200,$@)" ] || \
728 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
729 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
730 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
731 $(XECHO) "... TQM5200S on Cam5200" ; \
733 @[ -z "$(findstring niosflash,$@)" ] || \
734 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
735 $(XECHO) "... with NIOS flash driver" ; \
737 @[ -z "$(findstring fo300,$@)" ] || \
738 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
739 $(XECHO) "... TQM5200 on FO300" ; \
741 @[ -z "$(findstring MiniFAP,$@)" ] || \
742 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
743 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
745 @[ -z "$(findstring STK100,$@)" ] || \
746 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
747 $(XECHO) "... on a STK52XX.100 base board" ; \
749 @[ -z "$(findstring TQM5200_B,$@)" ] || \
750 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
752 @[ -z "$(findstring TQM5200S,$@)" ] || \
753 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
754 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
756 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
757 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
759 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
761 uc101_config: unconfig
762 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
764 v38b_config: unconfig
765 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
767 #########################################################################
769 #########################################################################
772 ads5121_rev2_config \
774 @mkdir -p $(obj)include
775 @if [ "$(findstring rev2,$@)" ] ; then \
776 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
778 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
781 #########################################################################
783 #########################################################################
789 @mkdir -p $(obj)include
790 $(if $(findstring AdderII,$@), \
791 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
792 @$(MKCONFIG) -a Adder ppc mpc8xx adder
794 AdderUSB_config: unconfig
795 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
802 FADS860T_config: unconfig
803 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
805 AMX860_config : unconfig
806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
808 c2mon_config: unconfig
809 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
812 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
814 cogent_mpc8xx_config: unconfig
815 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
817 ELPT860_config: unconfig
818 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
820 EP88x_config: unconfig
821 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
823 ESTEEM192E_config: unconfig
824 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
826 ETX094_config : unconfig
827 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
829 FLAGADM_config: unconfig
830 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
832 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
835 GEN860T_config: unconfig
836 @mkdir -p $(obj)include
837 @[ -z "$(findstring _SC,$@)" ] || \
838 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
839 $(XECHO) "With reduced H/W feature set (SC)..." ; \
841 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
843 GENIETV_config: unconfig
844 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
847 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
849 hermes_config : unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
852 HMI10_config : unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
855 IAD210_config: unconfig
856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
858 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
860 ICU862_100MHz_config \
861 ICU862_config: unconfig
862 @mkdir -p $(obj)include
863 @[ -z "$(findstring _100MHz,$@)" ] || \
864 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
865 $(XECHO) "... with 100MHz system clock" ; \
867 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
869 IP860_config : unconfig
870 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
874 IVML24_config: unconfig
875 @mkdir -p $(obj)include
876 @[ -z "$(findstring IVML24_config,$@)" ] || \
877 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
879 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
880 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
882 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
883 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
885 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
889 IVMS8_config: unconfig
890 @mkdir -p $(obj)include
891 @[ -z "$(findstring IVMS8_config,$@)" ] || \
892 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
894 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
895 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
897 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
898 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
900 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
902 KUP4K_config : unconfig
903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
905 KUP4X_config : unconfig
906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
908 LANTEC_config : unconfig
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
911 lwmon_config: unconfig
912 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
915 MBX860T_config: unconfig
916 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
918 mgsuvd_config: unconfig
919 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
921 MHPC_config: unconfig
922 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
924 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
927 NETVIA_config: unconfig
928 @mkdir -p $(obj)include
929 @[ -z "$(findstring NETVIA_config,$@)" ] || \
930 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
931 $(XECHO) "... Version 1" ; \
933 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
934 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
935 $(XECHO) "... Version 2" ; \
937 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
939 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
942 NETPHONE_config: unconfig
943 @mkdir -p $(obj)include
944 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
945 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
947 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
948 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
950 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
952 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
954 NETTA_ISDN_6412_SWAPHOOK_config \
955 NETTA_ISDN_SWAPHOOK_config \
956 NETTA_6412_SWAPHOOK_config \
957 NETTA_SWAPHOOK_config \
958 NETTA_ISDN_6412_config \
961 NETTA_config: unconfig
962 @mkdir -p $(obj)include
963 @[ -z "$(findstring ISDN_,$@)" ] || \
964 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
966 @[ -n "$(findstring ISDN_,$@)" ] || \
967 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
969 @[ -z "$(findstring 6412_,$@)" ] || \
970 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
972 @[ -n "$(findstring 6412_,$@)" ] || \
973 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
975 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
976 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
978 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
979 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
981 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
983 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
986 NETTA2_config: unconfig
987 @mkdir -p $(obj)include
988 @[ -z "$(findstring NETTA2_config,$@)" ] || \
989 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
991 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
992 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
994 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
998 CP850_config: unconfig
999 @mkdir -p $(obj)include
1000 @[ -z "$(findstring CP850,$@)" ] || \
1001 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1002 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1004 @[ -z "$(findstring Rev1,$@)" ] || \
1005 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1007 @[ -z "$(findstring Rev2,$@)" ] || \
1008 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1010 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1012 NX823_config: unconfig
1013 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1015 pcu_e_config: unconfig
1016 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1018 QS850_config: unconfig
1019 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1021 QS823_config: unconfig
1022 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1024 QS860T_config: unconfig
1025 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1027 quantum_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1030 R360MPI_config: unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1033 RBC823_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1036 RPXClassic_config: unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1039 RPXlite_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1042 RPXlite_DW_64_config \
1043 RPXlite_DW_LCD_config \
1044 RPXlite_DW_64_LCD_config \
1045 RPXlite_DW_NVRAM_config \
1046 RPXlite_DW_NVRAM_64_config \
1047 RPXlite_DW_NVRAM_LCD_config \
1048 RPXlite_DW_NVRAM_64_LCD_config \
1049 RPXlite_DW_config: unconfig
1050 @mkdir -p $(obj)include
1051 @[ -z "$(findstring _64,$@)" ] || \
1052 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1053 $(XECHO) "... with 64MHz system clock ..."; \
1055 @[ -z "$(findstring _LCD,$@)" ] || \
1056 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1057 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1058 $(XECHO) "... with LCD display ..."; \
1060 @[ -z "$(findstring _NVRAM,$@)" ] || \
1061 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1062 $(XECHO) "... with ENV in NVRAM ..."; \
1064 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1066 rmu_config: unconfig
1067 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1069 RRvision_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1072 RRvision_LCD_config: unconfig
1073 @mkdir -p $(obj)include
1074 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1075 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1076 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1078 SM850_config : unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1081 spc1920_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1084 SPD823TS_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1087 stxxtc_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1090 svm_sc8xx_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1093 SXNI855T_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1096 # EMK MPC8xx based modules
1097 TOP860_config: unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1100 # Play some tricks for configuration selection
1101 # Only 855 and 860 boards may come with FEC
1102 # and only 823 boards may have LCD support
1103 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1109 TQM823L_LCD_config \
1122 virtlab2_config: unconfig
1123 @mkdir -p $(obj)include
1124 @[ -z "$(findstring _LCD,$@)" ] || \
1125 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1126 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1127 $(XECHO) "... with LCD display" ; \
1129 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1131 TTTech_config: unconfig
1132 @mkdir -p $(obj)include
1133 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1134 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1135 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1137 uc100_config : unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1140 v37_config: unconfig
1141 @mkdir -p $(obj)include
1142 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1143 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1144 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1146 wtk_config: unconfig
1147 @mkdir -p $(obj)include
1148 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1149 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1150 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1152 #########################################################################
1154 #########################################################################
1155 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1157 acadia_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1160 acadia_nand_config: unconfig
1161 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1162 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1163 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1164 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1165 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1166 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1168 ADCIOP_config: unconfig
1169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1171 alpr_config: unconfig
1172 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1174 AP1000_config:unconfig
1175 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1177 APC405_config: unconfig
1178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1180 AR405_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1183 ASH405_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1186 bamboo_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1189 bamboo_nand_config: unconfig
1190 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1191 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1192 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1193 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1194 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1195 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1197 bubinga_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1200 CANBT_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1203 # Canyonlands & Glacier use different U-Boot images
1204 canyonlands_config \
1205 glacier_config: unconfig
1206 @mkdir -p $(obj)include
1207 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1208 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1209 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1211 canyonlands_nand_config \
1212 glacier_nand_config: unconfig
1213 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1214 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1215 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1216 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1217 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1218 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1219 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1220 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1223 CATcenter_25_config \
1224 CATcenter_33_config: unconfig
1225 @mkdir -p $(obj)include
1226 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1227 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1228 @[ -z "$(findstring _25,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1230 $(XECHO) "SysClk = 25MHz" ; \
1232 @[ -z "$(findstring _33,$@)" ] || \
1233 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1234 $(XECHO) "SysClk = 33MHz" ; \
1236 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1238 CMS700_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1241 CPCI2DP_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1247 CPCI405AB_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1249 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1251 CPCIISER4_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1254 CRAYL1_config: unconfig
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1257 csb272_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1260 csb472_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1263 DASA_SIM_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1266 DP405_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1269 DU405_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1272 DU440_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1275 ebony_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1278 ERIC_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1281 EXBITGEN_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1284 G2000_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1287 hcu4_config: unconfig
1288 @mkdir -p $(obj)board/netstal/common
1289 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1291 hcu5_config: unconfig
1292 @mkdir -p $(obj)board/netstal/common
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1295 HH405_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1298 HUB405_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1301 JSE_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1304 KAREF_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1307 katmai_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1310 # Kilauea & Haleakala images are identical (recognized via PVR)
1312 haleakala_config: unconfig
1313 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1315 kilauea_nand_config \
1316 haleakala_nand_config: unconfig
1317 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1318 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1319 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1320 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1321 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1322 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1324 korat_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1327 luan_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1330 lwmon5_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1333 makalu_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1336 mcu25_config: unconfig
1337 @mkdir -p $(obj)board/netstal/common
1338 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1340 METROBOX_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1343 MIP405_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1346 MIP405T_config: unconfig
1347 @mkdir -p $(obj)include
1348 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1349 @$(XECHO) "Enable subset config for MIP405T"
1350 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1352 ML2_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1355 ml300_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1358 ml507_flash_config: unconfig
1359 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1360 @cp $(obj)board/xilinx/ml507/u-boot-rom.lds $(obj)board/xilinx/ml507/u-boot.lds
1361 @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
1362 @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
1364 ml507_config: unconfig
1365 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1366 @cp $(obj)board/xilinx/ml507/u-boot-ram.lds $(obj)board/xilinx/ml507/u-boot.lds
1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1369 ocotea_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1373 ORSG_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1376 p3p440_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1379 PCI405_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1382 pcs440ep_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1385 PIP405_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1388 PLU405_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1391 PMC405_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1394 PMC440_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1397 PPChameleonEVB_config \
1398 PPChameleonEVB_BA_25_config \
1399 PPChameleonEVB_ME_25_config \
1400 PPChameleonEVB_HI_25_config \
1401 PPChameleonEVB_BA_33_config \
1402 PPChameleonEVB_ME_33_config \
1403 PPChameleonEVB_HI_33_config: unconfig
1404 @mkdir -p $(obj)include
1405 @[ -z "$(findstring EVB_BA,$@)" ] || \
1406 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1407 $(XECHO) "... BASIC model" ; \
1409 @[ -z "$(findstring EVB_ME,$@)" ] || \
1410 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1411 $(XECHO) "... MEDIUM model" ; \
1413 @[ -z "$(findstring EVB_HI,$@)" ] || \
1414 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1415 $(XECHO) "... HIGH-END model" ; \
1417 @[ -z "$(findstring _25,$@)" ] || \
1418 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1419 $(XECHO) "SysClk = 25MHz" ; \
1421 @[ -z "$(findstring _33,$@)" ] || \
1422 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1423 $(XECHO) "SysClk = 33MHz" ; \
1425 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1427 quad100hd_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1430 redwood_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1433 sbc405_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1440 rainier_config: unconfig
1441 @mkdir -p $(obj)include
1442 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1443 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1444 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1446 sequoia_nand_config \
1447 rainier_nand_config: unconfig
1448 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1449 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1450 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1451 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1452 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1453 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1454 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1455 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1457 taihu_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1460 taishan_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1463 VOH405_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1466 VOM405_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1470 W7OLMG_config: unconfig
1471 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1473 # Walnut & Sycamore images are identical (recognized via PVR)
1475 sycamore_config: unconfig
1476 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1478 WUH405_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1481 XPEDITE1K_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1485 yellowstone_config: unconfig
1486 @mkdir -p $(obj)include
1487 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1488 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1489 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1491 yucca_config: unconfig
1492 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1494 zeus_config: unconfig
1495 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1497 #########################################################################
1499 #########################################################################
1502 Yukon8220_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1505 sorcery_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1508 #########################################################################
1510 #########################################################################
1511 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1513 A3000_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1516 barco_config: unconfig
1517 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1519 BMW_config: unconfig
1520 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1523 CPC45_ROMBOOT_config: unconfig
1524 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1525 @cd $(obj)include ; \
1526 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1527 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1528 $(XECHO) "... booting from 8-bit flash" ; \
1530 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1531 $(XECHO) "... booting from 64-bit flash" ; \
1533 echo "export CONFIG_BOOT_ROM" >> config.mk;
1535 CU824_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1538 debris_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1541 eXalion_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1544 HIDDEN_DRAGON_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1547 kvme080_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1550 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1552 #linkstation_HDLAN_config \
1553 # Remove this line when HDLAN is fixed
1554 linkstation_HGLAN_config: unconfig
1555 @mkdir -p $(obj)include
1557 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1558 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1560 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1562 MOUSSE_config: unconfig
1563 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1565 MUSENKI_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1568 MVBLUE_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1571 OXC_config: unconfig
1572 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1574 PN62_config: unconfig
1575 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1577 Sandpoint8240_config: unconfig
1578 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1580 Sandpoint8245_config: unconfig
1581 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1583 sbc8240_config: unconfig
1584 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1586 SL8245_config: unconfig
1587 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1589 utx8245_config: unconfig
1590 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1592 #########################################################################
1594 #########################################################################
1596 atc_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1599 cogent_mpc8260_config: unconfig
1600 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1603 CPU86_ROMBOOT_config: unconfig
1604 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1605 @cd $(obj)include ; \
1606 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1607 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1608 $(XECHO) "... booting from 8-bit flash" ; \
1610 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1611 $(XECHO) "... booting from 64-bit flash" ; \
1613 echo "export CONFIG_BOOT_ROM" >> config.mk;
1616 CPU87_ROMBOOT_config: unconfig
1617 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1618 @cd $(obj)include ; \
1619 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1620 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1621 $(XECHO) "... booting from 8-bit flash" ; \
1623 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1624 $(XECHO) "... booting from 64-bit flash" ; \
1626 echo "export CONFIG_BOOT_ROM" >> config.mk;
1629 ep8248E_config : unconfig
1630 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1632 ep8260_config: unconfig
1633 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1635 ep82xxm_config: unconfig
1636 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1638 gw8260_config: unconfig
1639 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1641 hymod_config: unconfig
1642 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1644 IDS8247_config: unconfig
1645 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1647 IPHASE4539_config: unconfig
1648 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1651 ISPAN_REVB_config: unconfig
1652 @mkdir -p $(obj)include
1653 @if [ "$(findstring _REVB_,$@)" ] ; then \
1654 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1656 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1658 mgcoge_config : unconfig
1659 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1662 MPC8260ADS_lowboot_config \
1663 MPC8260ADS_33MHz_config \
1664 MPC8260ADS_33MHz_lowboot_config \
1665 MPC8260ADS_40MHz_config \
1666 MPC8260ADS_40MHz_lowboot_config \
1668 MPC8272ADS_lowboot_config \
1670 PQ2FADS_lowboot_config \
1672 PQ2FADS-VR_lowboot_config \
1674 PQ2FADS-ZU_lowboot_config \
1675 PQ2FADS-ZU_66MHz_config \
1676 PQ2FADS-ZU_66MHz_lowboot_config \
1678 @mkdir -p $(obj)include
1679 @mkdir -p $(obj)board/freescale/mpc8260ads
1680 $(if $(findstring PQ2FADS,$@), \
1681 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1682 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1683 $(if $(findstring MHz,$@), \
1684 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1685 $(if $(findstring VR,$@), \
1686 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1687 @[ -z "$(findstring lowboot_,$@)" ] || \
1688 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1689 $(XECHO) "... with lowboot configuration" ; \
1691 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1693 MPC8266ADS_config: unconfig
1694 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1696 muas3001_dev_config \
1697 muas3001_config : unconfig
1698 @mkdir -p $(obj)include
1699 @mkdir -p $(obj)board/muas3001
1700 @if [ "$(findstring dev,$@)" ] ; then \
1701 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1703 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1705 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1707 PM825_ROMBOOT_config \
1708 PM825_BIGFLASH_config \
1709 PM825_ROMBOOT_BIGFLASH_config \
1711 PM826_ROMBOOT_config \
1712 PM826_BIGFLASH_config \
1713 PM826_ROMBOOT_BIGFLASH_config: unconfig
1714 @mkdir -p $(obj)include
1715 @mkdir -p $(obj)board/pm826
1716 @if [ "$(findstring PM825_,$@)" ] ; then \
1717 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1719 >$(obj)include/config.h ; \
1721 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1722 $(XECHO) "... booting from 8-bit flash" ; \
1723 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1724 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1725 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1726 $(XECHO) "... with 32 MB Flash" ; \
1727 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1730 $(XECHO) "... booting from 64-bit flash" ; \
1731 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1732 $(XECHO) "... with 32 MB Flash" ; \
1733 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1734 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1736 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1739 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1743 PM828_ROMBOOT_config \
1744 PM828_ROMBOOT_PCI_config: unconfig
1745 @mkdir -p $(obj)include
1746 @mkdir -p $(obj)board/pm826
1747 @if [ "$(findstring _PCI_,$@)" ] ; then \
1748 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1749 $(XECHO) "... with PCI enabled" ; \
1751 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1752 $(XECHO) "... booting from 8-bit flash" ; \
1753 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1754 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1756 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1758 ppmc8260_config: unconfig
1759 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1761 Rattler8248_config \
1762 Rattler_config: unconfig
1763 @mkdir -p $(obj)include
1764 $(if $(findstring 8248,$@), \
1765 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1766 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1768 RPXsuper_config: unconfig
1769 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1771 rsdproto_config: unconfig
1772 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1774 sacsng_config: unconfig
1775 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1777 sbc8260_config: unconfig
1778 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1780 SCM_config: unconfig
1781 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1793 TQM8265_AA_config: unconfig
1794 @mkdir -p $(obj)include
1796 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1797 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1798 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1799 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1800 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1801 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1802 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1803 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1804 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1805 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1806 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1808 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1809 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1811 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1812 echo "... with $${CFREQ}MHz system clock" ; \
1813 if [ "$${CACHE}" = "yes" ] ; then \
1814 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1815 $(XECHO) "... with L2 Cache support" ; \
1817 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1818 $(XECHO) "... without L2 Cache support" ; \
1820 if [ "$${BMODE}" = "60x" ] ; then \
1821 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1822 $(XECHO) "... with 60x Bus Mode" ; \
1824 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1825 $(XECHO) "... without 60x Bus Mode" ; \
1827 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1829 TQM8272_config: unconfig
1830 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1832 VoVPN-GW_66MHz_config \
1833 VoVPN-GW_100MHz_config: unconfig
1834 @mkdir -p $(obj)include
1835 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1836 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1838 ZPC1900_config: unconfig
1839 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1841 #########################################################################
1843 #########################################################################
1845 M52277EVB_config: unconfig
1846 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1849 M5235EVB_Flash16_config \
1850 M5235EVB_Flash32_config: unconfig
1852 M5235EVB_config) FLASH=16;; \
1853 M5235EVB_Flash16_config) FLASH=16;; \
1854 M5235EVB_Flash32_config) FLASH=32;; \
1856 if [ "$${FLASH}" != "16" ] ; then \
1857 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1858 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1859 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1861 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1862 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1864 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1866 M5249EVB_config : unconfig
1867 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1869 M5253DEMO_config : unconfig
1870 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1872 M5253EVBE_config : unconfig
1873 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1875 cobra5272_config : unconfig
1876 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1878 EB+MCF-EV123_config : unconfig
1879 @mkdir -p $(obj)include
1880 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1881 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1882 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1884 EB+MCF-EV123_internal_config : unconfig
1885 @mkdir -p $(obj)include
1886 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1887 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1888 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1890 idmr_config : unconfig
1891 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1893 M5271EVB_config : unconfig
1894 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1896 M5272C3_config : unconfig
1897 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1899 M5275EVB_config : unconfig
1900 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1902 M5282EVB_config : unconfig
1903 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1906 M5329BFEE_config : unconfig
1908 M5329AFEE_config) NAND=0;; \
1909 M5329BFEE_config) NAND=16;; \
1911 if [ "$${NAND}" != "0" ] ; then \
1912 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1914 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1916 M5373EVB_config : unconfig
1918 M5373EVB_config) NAND=16;; \
1920 if [ "$${NAND}" != "0" ] ; then \
1921 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1923 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1926 M54451EVB_spansion_config \
1927 M54451EVB_stmicro_config : unconfig
1929 M54451EVB_config) FLASH=SPANSION;; \
1930 M54451EVB_spansion_config) FLASH=SPANSION;; \
1931 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1933 if [ "$${FLASH}" = "SPANSION" ] ; then \
1934 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1935 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1936 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1937 $(XECHO) "... with SPANSION boot..." ; \
1939 if [ "$${FLASH}" = "STMICRO" ] ; then \
1940 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1941 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1942 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1943 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1944 $(XECHO) "... with ST Micro boot..." ; \
1946 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1947 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1950 M54455EVB_atmel_config \
1951 M54455EVB_intel_config \
1952 M54455EVB_a33_config \
1953 M54455EVB_a66_config \
1954 M54455EVB_i33_config \
1955 M54455EVB_i66_config \
1956 M54455EVB_stm33_config : unconfig
1958 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1959 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1960 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1961 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1962 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1963 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1964 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1965 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1967 if [ "$${FLASH}" = "INTEL" ] ; then \
1968 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1969 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1970 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1971 $(XECHO) "... with INTEL boot..." ; \
1973 if [ "$${FLASH}" = "ATMEL" ] ; then \
1974 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1975 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1976 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1977 $(XECHO) "... with ATMEL boot..." ; \
1979 if [ "$${FLASH}" = "STMICRO" ] ; then \
1980 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1981 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1982 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1983 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1984 $(XECHO) "... with ST Micro boot..." ; \
1986 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1987 $(XECHO) "... with $${FREQ}Hz input clock"
1988 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1996 M5475GFE_config : unconfig
1998 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1999 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2000 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2001 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2002 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2003 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2004 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2006 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
2007 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2008 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2009 if [ "$${RAM1}" != "0" ] ; then \
2010 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2012 if [ "$${CODE}" != "0" ] ; then \
2013 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2015 if [ "$${VID}" == "1" ] ; then \
2016 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2018 if [ "$${USB}" == "1" ] ; then \
2019 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2021 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2030 M5485HFE_config : unconfig
2032 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2033 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2034 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2035 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2036 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2037 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2038 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2039 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2041 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2042 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2043 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2044 if [ "$${RAM1}" != "0" ] ; then \
2045 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2047 if [ "$${CODE}" != "0" ] ; then \
2048 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2050 if [ "$${VID}" == "1" ] ; then \
2051 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2053 if [ "$${USB}" == "1" ] ; then \
2054 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2056 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2058 TASREG_config : unconfig
2059 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2061 #########################################################################
2063 #########################################################################
2065 MPC8313ERDB_33_config \
2066 MPC8313ERDB_66_config \
2067 MPC8313ERDB_NAND_33_config \
2068 MPC8313ERDB_NAND_66_config: unconfig
2069 @mkdir -p $(obj)include
2070 @mkdir -p $(obj)board/freescale/mpc8313erdb
2071 @if [ "$(findstring _33_,$@)" ] ; then \
2072 $(XECHO) -n "...33M ..." ; \
2073 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2075 if [ "$(findstring _66_,$@)" ] ; then \
2076 $(XECHO) -n "...66M..." ; \
2077 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2079 if [ "$(findstring _NAND_,$@)" ] ; then \
2080 $(XECHO) -n "...NAND..." ; \
2081 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2082 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2084 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2086 MPC8315ERDB_config: unconfig
2087 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2089 MPC8323ERDB_config: unconfig
2090 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2092 MPC832XEMDS_config \
2093 MPC832XEMDS_HOST_33_config \
2094 MPC832XEMDS_HOST_66_config \
2095 MPC832XEMDS_SLAVE_config \
2096 MPC832XEMDS_ATM_config: unconfig
2097 @mkdir -p $(obj)include
2098 @if [ "$(findstring _HOST_,$@)" ] ; then \
2099 $(XECHO) -n "... PCI HOST " ; \
2100 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2102 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2103 $(XECHO) "...PCI SLAVE 66M" ; \
2104 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2105 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2107 if [ "$(findstring _33_,$@)" ] ; then \
2108 $(XECHO) -n "...33M ..." ; \
2109 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2110 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2112 if [ "$(findstring _66_,$@)" ] ; then \
2113 $(XECHO) -n "...66M..." ; \
2114 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2115 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2117 if [ "$(findstring _ATM_,$@)" ] ; then \
2118 $(XECHO) -n "...ATM..." ; \
2119 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2120 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2122 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2124 MPC8349EMDS_config: unconfig
2125 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2128 MPC8349ITX_LOWBOOT_config \
2129 MPC8349ITXGP_config: unconfig
2130 @mkdir -p $(obj)include
2131 @mkdir -p $(obj)board/freescale/mpc8349itx
2132 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2133 @if [ "$(findstring GP,$@)" ] ; then \
2134 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2136 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2137 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2139 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2141 MPC8360EMDS_config \
2142 MPC8360EMDS_HOST_33_config \
2143 MPC8360EMDS_HOST_66_config \
2144 MPC8360EMDS_SLAVE_config \
2145 MPC8360EMDS_ATM_config: unconfig
2146 @mkdir -p $(obj)include
2147 @if [ "$(findstring _HOST_,$@)" ] ; then \
2148 $(XECHO) -n "... PCI HOST " ; \
2149 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2151 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2152 $(XECHO) "...PCI SLAVE 66M" ; \
2153 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2154 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2156 if [ "$(findstring _33_,$@)" ] ; then \
2157 $(XECHO) -n "...33M ..." ; \
2158 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2159 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2161 if [ "$(findstring _66_,$@)" ] ; then \
2162 $(XECHO) -n "...66M..." ; \
2163 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2164 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2166 if [ "$(findstring _ATM_,$@)" ] ; then \
2167 $(XECHO) -n "...ATM..." ; \
2168 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2169 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2171 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2173 MPC8360ERDK_33_config \
2174 MPC8360ERDK_66_config \
2175 MPC8360ERDK_config: unconfig
2176 @mkdir -p $(obj)include
2177 @if [ "$(findstring _33_,$@)" ] ; then \
2178 $(XECHO) -n "... CLKIN 33MHz " ; \
2179 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2181 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2183 MPC837XEMDS_config \
2184 MPC837XEMDS_HOST_config: unconfig
2185 @mkdir -p $(obj)include
2186 @if [ "$(findstring _HOST_,$@)" ] ; then \
2187 $(XECHO) -n "... PCI HOST " ; \
2188 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2190 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2192 MPC837XERDB_config: unconfig
2193 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2195 MVBLM7_config: unconfig
2196 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2198 sbc8349_config: unconfig
2199 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2201 TQM834x_config: unconfig
2202 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2205 #########################################################################
2207 #########################################################################
2209 ATUM8548_config: unconfig
2210 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2212 MPC8536DS_config: unconfig
2213 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
2215 MPC8540ADS_config: unconfig
2216 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2218 MPC8540EVAL_config \
2219 MPC8540EVAL_33_config \
2220 MPC8540EVAL_66_config \
2221 MPC8540EVAL_33_slave_config \
2222 MPC8540EVAL_66_slave_config: unconfig
2223 @mkdir -p $(obj)include
2224 @if [ "$(findstring _33_,$@)" ] ; then \
2225 $(XECHO) "... 33 MHz PCI" ; \
2227 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2228 $(XECHO) "... 66 MHz PCI" ; \
2230 if [ "$(findstring _slave_,$@)" ] ; then \
2231 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2232 $(XECHO) " slave" ; \
2234 $(XECHO) " host" ; \
2236 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2238 MPC8560ADS_config: unconfig
2239 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2241 MPC8541CDS_legacy_config \
2242 MPC8541CDS_config: unconfig
2243 @mkdir -p $(obj)include
2244 @if [ "$(findstring _legacy_,$@)" ] ; then \
2245 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2246 $(XECHO) "... legacy" ; \
2248 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2250 MPC8544DS_config: unconfig
2251 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2253 MPC8548CDS_legacy_config \
2254 MPC8548CDS_config: unconfig
2255 @mkdir -p $(obj)include
2256 @if [ "$(findstring _legacy_,$@)" ] ; then \
2257 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2258 $(XECHO) "... legacy" ; \
2260 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2262 MPC8555CDS_legacy_config \
2263 MPC8555CDS_config: unconfig
2264 @mkdir -p $(obj)include
2265 @if [ "$(findstring _legacy_,$@)" ] ; then \
2266 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2267 $(XECHO) "... legacy" ; \
2269 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2271 MPC8568MDS_config: unconfig
2272 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2274 MPC8572DS_config: unconfig
2275 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2277 PM854_config: unconfig
2278 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2280 PM856_config: unconfig
2281 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2285 sbc8540_66_config: unconfig
2286 @mkdir -p $(obj)include
2287 @if [ "$(findstring _66_,$@)" ] ; then \
2288 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2289 $(XECHO) "... 66 MHz PCI" ; \
2291 $(XECHO) "... 33 MHz PCI" ; \
2293 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2295 sbc8548_config: unconfig
2296 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2300 sbc8560_66_config: unconfig
2301 @mkdir -p $(obj)include
2302 @if [ "$(findstring _66_,$@)" ] ; then \
2303 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2304 $(XECHO) "... 66 MHz PCI" ; \
2306 $(XECHO) "... 33 MHz PCI" ; \
2308 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2310 socrates_config: unconfig
2311 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2313 stxgp3_config: unconfig
2314 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2317 stxssa_4M_config: unconfig
2318 @mkdir -p $(obj)include
2319 @if [ "$(findstring _4M_,$@)" ] ; then \
2320 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2321 $(XECHO) "... with 4 MiB flash memory" ; \
2323 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2329 TQM8560_config: unconfig
2330 @mkdir -p $(obj)include
2331 @CTYPE=$(subst TQM,,$(@:_config=)); \
2332 $(XECHO) "... TQM"$${CTYPE}; \
2333 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2334 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2335 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2336 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2337 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2339 #########################################################################
2341 #########################################################################
2343 MPC8610HPCD_config: unconfig
2344 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2346 MPC8641HPCN_config: unconfig
2347 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2349 sbc8641d_config: unconfig
2350 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2352 #########################################################################
2354 #########################################################################
2356 AmigaOneG3SE_config: unconfig
2357 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2359 BAB7xx_config: unconfig
2360 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2362 CPCI750_config: unconfig
2363 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2365 DB64360_config: unconfig
2366 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2368 DB64460_config: unconfig
2369 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2371 ELPPC_config: unconfig
2372 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2375 EVB64260_750CX_config: unconfig
2376 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2378 mpc7448hpc2_config: unconfig
2379 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2381 P3G4_config: unconfig
2382 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2385 p3m7448_config: unconfig
2386 @mkdir -p $(obj)include
2387 @if [ "$(findstring 750_,$@)" ] ; then \
2388 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2390 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2392 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2395 PCIPPC6_config: unconfig
2396 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2398 ppmc7xx_config: unconfig
2399 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2401 ZUMA_config: unconfig
2402 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2404 #========================================================================
2406 #========================================================================
2407 #########################################################################
2408 ## StrongARM Systems
2409 #########################################################################
2411 assabet_config : unconfig
2412 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2414 dnp1110_config : unconfig
2415 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2417 gcplus_config : unconfig
2418 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2420 lart_config : unconfig
2421 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2423 shannon_config : unconfig
2424 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2426 #########################################################################
2428 #########################################################################
2430 #########################################################################
2431 ## Atmel AT91RM9200 Systems
2432 #########################################################################
2434 at91rm9200dk_config : unconfig
2435 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2437 at91sam9261ek_config : unconfig
2438 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2440 at91sam9263ek_config : unconfig
2441 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2443 at91sam9rlek_config : unconfig
2444 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2446 cmc_pu2_config : unconfig
2447 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2449 csb637_config : unconfig
2450 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2452 kb9202_config : unconfig
2453 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2455 m501sk_config : unconfig
2456 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2458 mp2usb_config : unconfig
2459 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2461 #########################################################################
2462 ## Atmel ARM926EJ-S Systems
2463 #########################################################################
2465 at91cap9adk_config : unconfig
2466 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2468 at91sam9260ek_config : unconfig
2469 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2471 ########################################################################
2472 ## ARM Integrator boards - see doc/README-integrator for more info.
2473 integratorap_config \
2482 ap946es_config: unconfig
2483 @board/integratorap/split_by_variant.sh $@
2485 integratorcp_config \
2494 cp1026_config: unconfig
2495 @board/integratorcp/split_by_variant.sh $@
2497 davinci_dvevm_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2500 davinci_schmoogie_config : unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2503 davinci_sffsdr_config : unconfig
2504 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2506 davinci_sonata_config : unconfig
2507 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2510 lpd7a404_config: unconfig
2511 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2513 mx1ads_config : unconfig
2514 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2516 mx1fs2_config : unconfig
2517 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2519 netstar_config: unconfig
2520 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2522 omap1510inn_config : unconfig
2523 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2525 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2527 omap1610inn_config \
2528 omap1610inn_cs0boot_config \
2529 omap1610inn_cs3boot_config \
2530 omap1610inn_cs_autoboot_config \
2532 omap1610h2_cs0boot_config \
2533 omap1610h2_cs3boot_config \
2534 omap1610h2_cs_autoboot_config: unconfig
2535 @mkdir -p $(obj)include
2536 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2537 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2538 $(XECHO) "... configured for CS0 boot"; \
2539 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2540 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2541 $(XECHO) "... configured for CS_AUTO boot"; \
2543 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2544 $(XECHO) "... configured for CS3 boot"; \
2546 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2548 omap5912osk_config : unconfig
2549 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2551 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2554 omap730p2_cs0boot_config \
2555 omap730p2_cs3boot_config : unconfig
2556 @mkdir -p $(obj)include
2557 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2558 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2559 $(XECHO) "... configured for CS0 boot"; \
2561 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2562 $(XECHO) "... configured for CS3 boot"; \
2564 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2566 sbc2410x_config: unconfig
2567 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2569 scb9328_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2572 smdk2400_config : unconfig
2573 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2575 smdk2410_config : unconfig
2576 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2578 SX1_config : unconfig
2579 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2581 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2582 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2585 trab_bigram_config \
2586 trab_bigflash_config \
2587 trab_old_config: unconfig
2588 @mkdir -p $(obj)include
2589 @mkdir -p $(obj)board/trab
2590 @[ -z "$(findstring _bigram,$@)" ] || \
2591 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2592 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2593 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2595 @[ -z "$(findstring _bigflash,$@)" ] || \
2596 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2597 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2598 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2599 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2601 @[ -z "$(findstring _old,$@)" ] || \
2602 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2603 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2604 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2605 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2607 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2609 VCMA9_config : unconfig
2610 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2612 #########################################################################
2613 # ARM supplied Versatile development boards
2614 #########################################################################
2616 cm4008_config : unconfig
2617 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2619 cm41xx_config : unconfig
2620 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2623 versatileab_config \
2624 versatilepb_config : unconfig
2625 @board/versatile/split_by_variant.sh $@
2627 voiceblue_config: unconfig
2628 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2630 #########################################################################
2632 #########################################################################
2634 B2_config : unconfig
2635 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2637 #########################################################################
2639 #########################################################################
2641 armadillo_config: unconfig
2642 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2644 ep7312_config : unconfig
2645 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2647 impa7_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2650 modnet50_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2653 evb4510_config : unconfig
2654 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2656 lpc2292sodimm_config: unconfig
2657 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2659 SMN42_config : unconfig
2660 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2662 #########################################################################
2664 #########################################################################
2666 actux1_config : unconfig
2667 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2669 actux2_config : unconfig
2670 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2672 actux3_config : unconfig
2673 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2675 actux4_config : unconfig
2676 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2678 cerf250_config : unconfig
2679 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2681 cradle_config : unconfig
2682 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2684 csb226_config : unconfig
2685 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2687 delta_config : unconfig
2688 @$(MKCONFIG) $(@:_config=) arm pxa delta
2690 innokom_config : unconfig
2691 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2693 ixdp425_config : unconfig
2694 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2696 ixdpg425_config : unconfig
2697 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2699 lubbock_config : unconfig
2700 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2702 pleb2_config : unconfig
2703 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2705 logodl_config : unconfig
2706 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2709 scpu_config: unconfig
2710 @mkdir -p $(obj)include
2711 @if [ "$(findstring scpu_,$@)" ] ; then \
2712 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2713 $(XECHO) "... on SCPU board variant" ; \
2715 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2717 pxa255_idp_config: unconfig
2718 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2720 trizepsiv_config : unconfig
2721 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2723 wepep250_config : unconfig
2724 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2726 xaeniax_config : unconfig
2727 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2729 xm250_config : unconfig
2730 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2732 xsengine_config : unconfig
2733 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2736 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2738 #########################################################################
2740 #########################################################################
2742 apollon_config : unconfig
2743 @mkdir -p $(obj)include
2744 @mkdir -p $(obj)onenand_ipl/board/apollon
2745 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2746 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2747 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2749 imx31_litekit_config : unconfig
2750 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2752 imx31_phycore_config : unconfig
2753 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2755 mx31ads_config : unconfig
2756 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2758 omap2420h4_config : unconfig
2759 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2761 #========================================================================
2763 #========================================================================
2764 #########################################################################
2766 #########################################################################
2767 sc520_cdp_config : unconfig
2768 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2770 sc520_spunk_config : unconfig
2771 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2773 sc520_spunk_rel_config : unconfig
2774 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2776 #========================================================================
2778 #========================================================================
2779 #########################################################################
2781 #########################################################################
2783 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2785 incaip_100MHz_config \
2786 incaip_133MHz_config \
2787 incaip_150MHz_config \
2788 incaip_config: unconfig
2789 @mkdir -p $(obj)include
2790 @[ -z "$(findstring _100MHz,$@)" ] || \
2791 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2792 $(XECHO) "... with 100MHz system clock" ; \
2794 @[ -z "$(findstring _133MHz,$@)" ] || \
2795 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2796 $(XECHO) "... with 133MHz system clock" ; \
2798 @[ -z "$(findstring _150MHz,$@)" ] || \
2799 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2800 $(XECHO) "... with 150MHz system clock" ; \
2802 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2804 tb0229_config: unconfig
2805 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2807 #########################################################################
2809 #########################################################################
2811 dbau1000_config : unconfig
2812 @mkdir -p $(obj)include
2813 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2814 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2816 dbau1100_config : unconfig
2817 @mkdir -p $(obj)include
2818 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2819 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2821 dbau1500_config : unconfig
2822 @mkdir -p $(obj)include
2823 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2824 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2826 dbau1550_config : unconfig
2827 @mkdir -p $(obj)include
2828 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2829 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2831 dbau1550_el_config : unconfig
2832 @mkdir -p $(obj)include
2833 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2834 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2836 gth2_config : unconfig
2837 @mkdir -p $(obj)include
2838 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2839 @$(MKCONFIG) -a gth2 mips mips gth2
2841 pb1000_config : unconfig
2842 @mkdir -p $(obj)include
2843 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2844 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2846 qemu_mips_config : unconfig
2847 @mkdir -p $(obj)include
2848 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2849 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2851 #########################################################################
2853 #########################################################################
2855 purple_config : unconfig
2856 @$(MKCONFIG) $(@:_config=) mips mips purple
2858 #========================================================================
2860 #========================================================================
2861 #########################################################################
2863 #########################################################################
2865 ADNPESC1_DNPEVA2_base_32_config \
2866 ADNPESC1_base_32_config \
2867 ADNPESC1_config: unconfig
2868 @mkdir -p $(obj)include
2869 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2870 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2871 $(XECHO) "... DNP/EVA2 configuration" ; \
2873 @[ -z "$(findstring _base_32,$@)" ] || \
2874 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2875 $(XECHO) "... NIOS 'base_32' configuration" ; \
2877 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2878 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2879 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2881 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2883 DK1C20_safe_32_config \
2884 DK1C20_standard_32_config \
2885 DK1C20_config: unconfig
2886 @mkdir -p $(obj)include
2887 @[ -z "$(findstring _safe_32,$@)" ] || \
2888 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2889 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2891 @[ -z "$(findstring _standard_32,$@)" ] || \
2892 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2893 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2895 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2896 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2897 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2899 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2901 DK1S10_safe_32_config \
2902 DK1S10_standard_32_config \
2903 DK1S10_mtx_ldk_20_config \
2904 DK1S10_config: unconfig
2905 @mkdir -p $(obj)include
2906 @[ -z "$(findstring _safe_32,$@)" ] || \
2907 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2908 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2910 @[ -z "$(findstring _standard_32,$@)" ] || \
2911 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2912 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2914 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2915 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2916 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2918 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2919 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2920 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2922 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2924 #########################################################################
2926 #########################################################################
2928 EP1C20_config : unconfig
2929 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2931 EP1S10_config : unconfig
2932 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2934 EP1S40_config : unconfig
2935 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2937 PK1C20_config : unconfig
2938 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2940 PCI5441_config : unconfig
2941 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2943 #========================================================================
2945 #========================================================================
2947 ml401_config: unconfig
2948 @mkdir -p $(obj)include
2949 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2950 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2952 suzaku_config: unconfig
2953 @mkdir -p $(obj)include
2954 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2955 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2957 xupv2p_config: unconfig
2958 @mkdir -p $(obj)include
2959 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2960 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2962 #========================================================================
2964 #========================================================================
2966 # Analog Devices boards
2967 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2969 $(BFIN_BOARDS:%=%_config) : unconfig
2970 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2976 #========================================================================
2978 #========================================================================
2980 atngw100_config : unconfig
2981 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2983 atstk1002_config : unconfig
2984 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2986 atstk1003_config : unconfig
2987 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2989 atstk1004_config : unconfig
2990 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2992 atstk1006_config : unconfig
2993 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2995 favr-32-ezkit_config : unconfig
2996 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
2998 hammerhead_config : unconfig
2999 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3001 mimc200_config : unconfig
3002 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3004 #========================================================================
3006 #========================================================================
3008 #########################################################################
3009 ## sh2 (Renesas SuperH)
3010 #########################################################################
3011 rsk7203_config: unconfig
3013 @echo "#define CONFIG_RSK7203 1" >> include/config.h
3014 @./mkconfig -a $(@:_config=) sh sh2 rsk7203
3016 #########################################################################
3017 ## sh3 (Renesas SuperH)
3018 #########################################################################
3020 mpr2_config: unconfig
3021 @mkdir -p $(obj)include
3022 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3023 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3025 ms7720se_config: unconfig
3026 @mkdir -p $(obj)include
3027 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3028 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3030 #########################################################################
3031 ## sh4 (Renesas SuperH)
3032 #########################################################################
3034 MigoR_config : unconfig
3035 @mkdir -p $(obj)include
3036 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3037 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3039 ms7750se_config: unconfig
3040 @mkdir -p $(obj)include
3041 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3042 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3044 ms7722se_config : unconfig
3045 @mkdir -p $(obj)include
3046 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3047 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3049 r2dplus_config : unconfig
3050 @mkdir -p $(obj)include
3051 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3052 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
3054 r7780mp_config: unconfig
3055 @mkdir -p $(obj)include
3056 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3057 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
3059 sh7763rdp_config : unconfig
3060 @mkdir -p $(obj)include
3061 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3062 @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
3064 sh7785lcr_config : unconfig
3066 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3067 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
3069 #========================================================================
3071 #========================================================================
3073 #########################################################################
3075 #########################################################################
3077 # Gaisler GR-XC3S-1500 board
3078 gr_xc3s_1500_config : unconfig
3079 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3081 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3082 gr_cpci_ax2000_config : unconfig
3083 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3085 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3086 # Development board Stratix II edition, FPGA Device EP2S60.
3087 gr_ep2s60_config: unconfig
3088 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3090 # Gaisler LEON3 GRSIM simulator
3091 grsim_config : unconfig
3092 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3094 #########################################################################
3096 #########################################################################
3098 # Gaisler LEON2 GRSIM simulator
3099 grsim_leon2_config : unconfig
3100 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3102 #########################################################################
3103 #########################################################################
3104 #########################################################################
3107 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3108 $(obj)examples/hello_world $(obj)examples/interrupt \
3109 $(obj)examples/mem_to_mem_idma2intr \
3110 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3111 $(obj)examples/test_burst $(obj)examples/timer
3112 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3113 $(obj)tools/env/{fw_printenv,fw_setenv} \
3114 $(obj)tools/envcrc \
3115 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3116 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3117 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3118 $(obj)tools/ncb $(obj)tools/ubsha1
3119 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3120 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3121 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3122 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3123 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3124 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3125 @rm -f $(obj)include/bmp_logo.h
3126 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3127 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3128 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3129 @find $(OBJTREE) -type f \
3130 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3131 -o -name '*.o' -o -name '*.a' \) -print \
3135 @find $(OBJTREE) -type f \( -name .depend \
3136 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3139 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3140 $(obj)cscope.* $(obj)*.*~
3141 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3142 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3143 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3144 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3145 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3146 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3147 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3148 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3149 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3151 ifeq ($(OBJTREE),$(SRCTREE))
3153 distclean: clobber unconfig
3156 distclean: clobber unconfig
3161 F=`basename $(TOPDIR)` ; cd .. ; \
3162 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3164 #########################################################################