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 munices_config: unconfig
630 @$(MKCONFIG) munices ppc mpc5xxx munices
632 MVBC_P_config: unconfig
633 @mkdir -p $(obj)include
634 @mkdir -p $(obj)board/mvbc_p
635 @ >$(obj)include/config.h
636 @[ -z "$(findstring MVBC_P,$@)" ] || \
637 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
638 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
640 o2dnt_config: unconfig
641 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
643 pf5200_config: unconfig
644 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
648 PM520_ROMBOOT_config \
649 PM520_ROMBOOT_DDR_config: unconfig
650 @mkdir -p $(obj)include
651 @[ -z "$(findstring DDR,$@)" ] || \
652 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
653 $(XECHO) "... DDR memory revision" ; \
655 @[ -z "$(findstring ROMBOOT,$@)" ] || \
656 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
657 $(XECHO) "... booting from 8-bit flash" ; \
659 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
661 smmaco4_config: unconfig
662 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
664 spieval_config: unconfig
665 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
668 TB5200_config: unconfig
669 @mkdir -p $(obj)include
670 @[ -z "$(findstring _B,$@)" ] || \
671 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
672 $(XECHO) "... with MPC5200B processor" ; \
674 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
678 TOP5200_config: unconfig
679 @mkdir -p $(obj)include
680 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
681 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
685 Total5200_lowboot_config \
686 Total5200_Rev2_config \
687 Total5200_Rev2_lowboot_config: unconfig
688 @mkdir -p $(obj)include
689 @mkdir -p $(obj)board/total5200
690 @[ -z "$(findstring 5100,$@)" ] || \
691 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
692 $(XECHO) "... with MGT5100 processor" ; \
694 @[ -z "$(findstring 5200,$@)" ] || \
695 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
696 $(XECHO) "... with MPC5200 processor" ; \
698 @[ -n "$(findstring Rev,$@)" ] || \
699 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
700 $(XECHO) "... revision 1 board" ; \
702 @[ -z "$(findstring Rev2_,$@)" ] || \
703 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
704 $(XECHO) "... revision 2 board" ; \
706 @[ -z "$(findstring lowboot_,$@)" ] || \
707 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
708 $(XECHO) "... with lowboot configuration" ; \
710 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
713 cam5200_niosflash_config \
717 TQM5200S_HIGHBOOT_config \
719 TQM5200_B_HIGHBOOT_config \
721 TQM5200_STK100_config: unconfig
722 @mkdir -p $(obj)include
723 @mkdir -p $(obj)board/tqc/tqm5200
724 @[ -z "$(findstring cam5200,$@)" ] || \
725 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
726 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
727 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
728 $(XECHO) "... TQM5200S on Cam5200" ; \
730 @[ -z "$(findstring niosflash,$@)" ] || \
731 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
732 $(XECHO) "... with NIOS flash driver" ; \
734 @[ -z "$(findstring fo300,$@)" ] || \
735 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
736 $(XECHO) "... TQM5200 on FO300" ; \
738 @[ -z "$(findstring MiniFAP,$@)" ] || \
739 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
740 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
742 @[ -z "$(findstring STK100,$@)" ] || \
743 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
744 $(XECHO) "... on a STK52XX.100 base board" ; \
746 @[ -z "$(findstring TQM5200_B,$@)" ] || \
747 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
749 @[ -z "$(findstring TQM5200S,$@)" ] || \
750 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
751 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
753 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
754 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
756 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
758 uc101_config: unconfig
759 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
761 v38b_config: unconfig
762 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
764 #########################################################################
766 #########################################################################
769 ads5121_rev2_config \
771 @mkdir -p $(obj)include
772 @if [ "$(findstring rev2,$@)" ] ; then \
773 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
775 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
778 #########################################################################
780 #########################################################################
786 @mkdir -p $(obj)include
787 $(if $(findstring AdderII,$@), \
788 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
789 @$(MKCONFIG) -a Adder ppc mpc8xx adder
791 AdderUSB_config: unconfig
792 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
799 FADS860T_config: unconfig
800 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
802 AMX860_config : unconfig
803 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
805 c2mon_config: unconfig
806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
809 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
811 cogent_mpc8xx_config: unconfig
812 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
814 ELPT860_config: unconfig
815 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
817 EP88x_config: unconfig
818 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
820 ESTEEM192E_config: unconfig
821 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
823 ETX094_config : unconfig
824 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
826 FLAGADM_config: unconfig
827 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
829 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
832 GEN860T_config: unconfig
833 @mkdir -p $(obj)include
834 @[ -z "$(findstring _SC,$@)" ] || \
835 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
836 $(XECHO) "With reduced H/W feature set (SC)..." ; \
838 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
840 GENIETV_config: unconfig
841 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
844 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
846 hermes_config : unconfig
847 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
849 HMI10_config : unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
852 IAD210_config: unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
855 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
857 ICU862_100MHz_config \
858 ICU862_config: unconfig
859 @mkdir -p $(obj)include
860 @[ -z "$(findstring _100MHz,$@)" ] || \
861 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
862 $(XECHO) "... with 100MHz system clock" ; \
864 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
866 IP860_config : unconfig
867 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
871 IVML24_config: unconfig
872 @mkdir -p $(obj)include
873 @[ -z "$(findstring IVML24_config,$@)" ] || \
874 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
876 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
877 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
879 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
880 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
882 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
886 IVMS8_config: unconfig
887 @mkdir -p $(obj)include
888 @[ -z "$(findstring IVMS8_config,$@)" ] || \
889 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
891 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
892 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
894 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
895 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
897 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
899 KUP4K_config : unconfig
900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
902 KUP4X_config : unconfig
903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
905 LANTEC_config : unconfig
906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
908 lwmon_config: unconfig
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
912 MBX860T_config: unconfig
913 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
915 mgsuvd_config: unconfig
916 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
918 MHPC_config: unconfig
919 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
921 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
924 NETVIA_config: unconfig
925 @mkdir -p $(obj)include
926 @[ -z "$(findstring NETVIA_config,$@)" ] || \
927 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
928 $(XECHO) "... Version 1" ; \
930 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
931 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
932 $(XECHO) "... Version 2" ; \
934 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
936 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
939 NETPHONE_config: unconfig
940 @mkdir -p $(obj)include
941 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
942 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
944 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
945 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
947 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
949 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
951 NETTA_ISDN_6412_SWAPHOOK_config \
952 NETTA_ISDN_SWAPHOOK_config \
953 NETTA_6412_SWAPHOOK_config \
954 NETTA_SWAPHOOK_config \
955 NETTA_ISDN_6412_config \
958 NETTA_config: unconfig
959 @mkdir -p $(obj)include
960 @[ -z "$(findstring ISDN_,$@)" ] || \
961 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
963 @[ -n "$(findstring ISDN_,$@)" ] || \
964 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
966 @[ -z "$(findstring 6412_,$@)" ] || \
967 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
969 @[ -n "$(findstring 6412_,$@)" ] || \
970 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
972 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
973 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
975 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
976 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
978 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
980 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
983 NETTA2_config: unconfig
984 @mkdir -p $(obj)include
985 @[ -z "$(findstring NETTA2_config,$@)" ] || \
986 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
988 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
989 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
991 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
995 CP850_config: unconfig
996 @mkdir -p $(obj)include
997 @[ -z "$(findstring CP850,$@)" ] || \
998 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
999 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1001 @[ -z "$(findstring Rev1,$@)" ] || \
1002 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1004 @[ -z "$(findstring Rev2,$@)" ] || \
1005 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1007 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
1009 NX823_config: unconfig
1010 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
1012 pcu_e_config: unconfig
1013 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
1015 QS850_config: unconfig
1016 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1018 QS823_config: unconfig
1019 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1021 QS860T_config: unconfig
1022 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1024 quantum_config: unconfig
1025 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1027 R360MPI_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1030 RBC823_config: unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1033 RPXClassic_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1036 RPXlite_config: unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1039 RPXlite_DW_64_config \
1040 RPXlite_DW_LCD_config \
1041 RPXlite_DW_64_LCD_config \
1042 RPXlite_DW_NVRAM_config \
1043 RPXlite_DW_NVRAM_64_config \
1044 RPXlite_DW_NVRAM_LCD_config \
1045 RPXlite_DW_NVRAM_64_LCD_config \
1046 RPXlite_DW_config: unconfig
1047 @mkdir -p $(obj)include
1048 @[ -z "$(findstring _64,$@)" ] || \
1049 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1050 $(XECHO) "... with 64MHz system clock ..."; \
1052 @[ -z "$(findstring _LCD,$@)" ] || \
1053 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1054 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1055 $(XECHO) "... with LCD display ..."; \
1057 @[ -z "$(findstring _NVRAM,$@)" ] || \
1058 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1059 $(XECHO) "... with ENV in NVRAM ..."; \
1061 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1063 rmu_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1066 RRvision_config: unconfig
1067 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1069 RRvision_LCD_config: unconfig
1070 @mkdir -p $(obj)include
1071 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1072 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1073 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1075 SM850_config : unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
1078 spc1920_config: unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1081 SPD823TS_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1084 stxxtc_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1087 svm_sc8xx_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1090 SXNI855T_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1093 # EMK MPC8xx based modules
1094 TOP860_config: unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1097 # Play some tricks for configuration selection
1098 # Only 855 and 860 boards may come with FEC
1099 # and only 823 boards may have LCD support
1100 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1106 TQM823L_LCD_config \
1119 virtlab2_config: unconfig
1120 @mkdir -p $(obj)include
1121 @[ -z "$(findstring _LCD,$@)" ] || \
1122 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1123 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1124 $(XECHO) "... with LCD display" ; \
1126 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
1128 TTTech_config: unconfig
1129 @mkdir -p $(obj)include
1130 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1131 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1132 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1134 uc100_config : unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1137 v37_config: unconfig
1138 @mkdir -p $(obj)include
1139 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1140 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1141 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1143 wtk_config: unconfig
1144 @mkdir -p $(obj)include
1145 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1146 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1147 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
1149 #########################################################################
1151 #########################################################################
1152 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1154 acadia_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1157 acadia_nand_config: unconfig
1158 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1159 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1160 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1161 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1162 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1163 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1165 ADCIOP_config: unconfig
1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1168 alpr_config: unconfig
1169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1171 AP1000_config:unconfig
1172 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1174 APC405_config: unconfig
1175 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1177 AR405_config: unconfig
1178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1180 ASH405_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1183 bamboo_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1186 bamboo_nand_config: unconfig
1187 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1188 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1189 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1190 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1191 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1192 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1194 bubinga_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1197 CANBT_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1200 # Canyonlands & Glacier use different U-Boot images
1201 canyonlands_config \
1202 glacier_config: unconfig
1203 @mkdir -p $(obj)include
1204 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1205 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1206 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1208 canyonlands_nand_config \
1209 glacier_nand_config: unconfig
1210 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1211 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1212 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1213 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1214 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1215 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1216 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1217 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1220 CATcenter_25_config \
1221 CATcenter_33_config: unconfig
1222 @mkdir -p $(obj)include
1223 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1224 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1225 @[ -z "$(findstring _25,$@)" ] || \
1226 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1227 $(XECHO) "SysClk = 25MHz" ; \
1229 @[ -z "$(findstring _33,$@)" ] || \
1230 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1231 $(XECHO) "SysClk = 33MHz" ; \
1233 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1235 CMS700_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1238 CPCI2DP_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1244 CPCI405AB_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1246 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1248 CPCIISER4_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1251 CRAYL1_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1254 csb272_config: unconfig
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1257 csb472_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1260 DASA_SIM_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1263 DP405_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1266 DU405_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1269 DU440_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1272 ebony_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1275 ERIC_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1278 EXBITGEN_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1281 G2000_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1284 hcu4_config: unconfig
1285 @mkdir -p $(obj)board/netstal/common
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1288 hcu5_config: unconfig
1289 @mkdir -p $(obj)board/netstal/common
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1292 HH405_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1295 HUB405_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1298 JSE_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1301 KAREF_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1304 katmai_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1307 # Kilauea & Haleakala images are identical (recognized via PVR)
1309 haleakala_config: unconfig
1310 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1312 kilauea_nand_config \
1313 haleakala_nand_config: unconfig
1314 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1315 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1316 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1317 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1318 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1319 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1321 korat_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1324 luan_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1327 lwmon5_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1330 makalu_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1333 mcu25_config: unconfig
1334 @mkdir -p $(obj)board/netstal/common
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1337 METROBOX_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1340 MIP405_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1343 MIP405T_config: unconfig
1344 @mkdir -p $(obj)include
1345 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1346 @$(XECHO) "Enable subset config for MIP405T"
1347 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1349 ML2_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1352 ml300_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1355 ml507_flash_config: unconfig
1356 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1357 @cp $(obj)board/xilinx/ml507/u-boot-rom.lds $(obj)board/xilinx/ml507/u-boot.lds
1358 @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
1359 @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
1361 ml507_config: unconfig
1362 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1363 @cp $(obj)board/xilinx/ml507/u-boot-ram.lds $(obj)board/xilinx/ml507/u-boot.lds
1364 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1366 ocotea_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1370 ORSG_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1373 p3p440_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1376 PCI405_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1379 pcs440ep_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1382 PIP405_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1385 PLU405_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1388 PMC405_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1391 PMC440_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1394 PPChameleonEVB_config \
1395 PPChameleonEVB_BA_25_config \
1396 PPChameleonEVB_ME_25_config \
1397 PPChameleonEVB_HI_25_config \
1398 PPChameleonEVB_BA_33_config \
1399 PPChameleonEVB_ME_33_config \
1400 PPChameleonEVB_HI_33_config: unconfig
1401 @mkdir -p $(obj)include
1402 @[ -z "$(findstring EVB_BA,$@)" ] || \
1403 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1404 $(XECHO) "... BASIC model" ; \
1406 @[ -z "$(findstring EVB_ME,$@)" ] || \
1407 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1408 $(XECHO) "... MEDIUM model" ; \
1410 @[ -z "$(findstring EVB_HI,$@)" ] || \
1411 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1412 $(XECHO) "... HIGH-END model" ; \
1414 @[ -z "$(findstring _25,$@)" ] || \
1415 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1416 $(XECHO) "SysClk = 25MHz" ; \
1418 @[ -z "$(findstring _33,$@)" ] || \
1419 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1420 $(XECHO) "SysClk = 33MHz" ; \
1422 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1424 quad100hd_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
1427 redwood_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
1430 sbc405_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1437 rainier_config: unconfig
1438 @mkdir -p $(obj)include
1439 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1440 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1441 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1443 sequoia_nand_config \
1444 rainier_nand_config: unconfig
1445 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1446 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1447 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1448 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1449 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1450 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1451 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1452 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1454 taihu_config: unconfig
1455 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1457 taishan_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1460 VOH405_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1463 VOM405_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1467 W7OLMG_config: unconfig
1468 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1470 # Walnut & Sycamore images are identical (recognized via PVR)
1472 sycamore_config: unconfig
1473 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1475 WUH405_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1478 XPEDITE1K_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1482 yellowstone_config: unconfig
1483 @mkdir -p $(obj)include
1484 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1485 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1486 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1488 yucca_config: unconfig
1489 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1491 zeus_config: unconfig
1492 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1494 #########################################################################
1496 #########################################################################
1499 Yukon8220_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1502 sorcery_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1505 #########################################################################
1507 #########################################################################
1508 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1510 A3000_config: unconfig
1511 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1513 barco_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1516 BMW_config: unconfig
1517 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1520 CPC45_ROMBOOT_config: unconfig
1521 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1522 @cd $(obj)include ; \
1523 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1524 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1525 $(XECHO) "... booting from 8-bit flash" ; \
1527 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1528 $(XECHO) "... booting from 64-bit flash" ; \
1530 echo "export CONFIG_BOOT_ROM" >> config.mk;
1532 CU824_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1535 debris_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1538 eXalion_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1541 HIDDEN_DRAGON_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1544 kvme080_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1547 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1549 #linkstation_HDLAN_config \
1550 # Remove this line when HDLAN is fixed
1551 linkstation_HGLAN_config: unconfig
1552 @mkdir -p $(obj)include
1554 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1555 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1557 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1559 MOUSSE_config: unconfig
1560 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1562 MUSENKI_config: unconfig
1563 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1565 MVBLUE_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1568 OXC_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1571 PN62_config: unconfig
1572 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1574 Sandpoint8240_config: unconfig
1575 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1577 Sandpoint8245_config: unconfig
1578 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1580 sbc8240_config: unconfig
1581 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1583 SL8245_config: unconfig
1584 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1586 utx8245_config: unconfig
1587 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1589 #########################################################################
1591 #########################################################################
1593 atc_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1596 cogent_mpc8260_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1600 CPU86_ROMBOOT_config: unconfig
1601 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1602 @cd $(obj)include ; \
1603 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1604 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1605 $(XECHO) "... booting from 8-bit flash" ; \
1607 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1608 $(XECHO) "... booting from 64-bit flash" ; \
1610 echo "export CONFIG_BOOT_ROM" >> config.mk;
1613 CPU87_ROMBOOT_config: unconfig
1614 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1615 @cd $(obj)include ; \
1616 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1617 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1618 $(XECHO) "... booting from 8-bit flash" ; \
1620 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1621 $(XECHO) "... booting from 64-bit flash" ; \
1623 echo "export CONFIG_BOOT_ROM" >> config.mk;
1626 ep8248E_config : unconfig
1627 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1629 ep8260_config: unconfig
1630 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1632 ep82xxm_config: unconfig
1633 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1635 gw8260_config: unconfig
1636 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1638 hymod_config: unconfig
1639 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1641 IDS8247_config: unconfig
1642 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1644 IPHASE4539_config: unconfig
1645 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1648 ISPAN_REVB_config: unconfig
1649 @mkdir -p $(obj)include
1650 @if [ "$(findstring _REVB_,$@)" ] ; then \
1651 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1653 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1655 mgcoge_config : unconfig
1656 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1659 MPC8260ADS_lowboot_config \
1660 MPC8260ADS_33MHz_config \
1661 MPC8260ADS_33MHz_lowboot_config \
1662 MPC8260ADS_40MHz_config \
1663 MPC8260ADS_40MHz_lowboot_config \
1665 MPC8272ADS_lowboot_config \
1667 PQ2FADS_lowboot_config \
1669 PQ2FADS-VR_lowboot_config \
1671 PQ2FADS-ZU_lowboot_config \
1672 PQ2FADS-ZU_66MHz_config \
1673 PQ2FADS-ZU_66MHz_lowboot_config \
1675 @mkdir -p $(obj)include
1676 @mkdir -p $(obj)board/freescale/mpc8260ads
1677 $(if $(findstring PQ2FADS,$@), \
1678 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1679 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1680 $(if $(findstring MHz,$@), \
1681 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1682 $(if $(findstring VR,$@), \
1683 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1684 @[ -z "$(findstring lowboot_,$@)" ] || \
1685 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1686 $(XECHO) "... with lowboot configuration" ; \
1688 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1690 MPC8266ADS_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1693 muas3001_dev_config \
1694 muas3001_config : unconfig
1695 @mkdir -p $(obj)include
1696 @mkdir -p $(obj)board/muas3001
1697 @if [ "$(findstring dev,$@)" ] ; then \
1698 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1700 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1702 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1704 PM825_ROMBOOT_config \
1705 PM825_BIGFLASH_config \
1706 PM825_ROMBOOT_BIGFLASH_config \
1708 PM826_ROMBOOT_config \
1709 PM826_BIGFLASH_config \
1710 PM826_ROMBOOT_BIGFLASH_config: unconfig
1711 @mkdir -p $(obj)include
1712 @mkdir -p $(obj)board/pm826
1713 @if [ "$(findstring PM825_,$@)" ] ; then \
1714 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1716 >$(obj)include/config.h ; \
1718 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1719 $(XECHO) "... booting from 8-bit flash" ; \
1720 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1721 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1722 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1723 $(XECHO) "... with 32 MB Flash" ; \
1724 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1727 $(XECHO) "... booting from 64-bit flash" ; \
1728 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1729 $(XECHO) "... with 32 MB Flash" ; \
1730 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1731 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1733 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1736 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1740 PM828_ROMBOOT_config \
1741 PM828_ROMBOOT_PCI_config: unconfig
1742 @mkdir -p $(obj)include
1743 @mkdir -p $(obj)board/pm826
1744 @if [ "$(findstring _PCI_,$@)" ] ; then \
1745 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1746 $(XECHO) "... with PCI enabled" ; \
1748 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1749 $(XECHO) "... booting from 8-bit flash" ; \
1750 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1751 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1753 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1755 ppmc8260_config: unconfig
1756 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1758 Rattler8248_config \
1759 Rattler_config: unconfig
1760 @mkdir -p $(obj)include
1761 $(if $(findstring 8248,$@), \
1762 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1763 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1765 RPXsuper_config: unconfig
1766 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1768 rsdproto_config: unconfig
1769 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1771 sacsng_config: unconfig
1772 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1774 sbc8260_config: unconfig
1775 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1777 SCM_config: unconfig
1778 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1790 TQM8265_AA_config: unconfig
1791 @mkdir -p $(obj)include
1793 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1794 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1795 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1796 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1797 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1798 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1799 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1800 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1801 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1802 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1803 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1805 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1806 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1808 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1809 echo "... with $${CFREQ}MHz system clock" ; \
1810 if [ "$${CACHE}" = "yes" ] ; then \
1811 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1812 $(XECHO) "... with L2 Cache support" ; \
1814 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1815 $(XECHO) "... without L2 Cache support" ; \
1817 if [ "$${BMODE}" = "60x" ] ; then \
1818 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1819 $(XECHO) "... with 60x Bus Mode" ; \
1821 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1822 $(XECHO) "... without 60x Bus Mode" ; \
1824 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
1826 TQM8272_config: unconfig
1827 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1829 VoVPN-GW_66MHz_config \
1830 VoVPN-GW_100MHz_config: unconfig
1831 @mkdir -p $(obj)include
1832 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1833 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1835 ZPC1900_config: unconfig
1836 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1838 #########################################################################
1840 #########################################################################
1842 M52277EVB_config: unconfig
1843 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1846 M5235EVB_Flash16_config \
1847 M5235EVB_Flash32_config: unconfig
1849 M5235EVB_config) FLASH=16;; \
1850 M5235EVB_Flash16_config) FLASH=16;; \
1851 M5235EVB_Flash32_config) FLASH=32;; \
1853 if [ "$${FLASH}" != "16" ] ; then \
1854 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1855 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1856 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1858 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1859 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1861 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1863 M5249EVB_config : unconfig
1864 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1866 M5253DEMO_config : unconfig
1867 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
1869 M5253EVBE_config : unconfig
1870 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1872 cobra5272_config : unconfig
1873 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1875 EB+MCF-EV123_config : unconfig
1876 @mkdir -p $(obj)include
1877 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1878 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1879 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1881 EB+MCF-EV123_internal_config : unconfig
1882 @mkdir -p $(obj)include
1883 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1884 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1885 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1887 idmr_config : unconfig
1888 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1890 M5271EVB_config : unconfig
1891 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
1893 M5272C3_config : unconfig
1894 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
1896 M5275EVB_config : unconfig
1897 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1899 M5282EVB_config : unconfig
1900 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
1903 M5329BFEE_config : unconfig
1905 M5329AFEE_config) NAND=0;; \
1906 M5329BFEE_config) NAND=16;; \
1908 if [ "$${NAND}" != "0" ] ; then \
1909 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1911 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1913 M5373EVB_config : unconfig
1915 M5373EVB_config) NAND=16;; \
1917 if [ "$${NAND}" != "0" ] ; then \
1918 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1920 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1923 M54451EVB_spansion_config \
1924 M54451EVB_stmicro_config : unconfig
1926 M54451EVB_config) FLASH=SPANSION;; \
1927 M54451EVB_spansion_config) FLASH=SPANSION;; \
1928 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1930 if [ "$${FLASH}" = "SPANSION" ] ; then \
1931 echo "#define CFG_SPANSION_BOOT" >> $(obj)include/config.h ; \
1932 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1933 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1934 $(XECHO) "... with SPANSION boot..." ; \
1936 if [ "$${FLASH}" = "STMICRO" ] ; then \
1937 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1938 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1939 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1940 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1941 $(XECHO) "... with ST Micro boot..." ; \
1943 echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1944 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
1947 M54455EVB_atmel_config \
1948 M54455EVB_intel_config \
1949 M54455EVB_a33_config \
1950 M54455EVB_a66_config \
1951 M54455EVB_i33_config \
1952 M54455EVB_i66_config \
1953 M54455EVB_stm33_config : unconfig
1955 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1956 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1957 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1958 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1959 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1960 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1961 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1962 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1964 if [ "$${FLASH}" = "INTEL" ] ; then \
1965 echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1966 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1967 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1968 $(XECHO) "... with INTEL boot..." ; \
1970 if [ "$${FLASH}" = "ATMEL" ] ; then \
1971 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1972 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1973 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1974 $(XECHO) "... with ATMEL boot..." ; \
1976 if [ "$${FLASH}" = "STMICRO" ] ; then \
1977 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1978 echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
1979 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1980 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1981 $(XECHO) "... with ST Micro boot..." ; \
1983 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1984 $(XECHO) "... with $${FREQ}Hz input clock"
1985 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1993 M5475GFE_config : unconfig
1995 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1996 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1997 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1998 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1999 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2000 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2001 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2003 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
2004 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2005 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2006 if [ "$${RAM1}" != "0" ] ; then \
2007 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2009 if [ "$${CODE}" != "0" ] ; then \
2010 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2012 if [ "$${VID}" == "1" ] ; then \
2013 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2015 if [ "$${USB}" == "1" ] ; then \
2016 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2018 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2027 M5485HFE_config : unconfig
2029 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2030 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2031 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2032 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2033 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2034 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2035 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2036 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2038 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
2039 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2040 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2041 if [ "$${RAM1}" != "0" ] ; then \
2042 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2044 if [ "$${CODE}" != "0" ] ; then \
2045 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2047 if [ "$${VID}" == "1" ] ; then \
2048 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
2050 if [ "$${USB}" == "1" ] ; then \
2051 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
2053 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2055 TASREG_config : unconfig
2056 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2058 #########################################################################
2060 #########################################################################
2062 MPC8313ERDB_33_config \
2063 MPC8313ERDB_66_config \
2064 MPC8313ERDB_NAND_33_config \
2065 MPC8313ERDB_NAND_66_config: unconfig
2066 @mkdir -p $(obj)include
2067 @mkdir -p $(obj)board/freescale/mpc8313erdb
2068 @if [ "$(findstring _33_,$@)" ] ; then \
2069 $(XECHO) -n "...33M ..." ; \
2070 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
2072 if [ "$(findstring _66_,$@)" ] ; then \
2073 $(XECHO) -n "...66M..." ; \
2074 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2076 if [ "$(findstring _NAND_,$@)" ] ; then \
2077 $(XECHO) -n "...NAND..." ; \
2078 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2079 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2081 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
2083 MPC8315ERDB_config: unconfig
2084 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
2086 MPC8323ERDB_config: unconfig
2087 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
2089 MPC832XEMDS_config \
2090 MPC832XEMDS_HOST_33_config \
2091 MPC832XEMDS_HOST_66_config \
2092 MPC832XEMDS_SLAVE_config \
2093 MPC832XEMDS_ATM_config: unconfig
2094 @mkdir -p $(obj)include
2095 @if [ "$(findstring _HOST_,$@)" ] ; then \
2096 $(XECHO) -n "... PCI HOST " ; \
2097 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2099 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2100 $(XECHO) "...PCI SLAVE 66M" ; \
2101 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2102 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2104 if [ "$(findstring _33_,$@)" ] ; then \
2105 $(XECHO) -n "...33M ..." ; \
2106 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2107 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2109 if [ "$(findstring _66_,$@)" ] ; then \
2110 $(XECHO) -n "...66M..." ; \
2111 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2112 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2114 if [ "$(findstring _ATM_,$@)" ] ; then \
2115 $(XECHO) -n "...ATM..." ; \
2116 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2117 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2119 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2121 MPC8349EMDS_config: unconfig
2122 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2125 MPC8349ITX_LOWBOOT_config \
2126 MPC8349ITXGP_config: unconfig
2127 @mkdir -p $(obj)include
2128 @mkdir -p $(obj)board/freescale/mpc8349itx
2129 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2130 @if [ "$(findstring GP,$@)" ] ; then \
2131 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2133 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2134 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2136 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2138 MPC8360EMDS_config \
2139 MPC8360EMDS_HOST_33_config \
2140 MPC8360EMDS_HOST_66_config \
2141 MPC8360EMDS_SLAVE_config \
2142 MPC8360EMDS_ATM_config: unconfig
2143 @mkdir -p $(obj)include
2144 @if [ "$(findstring _HOST_,$@)" ] ; then \
2145 $(XECHO) -n "... PCI HOST " ; \
2146 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2148 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2149 $(XECHO) "...PCI SLAVE 66M" ; \
2150 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2151 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2153 if [ "$(findstring _33_,$@)" ] ; then \
2154 $(XECHO) -n "...33M ..." ; \
2155 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2156 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2158 if [ "$(findstring _66_,$@)" ] ; then \
2159 $(XECHO) -n "...66M..." ; \
2160 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2161 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2163 if [ "$(findstring _ATM_,$@)" ] ; then \
2164 $(XECHO) -n "...ATM..." ; \
2165 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2166 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2168 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2170 MPC8360ERDK_33_config \
2171 MPC8360ERDK_66_config \
2172 MPC8360ERDK_config: unconfig
2173 @mkdir -p $(obj)include
2174 @if [ "$(findstring _33_,$@)" ] ; then \
2175 $(XECHO) -n "... CLKIN 33MHz " ; \
2176 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2178 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2180 MPC837XEMDS_config \
2181 MPC837XEMDS_HOST_config: unconfig
2182 @mkdir -p $(obj)include
2183 @if [ "$(findstring _HOST_,$@)" ] ; then \
2184 $(XECHO) -n "... PCI HOST " ; \
2185 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2187 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2189 MPC837XERDB_config: unconfig
2190 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2192 MVBLM7_config: unconfig
2193 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2195 sbc8349_config: unconfig
2196 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2198 TQM834x_config: unconfig
2199 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
2202 #########################################################################
2204 #########################################################################
2206 ATUM8548_config: unconfig
2207 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2209 MPC8540ADS_config: unconfig
2210 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2212 MPC8540EVAL_config \
2213 MPC8540EVAL_33_config \
2214 MPC8540EVAL_66_config \
2215 MPC8540EVAL_33_slave_config \
2216 MPC8540EVAL_66_slave_config: unconfig
2217 @mkdir -p $(obj)include
2218 @if [ "$(findstring _33_,$@)" ] ; then \
2219 $(XECHO) "... 33 MHz PCI" ; \
2221 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2222 $(XECHO) "... 66 MHz PCI" ; \
2224 if [ "$(findstring _slave_,$@)" ] ; then \
2225 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2226 $(XECHO) " slave" ; \
2228 $(XECHO) " host" ; \
2230 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2232 MPC8560ADS_config: unconfig
2233 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2235 MPC8541CDS_legacy_config \
2236 MPC8541CDS_config: unconfig
2237 @mkdir -p $(obj)include
2238 @if [ "$(findstring _legacy_,$@)" ] ; then \
2239 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2240 $(XECHO) "... legacy" ; \
2242 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2244 MPC8544DS_config: unconfig
2245 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2247 MPC8548CDS_legacy_config \
2248 MPC8548CDS_config: unconfig
2249 @mkdir -p $(obj)include
2250 @if [ "$(findstring _legacy_,$@)" ] ; then \
2251 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2252 $(XECHO) "... legacy" ; \
2254 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2256 MPC8555CDS_legacy_config \
2257 MPC8555CDS_config: unconfig
2258 @mkdir -p $(obj)include
2259 @if [ "$(findstring _legacy_,$@)" ] ; then \
2260 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2261 $(XECHO) "... legacy" ; \
2263 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2265 MPC8568MDS_config: unconfig
2266 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2268 PM854_config: unconfig
2269 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2271 PM856_config: unconfig
2272 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2276 sbc8540_66_config: unconfig
2277 @mkdir -p $(obj)include
2278 @if [ "$(findstring _66_,$@)" ] ; then \
2279 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2280 $(XECHO) "... 66 MHz PCI" ; \
2282 $(XECHO) "... 33 MHz PCI" ; \
2284 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2286 sbc8548_config: unconfig
2287 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2291 sbc8560_66_config: unconfig
2292 @mkdir -p $(obj)include
2293 @if [ "$(findstring _66_,$@)" ] ; then \
2294 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2295 $(XECHO) "... 66 MHz PCI" ; \
2297 $(XECHO) "... 33 MHz PCI" ; \
2299 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2301 socrates_config: unconfig
2302 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
2304 stxgp3_config: unconfig
2305 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2308 stxssa_4M_config: unconfig
2309 @mkdir -p $(obj)include
2310 @if [ "$(findstring _4M_,$@)" ] ; then \
2311 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2312 $(XECHO) "... with 4 MiB flash memory" ; \
2314 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2320 TQM8560_config: unconfig
2321 @mkdir -p $(obj)include
2322 @CTYPE=$(subst TQM,,$(@:_config=)); \
2323 $(XECHO) "... TQM"$${CTYPE}; \
2324 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2325 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2326 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2327 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
2328 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2330 #########################################################################
2332 #########################################################################
2334 MPC8610HPCD_config: unconfig
2335 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2337 MPC8641HPCN_config: unconfig
2338 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2340 sbc8641d_config: unconfig
2341 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2343 #########################################################################
2345 #########################################################################
2347 AmigaOneG3SE_config: unconfig
2348 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2350 BAB7xx_config: unconfig
2351 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2353 CPCI750_config: unconfig
2354 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2356 DB64360_config: unconfig
2357 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2359 DB64460_config: unconfig
2360 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2362 ELPPC_config: unconfig
2363 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2366 EVB64260_750CX_config: unconfig
2367 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2369 mpc7448hpc2_config: unconfig
2370 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2372 P3G4_config: unconfig
2373 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2376 p3m7448_config: unconfig
2377 @mkdir -p $(obj)include
2378 @if [ "$(findstring 750_,$@)" ] ; then \
2379 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2381 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2383 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2386 PCIPPC6_config: unconfig
2387 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2389 ppmc7xx_config: unconfig
2390 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2392 ZUMA_config: unconfig
2393 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2395 #========================================================================
2397 #========================================================================
2398 #########################################################################
2399 ## StrongARM Systems
2400 #########################################################################
2402 assabet_config : unconfig
2403 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2405 dnp1110_config : unconfig
2406 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2408 gcplus_config : unconfig
2409 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2411 lart_config : unconfig
2412 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2414 shannon_config : unconfig
2415 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2417 #########################################################################
2419 #########################################################################
2421 #########################################################################
2422 ## Atmel AT91RM9200 Systems
2423 #########################################################################
2425 at91rm9200dk_config : unconfig
2426 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2428 at91sam9261ek_config : unconfig
2429 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2431 at91sam9263ek_config : unconfig
2432 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
2434 at91sam9rlek_config : unconfig
2435 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
2437 cmc_pu2_config : unconfig
2438 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2440 csb637_config : unconfig
2441 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2443 kb9202_config : unconfig
2444 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2446 m501sk_config : unconfig
2447 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2449 mp2usb_config : unconfig
2450 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2452 #########################################################################
2453 ## Atmel ARM926EJ-S Systems
2454 #########################################################################
2456 at91cap9adk_config : unconfig
2457 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2459 at91sam9260ek_config : unconfig
2460 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2462 ########################################################################
2463 ## ARM Integrator boards - see doc/README-integrator for more info.
2464 integratorap_config \
2473 ap946es_config: unconfig
2474 @board/integratorap/split_by_variant.sh $@
2476 integratorcp_config \
2485 cp1026_config: unconfig
2486 @board/integratorcp/split_by_variant.sh $@
2488 davinci_dvevm_config : unconfig
2489 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2491 davinci_schmoogie_config : unconfig
2492 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2494 davinci_sffsdr_config : unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2497 davinci_sonata_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2501 lpd7a404_config: unconfig
2502 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2504 mx1ads_config : unconfig
2505 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2507 mx1fs2_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2510 netstar_config: unconfig
2511 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2513 omap1510inn_config : unconfig
2514 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2516 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2518 omap1610inn_config \
2519 omap1610inn_cs0boot_config \
2520 omap1610inn_cs3boot_config \
2521 omap1610inn_cs_autoboot_config \
2523 omap1610h2_cs0boot_config \
2524 omap1610h2_cs3boot_config \
2525 omap1610h2_cs_autoboot_config: unconfig
2526 @mkdir -p $(obj)include
2527 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2528 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2529 $(XECHO) "... configured for CS0 boot"; \
2530 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2531 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2532 $(XECHO) "... configured for CS_AUTO boot"; \
2534 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2535 $(XECHO) "... configured for CS3 boot"; \
2537 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2539 omap5912osk_config : unconfig
2540 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2542 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2545 omap730p2_cs0boot_config \
2546 omap730p2_cs3boot_config : unconfig
2547 @mkdir -p $(obj)include
2548 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2549 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2550 $(XECHO) "... configured for CS0 boot"; \
2552 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2553 $(XECHO) "... configured for CS3 boot"; \
2555 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2557 sbc2410x_config: unconfig
2558 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2560 scb9328_config : unconfig
2561 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2563 smdk2400_config : unconfig
2564 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2566 smdk2410_config : unconfig
2567 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2569 SX1_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2572 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2573 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2576 trab_bigram_config \
2577 trab_bigflash_config \
2578 trab_old_config: unconfig
2579 @mkdir -p $(obj)include
2580 @mkdir -p $(obj)board/trab
2581 @[ -z "$(findstring _bigram,$@)" ] || \
2582 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2583 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2584 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2586 @[ -z "$(findstring _bigflash,$@)" ] || \
2587 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2588 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2589 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2590 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2592 @[ -z "$(findstring _old,$@)" ] || \
2593 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2594 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2595 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2596 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2598 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2600 VCMA9_config : unconfig
2601 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2603 #########################################################################
2604 # ARM supplied Versatile development boards
2605 #########################################################################
2607 cm4008_config : unconfig
2608 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2610 cm41xx_config : unconfig
2611 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2614 versatileab_config \
2615 versatilepb_config : unconfig
2616 @board/versatile/split_by_variant.sh $@
2618 voiceblue_config: unconfig
2619 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2621 #########################################################################
2623 #########################################################################
2625 B2_config : unconfig
2626 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2628 #########################################################################
2630 #########################################################################
2632 armadillo_config: unconfig
2633 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2635 ep7312_config : unconfig
2636 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2638 impa7_config : unconfig
2639 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2641 modnet50_config : unconfig
2642 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2644 evb4510_config : unconfig
2645 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2647 lpc2292sodimm_config: unconfig
2648 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2650 SMN42_config : unconfig
2651 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2653 #########################################################################
2655 #########################################################################
2657 actux1_config : unconfig
2658 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2660 actux2_config : unconfig
2661 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2663 actux3_config : unconfig
2664 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2666 actux4_config : unconfig
2667 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2669 cerf250_config : unconfig
2670 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2672 cradle_config : unconfig
2673 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2675 csb226_config : unconfig
2676 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2678 delta_config : unconfig
2679 @$(MKCONFIG) $(@:_config=) arm pxa delta
2681 innokom_config : unconfig
2682 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2684 ixdp425_config : unconfig
2685 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2687 ixdpg425_config : unconfig
2688 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2690 lubbock_config : unconfig
2691 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2693 pleb2_config : unconfig
2694 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2696 logodl_config : unconfig
2697 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2700 scpu_config: unconfig
2701 @mkdir -p $(obj)include
2702 @if [ "$(findstring scpu_,$@)" ] ; then \
2703 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2704 $(XECHO) "... on SCPU board variant" ; \
2706 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2708 pxa255_idp_config: unconfig
2709 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2711 trizepsiv_config : unconfig
2712 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2714 wepep250_config : unconfig
2715 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2717 xaeniax_config : unconfig
2718 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2720 xm250_config : unconfig
2721 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2723 xsengine_config : unconfig
2724 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2727 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2729 #########################################################################
2731 #########################################################################
2733 apollon_config : unconfig
2734 @mkdir -p $(obj)include
2735 @mkdir -p $(obj)onenand_ipl/board/apollon
2736 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2737 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2738 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2740 imx31_litekit_config : unconfig
2741 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2743 imx31_phycore_config : unconfig
2744 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2746 mx31ads_config : unconfig
2747 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2749 omap2420h4_config : unconfig
2750 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2752 #========================================================================
2754 #========================================================================
2755 #########################################################################
2757 #########################################################################
2758 sc520_cdp_config : unconfig
2759 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2761 sc520_spunk_config : unconfig
2762 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2764 sc520_spunk_rel_config : unconfig
2765 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2767 #========================================================================
2769 #========================================================================
2770 #########################################################################
2772 #########################################################################
2774 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2776 incaip_100MHz_config \
2777 incaip_133MHz_config \
2778 incaip_150MHz_config \
2779 incaip_config: unconfig
2780 @mkdir -p $(obj)include
2781 @[ -z "$(findstring _100MHz,$@)" ] || \
2782 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2783 $(XECHO) "... with 100MHz system clock" ; \
2785 @[ -z "$(findstring _133MHz,$@)" ] || \
2786 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2787 $(XECHO) "... with 133MHz system clock" ; \
2789 @[ -z "$(findstring _150MHz,$@)" ] || \
2790 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2791 $(XECHO) "... with 150MHz system clock" ; \
2793 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2795 tb0229_config: unconfig
2796 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2798 #########################################################################
2800 #########################################################################
2802 dbau1000_config : unconfig
2803 @mkdir -p $(obj)include
2804 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2805 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2807 dbau1100_config : unconfig
2808 @mkdir -p $(obj)include
2809 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2810 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2812 dbau1500_config : unconfig
2813 @mkdir -p $(obj)include
2814 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2815 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2817 dbau1550_config : unconfig
2818 @mkdir -p $(obj)include
2819 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2820 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2822 dbau1550_el_config : unconfig
2823 @mkdir -p $(obj)include
2824 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2825 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2827 gth2_config : unconfig
2828 @mkdir -p $(obj)include
2829 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2830 @$(MKCONFIG) -a gth2 mips mips gth2
2832 pb1000_config : unconfig
2833 @mkdir -p $(obj)include
2834 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2835 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2837 qemu_mips_config : unconfig
2838 @mkdir -p $(obj)include
2839 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2840 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2842 #########################################################################
2844 #########################################################################
2846 purple_config : unconfig
2847 @$(MKCONFIG) $(@:_config=) mips mips purple
2849 #========================================================================
2851 #========================================================================
2852 #########################################################################
2854 #########################################################################
2856 ADNPESC1_DNPEVA2_base_32_config \
2857 ADNPESC1_base_32_config \
2858 ADNPESC1_config: unconfig
2859 @mkdir -p $(obj)include
2860 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2861 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2862 $(XECHO) "... DNP/EVA2 configuration" ; \
2864 @[ -z "$(findstring _base_32,$@)" ] || \
2865 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2866 $(XECHO) "... NIOS 'base_32' configuration" ; \
2868 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2869 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2870 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2872 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2874 DK1C20_safe_32_config \
2875 DK1C20_standard_32_config \
2876 DK1C20_config: unconfig
2877 @mkdir -p $(obj)include
2878 @[ -z "$(findstring _safe_32,$@)" ] || \
2879 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2880 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2882 @[ -z "$(findstring _standard_32,$@)" ] || \
2883 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2884 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2886 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2887 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2888 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2890 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2892 DK1S10_safe_32_config \
2893 DK1S10_standard_32_config \
2894 DK1S10_mtx_ldk_20_config \
2895 DK1S10_config: unconfig
2896 @mkdir -p $(obj)include
2897 @[ -z "$(findstring _safe_32,$@)" ] || \
2898 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2899 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2901 @[ -z "$(findstring _standard_32,$@)" ] || \
2902 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2903 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2905 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2906 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2907 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2909 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2910 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2911 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2913 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2915 #########################################################################
2917 #########################################################################
2919 EP1C20_config : unconfig
2920 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2922 EP1S10_config : unconfig
2923 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2925 EP1S40_config : unconfig
2926 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2928 PK1C20_config : unconfig
2929 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2931 PCI5441_config : unconfig
2932 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2934 #========================================================================
2936 #========================================================================
2938 ml401_config: unconfig
2939 @mkdir -p $(obj)include
2940 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2941 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2943 suzaku_config: unconfig
2944 @mkdir -p $(obj)include
2945 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2946 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2948 xupv2p_config: unconfig
2949 @mkdir -p $(obj)include
2950 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2951 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2953 #========================================================================
2955 #========================================================================
2957 # Analog Devices boards
2958 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2960 $(BFIN_BOARDS:%=%_config) : unconfig
2961 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2967 #========================================================================
2969 #========================================================================
2971 atngw100_config : unconfig
2972 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2974 atstk1002_config : unconfig
2975 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2977 atstk1003_config : unconfig
2978 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2980 atstk1004_config : unconfig
2981 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2983 atstk1006_config : unconfig
2984 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2986 favr-32-ezkit_config : unconfig
2987 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
2989 hammerhead_config : unconfig
2990 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
2992 mimc200_config : unconfig
2993 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
2995 #========================================================================
2997 #========================================================================
2999 #########################################################################
3000 ## sh3 (Renesas SuperH)
3001 #########################################################################
3003 mpr2_config: unconfig
3004 @mkdir -p $(obj)include
3005 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3006 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3008 ms7720se_config: unconfig
3009 @mkdir -p $(obj)include
3010 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3011 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3013 #########################################################################
3014 ## sh4 (Renesas SuperH)
3015 #########################################################################
3017 MigoR_config : unconfig
3018 @mkdir -p $(obj)include
3019 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3020 @./mkconfig -a $(@:_config=) sh sh4 MigoR
3022 ms7750se_config: unconfig
3023 @mkdir -p $(obj)include
3024 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3025 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3027 ms7722se_config : unconfig
3028 @mkdir -p $(obj)include
3029 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3030 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3032 r2dplus_config : unconfig
3033 @mkdir -p $(obj)include
3034 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3035 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
3037 r7780mp_config: unconfig
3038 @mkdir -p $(obj)include
3039 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3040 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
3042 sh7763rdp_config : unconfig
3043 @mkdir -p $(obj)include
3044 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3045 @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
3047 #========================================================================
3049 #========================================================================
3051 #########################################################################
3053 #########################################################################
3055 # Gaisler GR-XC3S-1500 board
3056 gr_xc3s_1500_config : unconfig
3057 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3059 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3060 gr_cpci_ax2000_config : unconfig
3061 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3063 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3064 # Development board Stratix II edition, FPGA Device EP2S60.
3065 gr_ep2s60_config: unconfig
3066 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3068 # Gaisler LEON3 GRSIM simulator
3069 grsim_config : unconfig
3070 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3072 #########################################################################
3074 #########################################################################
3076 # Gaisler LEON2 GRSIM simulator
3077 grsim_leon2_config : unconfig
3078 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3080 #########################################################################
3081 #########################################################################
3082 #########################################################################
3085 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3086 $(obj)examples/hello_world $(obj)examples/interrupt \
3087 $(obj)examples/mem_to_mem_idma2intr \
3088 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
3089 $(obj)examples/test_burst $(obj)examples/timer
3090 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3091 $(obj)tools/env/{fw_printenv,fw_setenv} \
3092 $(obj)tools/envcrc \
3093 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3094 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3095 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3096 $(obj)tools/ncb $(obj)tools/ubsha1
3097 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3098 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3099 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3100 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
3101 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
3102 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3103 @rm -f $(obj)include/bmp_logo.h
3104 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
3105 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3106 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
3107 @find $(OBJTREE) -type f \
3108 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3109 -o -name '*.o' -o -name '*.a' \) -print \
3113 @find $(OBJTREE) -type f \( -name .depend \
3114 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3117 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3118 $(obj)cscope.* $(obj)*.*~
3119 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3120 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
3121 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
3122 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
3123 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3124 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3125 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3126 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3127 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
3129 ifeq ($(OBJTREE),$(SRCTREE))
3131 distclean: clobber unconfig
3134 distclean: clobber unconfig
3139 F=`basename $(TOPDIR)` ; cd .. ; \
3140 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3142 #########################################################################