1# 2# (C) Copyright 2000-2009 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# See file CREDITS for list of people who contributed to this 6# project. 7# 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. 12# 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. 17# 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, 21# MA 02111-1307 USA 22# 23 24VERSION = 2009 25PATCHLEVEL = 06 26SUBLEVEL = 27EXTRAVERSION = -rc3 28ifneq "$(SUBLEVEL)" "" 29U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 30else 31U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION) 32endif 33TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h 34VERSION_FILE = $(obj)include/version_autogenerated.h 35 36HOSTARCH := $(shell uname -m | \ 37 sed -e s/i.86/i386/ \ 38 -e s/sun4u/sparc64/ \ 39 -e s/arm.*/arm/ \ 40 -e s/sa110/arm/ \ 41 -e s/powerpc/ppc/ \ 42 -e s/ppc64/ppc/ \ 43 -e s/macppc/ppc/) 44 45HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 46 sed -e 's/\(cygwin\).*/cygwin/') 47 48# Set shell to bash if possible, otherwise fall back to sh 49SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 50 else if [ -x /bin/bash ]; then echo /bin/bash; \ 51 else echo sh; fi; fi) 52 53export HOSTARCH HOSTOS SHELL 54 55# Deal with colliding definitions from tcsh etc. 56VENDOR= 57 58######################################################################### 59# Allow for silent builds 60ifeq (,$(findstring s,$(MAKEFLAGS))) 61XECHO = echo 62else 63XECHO = : 64endif 65 66######################################################################### 67# 68# U-boot build supports producing a object files to the separate external 69# directory. Two use cases are supported: 70# 71# 1) Add O= to the make command line 72# 'make O=/tmp/build all' 73# 74# 2) Set environement variable BUILD_DIR to point to the desired location 75# 'export BUILD_DIR=/tmp/build' 76# 'make' 77# 78# The second approach can also be used with a MAKEALL script 79# 'export BUILD_DIR=/tmp/build' 80# './MAKEALL' 81# 82# Command line 'O=' setting overrides BUILD_DIR environent variable. 83# 84# When none of the above methods is used the local build is performed and 85# the object files are placed in the source directory. 86# 87 88ifdef O 89ifeq ("$(origin O)", "command line") 90BUILD_DIR := $(O) 91endif 92endif 93 94ifneq ($(BUILD_DIR),) 95saved-output := $(BUILD_DIR) 96 97# Attempt to create a output directory. 98$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 99 100# Verify if it was successful. 101BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 102$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 103endif # ifneq ($(BUILD_DIR),) 104 105OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 106SRCTREE := $(CURDIR) 107TOPDIR := $(SRCTREE) 108LNDIR := $(OBJTREE) 109export TOPDIR SRCTREE OBJTREE 110 111MKCONFIG := $(SRCTREE)/mkconfig 112export MKCONFIG 113 114ifneq ($(OBJTREE),$(SRCTREE)) 115REMOTE_BUILD := 1 116export REMOTE_BUILD 117endif 118 119# $(obj) and (src) are defined in config.mk but here in main Makefile 120# we also need them before config.mk is included which is the case for 121# some targets like unconfig, clean, clobber, distclean, etc. 122ifneq ($(OBJTREE),$(SRCTREE)) 123obj := $(OBJTREE)/ 124src := $(SRCTREE)/ 125else 126obj := 127src := 128endif 129export obj src 130 131# Make sure CDPATH settings don't interfere 132unexport CDPATH 133 134######################################################################### 135 136ifeq ($(ARCH),powerpc) 137ARCH = ppc 138endif 139 140ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 141 142# load ARCH, BOARD, and CPU configuration 143include $(obj)include/config.mk 144export ARCH CPU BOARD VENDOR SOC 145 146ifndef CROSS_COMPILE 147ifeq ($(HOSTARCH),$(ARCH)) 148CROSS_COMPILE = 149else 150ifeq ($(ARCH),ppc) 151CROSS_COMPILE = ppc_8xx- 152endif 153ifeq ($(ARCH),arm) 154CROSS_COMPILE = arm-linux- 155endif 156ifeq ($(ARCH),i386) 157CROSS_COMPILE = i386-linux- 158endif 159ifeq ($(ARCH),mips) 160CROSS_COMPILE = mips_4KC- 161endif 162ifeq ($(ARCH),nios) 163CROSS_COMPILE = nios-elf- 164endif 165ifeq ($(ARCH),nios2) 166CROSS_COMPILE = nios2-elf- 167endif 168ifeq ($(ARCH),m68k) 169CROSS_COMPILE = m68k-elf- 170endif 171ifeq ($(ARCH),microblaze) 172CROSS_COMPILE = mb- 173endif 174ifeq ($(ARCH),blackfin) 175CROSS_COMPILE = bfin-uclinux- 176endif 177ifeq ($(ARCH),avr32) 178CROSS_COMPILE = avr32-linux- 179endif 180ifeq ($(ARCH),sh) 181CROSS_COMPILE = sh4-linux- 182endif 183ifeq ($(ARCH),sparc) 184CROSS_COMPILE = sparc-elf- 185endif # sparc 186endif # HOSTARCH,ARCH 187endif # CROSS_COMPILE 188 189export CROSS_COMPILE 190 191# load other configuration 192include $(TOPDIR)/config.mk 193 194######################################################################### 195# U-Boot objects....order is important (i.e. start must be first) 196 197OBJS = cpu/$(CPU)/start.o 198ifeq ($(CPU),i386) 199OBJS += cpu/$(CPU)/start16.o 200OBJS += cpu/$(CPU)/resetvec.o 201endif 202ifeq ($(CPU),ppc4xx) 203OBJS += cpu/$(CPU)/resetvec.o 204endif 205ifeq ($(CPU),mpc85xx) 206OBJS += cpu/$(CPU)/resetvec.o 207endif 208 209OBJS := $(addprefix $(obj),$(OBJS)) 210 211LIBS = lib_generic/libgeneric.a 212LIBS += lib_generic/lzma/liblzma.a 213LIBS += lib_generic/lzo/liblzo.a 214LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 215 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 216LIBS += cpu/$(CPU)/lib$(CPU).a 217ifdef SOC 218LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 219endif 220ifeq ($(CPU),ixp) 221LIBS += cpu/ixp/npe/libnpe.a 222endif 223LIBS += lib_$(ARCH)/lib$(ARCH).a 224LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 225 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ 226 fs/ubifs/libubifs.a 227LIBS += net/libnet.a 228LIBS += disk/libdisk.a 229LIBS += drivers/bios_emulator/libatibiosemu.a 230LIBS += drivers/block/libblock.a 231LIBS += drivers/dma/libdma.a 232LIBS += drivers/fpga/libfpga.a 233LIBS += drivers/gpio/libgpio.a 234LIBS += drivers/hwmon/libhwmon.a 235LIBS += drivers/i2c/libi2c.a 236LIBS += drivers/input/libinput.a 237LIBS += drivers/misc/libmisc.a 238LIBS += drivers/mmc/libmmc.a 239LIBS += drivers/mtd/libmtd.a 240LIBS += drivers/mtd/nand/libnand.a 241LIBS += drivers/mtd/nand_legacy/libnand_legacy.a 242LIBS += drivers/mtd/onenand/libonenand.a 243LIBS += drivers/mtd/ubi/libubi.a 244LIBS += drivers/mtd/spi/libspi_flash.a 245LIBS += drivers/net/libnet.a 246LIBS += drivers/net/phy/libphy.a 247LIBS += drivers/net/sk98lin/libsk98lin.a 248LIBS += drivers/pci/libpci.a 249LIBS += drivers/pcmcia/libpcmcia.a 250LIBS += drivers/spi/libspi.a 251ifeq ($(CPU),mpc83xx) 252LIBS += drivers/qe/qe.a 253endif 254ifeq ($(CPU),mpc85xx) 255LIBS += drivers/qe/qe.a 256LIBS += cpu/mpc8xxx/ddr/libddr.a 257TAG_SUBDIRS += cpu/mpc8xxx 258endif 259ifeq ($(CPU),mpc86xx) 260LIBS += cpu/mpc8xxx/ddr/libddr.a 261TAG_SUBDIRS += cpu/mpc8xxx 262endif 263LIBS += drivers/rtc/librtc.a 264LIBS += drivers/serial/libserial.a 265LIBS += drivers/twserial/libtws.a 266LIBS += drivers/usb/gadget/libusb_gadget.a 267LIBS += drivers/usb/host/libusb_host.a 268LIBS += drivers/usb/musb/libusb_musb.a 269LIBS += drivers/video/libvideo.a 270LIBS += drivers/watchdog/libwatchdog.a 271LIBS += common/libcommon.a 272LIBS += libfdt/libfdt.a 273LIBS += api/libapi.a 274LIBS += post/libpost.a 275 276LIBS := $(addprefix $(obj),$(LIBS)) 277.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 278 279LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 280LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 281 282# Add GCC lib 283PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 284 285# The "tools" are needed early, so put this first 286# Don't include stuff already done in $(LIBS) 287SUBDIRS = tools \ 288 examples \ 289 api_examples 290 291.PHONY : $(SUBDIRS) 292 293ifeq ($(CONFIG_NAND_U_BOOT),y) 294NAND_SPL = nand_spl 295U_BOOT_NAND = $(obj)u-boot-nand.bin 296endif 297 298ifeq ($(CONFIG_ONENAND_U_BOOT),y) 299ONENAND_IPL = onenand_ipl 300U_BOOT_ONENAND = $(obj)u-boot-onenand.bin 301endif 302 303__OBJS := $(subst $(obj),,$(OBJS)) 304__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 305 306######################################################################### 307######################################################################### 308 309ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 310ifeq ($(ARCH),blackfin) 311ALL += $(obj)u-boot.ldr 312endif 313 314all: $(ALL) 315 316$(obj)u-boot.hex: $(obj)u-boot 317 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 318 319$(obj)u-boot.srec: $(obj)u-boot 320 $(OBJCOPY) -O srec $< $@ 321 322$(obj)u-boot.bin: $(obj)u-boot 323 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 324 325$(obj)u-boot.ldr: $(obj)u-boot 326 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 327 328$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 329 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 330 331$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 332 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 333 334$(obj)u-boot.img: $(obj)u-boot.bin 335 ./tools/mkimage -A $(ARCH) -T firmware -C none \ 336 -a $(TEXT_BASE) -e 0 \ 337 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 338 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 339 -d $< $@ 340 341$(obj)u-boot.sha1: $(obj)u-boot.bin 342 $(obj)tools/ubsha1 $(obj)u-boot.bin 343 344$(obj)u-boot.dis: $(obj)u-boot 345 $(OBJDUMP) -d $< > $@ 346 347GEN_UBOOT = \ 348 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 349 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 350 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 351 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 352 -Map u-boot.map -o u-boot 353$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) 354 $(GEN_UBOOT) 355ifeq ($(CONFIG_KALLSYMS),y) 356 smap=`$(call SYSTEM_MAP,u-boot) | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\0"}'` ; \ 357 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" -c common/system_map.c -o $(obj)common/system_map.o 358 $(GEN_UBOOT) $(obj)common/system_map.o 359endif 360 361$(OBJS): depend 362 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 363 364$(LIBS): depend $(SUBDIRS) 365 $(MAKE) -C $(dir $(subst $(obj),,$@)) 366 367$(LIBBOARD): depend $(LIBS) 368 $(MAKE) -C $(dir $(subst $(obj),,$@)) 369 370$(SUBDIRS): depend 371 $(MAKE) -C $@ all 372 373$(LDSCRIPT): depend 374 $(MAKE) -C $(dir $@) $(notdir $@) 375 376$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 377 $(MAKE) -C nand_spl/board/$(BOARDDIR) all 378 379$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 380 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 381 382$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 383 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 384 385$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 386 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 387 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin 388 389$(VERSION_FILE): 390 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 391 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 392 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 393 394$(TIMESTAMP_FILE): 395 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 396 @date +'#define U_BOOT_TIME "%T"' >> $@ 397 398gdbtools: 399 $(MAKE) -C tools/gdb all || exit 1 400 401updater: 402 $(MAKE) -C tools/updater all || exit 1 403 404env: 405 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 406 407depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 408 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 409 410TAG_SUBDIRS += include 411TAG_SUBDIRS += lib_generic board/$(BOARDDIR) 412TAG_SUBDIRS += cpu/$(CPU) 413TAG_SUBDIRS += lib_$(ARCH) 414TAG_SUBDIRS += fs/cramfs 415TAG_SUBDIRS += fs/fat 416TAG_SUBDIRS += fs/fdos 417TAG_SUBDIRS += fs/jffs2 418TAG_SUBDIRS += fs/yaffs2 419TAG_SUBDIRS += net 420TAG_SUBDIRS += disk 421TAG_SUBDIRS += common 422TAG_SUBDIRS += drivers/bios_emulator 423TAG_SUBDIRS += drivers/block 424TAG_SUBDIRS += drivers/gpio 425TAG_SUBDIRS += drivers/hwmon 426TAG_SUBDIRS += drivers/i2c 427TAG_SUBDIRS += drivers/input 428TAG_SUBDIRS += drivers/misc 429TAG_SUBDIRS += drivers/mmc 430TAG_SUBDIRS += drivers/mtd 431TAG_SUBDIRS += drivers/mtd/nand 432TAG_SUBDIRS += drivers/mtd/nand_legacy 433TAG_SUBDIRS += drivers/mtd/onenand 434TAG_SUBDIRS += drivers/mtd/spi 435TAG_SUBDIRS += drivers/net 436TAG_SUBDIRS += drivers/net/sk98lin 437TAG_SUBDIRS += drivers/pci 438TAG_SUBDIRS += drivers/pcmcia 439TAG_SUBDIRS += drivers/qe 440TAG_SUBDIRS += drivers/rtc 441TAG_SUBDIRS += drivers/serial 442TAG_SUBDIRS += drivers/spi 443TAG_SUBDIRS += drivers/usb 444TAG_SUBDIRS += drivers/video 445 446tags ctags: 447 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 448 -name '*.[ch]' -print` 449 450etags: 451 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 452 -name '*.[ch]' -print` 453cscope: 454 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 455 > cscope.files 456 cscope -b -q -k 457 458SYSTEM_MAP = \ 459 $(NM) $1 | \ 460 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 461 LC_ALL=C sort 462$(obj)System.map: $(obj)u-boot 463 @$(call SYSTEM_MAP,$<) > $(obj)System.map 464 465# 466# Auto-generate the autoconf.mk file (which is included by all makefiles) 467# 468# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 469# the dep file is only include in this top level makefile to determine when 470# to regenerate the autoconf.mk file. 471$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 472 @$(XECHO) Generating $@ ; \ 473 set -e ; \ 474 : Generate the dependancies ; \ 475 $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \ 476 -MQ $(obj)include/autoconf.mk include/common.h > $@ 477 478$(obj)include/autoconf.mk: $(obj)include/config.h 479 @$(XECHO) Generating $@ ; \ 480 set -e ; \ 481 : Extract the config macros ; \ 482 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 483 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 484 mv $@.tmp $@ 485 486sinclude $(obj)include/autoconf.mk.dep 487 488######################################################################### 489else # !config.mk 490all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 491$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 492$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \ 493dep tags ctags etags cscope $(obj)System.map: 494 @echo "System not configured - see README" >&2 495 @ exit 1 496endif # config.mk 497 498.PHONY : CHANGELOG 499CHANGELOG: 500 git log --no-merges U-Boot-1_1_5.. | \ 501 unexpand -a | sed -e 's/\s\s*$$//' > $@ 502 503include/license.h: tools/bin2header COPYING 504 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 505######################################################################### 506 507unconfig: 508 @rm -f $(obj)include/config.h $(obj)include/config.mk \ 509 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 510 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 511 512#======================================================================== 513# PowerPC 514#======================================================================== 515 516######################################################################### 517## MPC5xx Systems 518######################################################################### 519 520canmb_config: unconfig 521 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 522 523cmi_mpc5xx_config: unconfig 524 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 525 526PATI_config: unconfig 527 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 528 529######################################################################### 530## MPC5xxx Systems 531######################################################################### 532 533aev_config: unconfig 534 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc 535 536BC3450_config: unconfig 537 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 538 539cm5200_config: unconfig 540 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 541 542cpci5200_config: unconfig 543 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 544 545digsy_mtc_config \ 546digsy_mtc_LOWBOOT_config \ 547digsy_mtc_RAMBOOT_config: unconfig 548 @mkdir -p $(obj)include 549 @mkdir -p $(obj)board/digsy_mtc 550 @ >$(obj)include/config.h 551 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 552 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \ 553 echo "... with LOWBOOT configuration" ; \ 554 } 555 @[ -z "$(findstring RAMBOOT_,$@)" ] || \ 556 { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \ 557 echo "... with RAMBOOT configuration" ; \ 558 } 559 @$(MKCONFIG) -a digsy_mtc ppc mpc5xxx digsy_mtc 560 561hmi1001_config: unconfig 562 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 563 564Lite5200_config \ 565Lite5200_LOWBOOT_config \ 566Lite5200_LOWBOOT08_config \ 567icecube_5200_config \ 568icecube_5200_LOWBOOT_config \ 569icecube_5200_LOWBOOT08_config \ 570icecube_5200_DDR_config \ 571icecube_5200_DDR_LOWBOOT_config \ 572icecube_5200_DDR_LOWBOOT08_config \ 573icecube_5100_config: unconfig 574 @mkdir -p $(obj)include 575 @mkdir -p $(obj)board/icecube 576 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 577 { if [ "$(findstring DDR,$@)" ] ; \ 578 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 579 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 580 fi ; \ 581 $(XECHO) "... with LOWBOOT configuration" ; \ 582 } 583 @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 584 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 585 echo "... with 8 MB flash only" ; \ 586 $(XECHO) "... with LOWBOOT configuration" ; \ 587 } 588 @[ -z "$(findstring DDR,$@)" ] || \ 589 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 590 $(XECHO) "... DDR memory revision" ; \ 591 } 592 @[ -z "$(findstring 5200,$@)" ] || \ 593 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 594 $(XECHO) "... with MPC5200 processor" ; \ 595 } 596 @[ -z "$(findstring 5100,$@)" ] || \ 597 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 598 $(XECHO) "... with MGT5100 processor" ; \ 599 } 600 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 601 602jupiter_config: unconfig 603 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 604 605inka4x0_config: unconfig 606 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 607 608lite5200b_config \ 609lite5200b_PM_config \ 610lite5200b_LOWBOOT_config: unconfig 611 @mkdir -p $(obj)include 612 @mkdir -p $(obj)board/icecube 613 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 614 @ $(XECHO) "... DDR memory revision" 615 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 616 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 617 @[ -z "$(findstring _PM_,$@)" ] || \ 618 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 619 $(XECHO) "... with power management (low-power mode) support" ; \ 620 } 621 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 622 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 623 $(XECHO) "... with LOWBOOT configuration" ; \ 624 } 625 @ $(XECHO) "... with MPC5200B processor" 626 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 627 628mcc200_config \ 629mcc200_SDRAM_config \ 630mcc200_highboot_config \ 631mcc200_COM12_config \ 632mcc200_COM12_SDRAM_config \ 633mcc200_COM12_highboot_config \ 634mcc200_COM12_highboot_SDRAM_config \ 635mcc200_highboot_SDRAM_config \ 636prs200_config \ 637prs200_DDR_config \ 638prs200_highboot_config \ 639prs200_highboot_DDR_config: unconfig 640 @mkdir -p $(obj)include 641 @mkdir -p $(obj)board/mcc200 642 @[ -n "$(findstring highboot,$@)" ] || \ 643 { $(XECHO) "... with lowboot configuration" ; \ 644 } 645 @[ -z "$(findstring highboot,$@)" ] || \ 646 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 647 $(XECHO) "... with highboot configuration" ; \ 648 } 649 @[ -n "$(findstring _SDRAM,$@)" ] || \ 650 { if [ -n "$(findstring mcc200,$@)" ]; \ 651 then \ 652 $(XECHO) "... with DDR" ; \ 653 else \ 654 if [ -n "$(findstring _DDR,$@)" ];\ 655 then \ 656 $(XECHO) "... with DDR" ; \ 657 else \ 658 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 659 $(XECHO) "... with SDRAM" ; \ 660 fi; \ 661 fi; \ 662 } 663 @[ -z "$(findstring _SDRAM,$@)" ] || \ 664 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 665 $(XECHO) "... with SDRAM" ; \ 666 } 667 @[ -z "$(findstring COM12,$@)" ] || \ 668 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 669 $(XECHO) "... with console on COM12" ; \ 670 } 671 @[ -z "$(findstring prs200,$@)" ] || \ 672 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 673 } 674 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 675 676mecp5200_config: unconfig 677 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 678 679motionpro_config: unconfig 680 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 681 682mucmc52_config: unconfig 683 @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52 684 685munices_config: unconfig 686 @$(MKCONFIG) munices ppc mpc5xxx munices 687 688MVBC_P_config: unconfig 689 @mkdir -p $(obj)include 690 @mkdir -p $(obj)board/mvbc_p 691 @ >$(obj)include/config.h 692 @[ -z "$(findstring MVBC_P,$@)" ] || \ 693 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; } 694 @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision 695 696o2dnt_config: unconfig 697 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 698 699pf5200_config: unconfig 700 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 701 702PM520_config \ 703PM520_DDR_config \ 704PM520_ROMBOOT_config \ 705PM520_ROMBOOT_DDR_config: unconfig 706 @mkdir -p $(obj)include 707 @[ -z "$(findstring DDR,$@)" ] || \ 708 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 709 $(XECHO) "... DDR memory revision" ; \ 710 } 711 @[ -z "$(findstring ROMBOOT,$@)" ] || \ 712 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 713 $(XECHO) "... booting from 8-bit flash" ; \ 714 } 715 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 716 717smmaco4_config: unconfig 718 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc 719 720spieval_config: unconfig 721 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc 722 723TB5200_B_config \ 724TB5200_config: unconfig 725 @mkdir -p $(obj)include 726 @[ -z "$(findstring _B,$@)" ] || \ 727 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 728 $(XECHO) "... with MPC5200B processor" ; \ 729 } 730 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc 731 732MINI5200_config \ 733EVAL5200_config \ 734TOP5200_config: unconfig 735 @mkdir -p $(obj)include 736 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 737 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 738 739Total5100_config \ 740Total5200_config \ 741Total5200_lowboot_config \ 742Total5200_Rev2_config \ 743Total5200_Rev2_lowboot_config: unconfig 744 @mkdir -p $(obj)include 745 @mkdir -p $(obj)board/total5200 746 @[ -z "$(findstring 5100,$@)" ] || \ 747 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 748 $(XECHO) "... with MGT5100 processor" ; \ 749 } 750 @[ -z "$(findstring 5200,$@)" ] || \ 751 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 752 $(XECHO) "... with MPC5200 processor" ; \ 753 } 754 @[ -n "$(findstring Rev,$@)" ] || \ 755 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 756 $(XECHO) "... revision 1 board" ; \ 757 } 758 @[ -z "$(findstring Rev2_,$@)" ] || \ 759 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 760 $(XECHO) "... revision 2 board" ; \ 761 } 762 @[ -z "$(findstring lowboot_,$@)" ] || \ 763 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 764 $(XECHO) "... with lowboot configuration" ; \ 765 } 766 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 767 768cam5200_config \ 769cam5200_niosflash_config \ 770fo300_config \ 771MiniFAP_config \ 772TQM5200S_config \ 773TQM5200S_HIGHBOOT_config \ 774TQM5200_B_config \ 775TQM5200_B_HIGHBOOT_config \ 776TQM5200_config \ 777TQM5200_STK100_config: unconfig 778 @mkdir -p $(obj)include 779 @mkdir -p $(obj)board/tqc/tqm5200 780 @[ -z "$(findstring cam5200,$@)" ] || \ 781 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 782 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 783 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 784 $(XECHO) "... TQM5200S on Cam5200" ; \ 785 } 786 @[ -z "$(findstring niosflash,$@)" ] || \ 787 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 788 $(XECHO) "... with NIOS flash driver" ; \ 789 } 790 @[ -z "$(findstring fo300,$@)" ] || \ 791 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 792 $(XECHO) "... TQM5200 on FO300" ; \ 793 } 794 @[ -z "$(findstring MiniFAP,$@)" ] || \ 795 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 796 $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 797 } 798 @[ -z "$(findstring STK100,$@)" ] || \ 799 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 800 $(XECHO) "... on a STK52XX.100 base board" ; \ 801 } 802 @[ -z "$(findstring TQM5200_B,$@)" ] || \ 803 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 804 } 805 @[ -z "$(findstring TQM5200S,$@)" ] || \ 806 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 807 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 808 } 809 @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 810 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 811 } 812 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc 813 814uc101_config: unconfig 815 @$(MKCONFIG) uc101 ppc mpc5xxx uc101 816 817v38b_config: unconfig 818 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 819 820######################################################################### 821## MPC512x Systems 822######################################################################### 823 824ads5121_config \ 825ads5121_rev2_config \ 826 : unconfig 827 @mkdir -p $(obj)include 828 @if [ "$(findstring rev2,$@)" ] ; then \ 829 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 830 fi 831 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 832 833 834######################################################################### 835## MPC8xx Systems 836######################################################################### 837 838Adder_config \ 839Adder87x_config \ 840AdderII_config \ 841 : unconfig 842 @mkdir -p $(obj)include 843 $(if $(findstring AdderII,$@), \ 844 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 845 @$(MKCONFIG) -a Adder ppc mpc8xx adder 846 847AdderUSB_config: unconfig 848 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 849 850ADS860_config \ 851FADS823_config \ 852FADS850SAR_config \ 853MPC86xADS_config \ 854MPC885ADS_config \ 855FADS860T_config: unconfig 856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 857 858AMX860_config : unconfig 859 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 860 861c2mon_config: unconfig 862 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 863 864CCM_config: unconfig 865 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 866 867cogent_mpc8xx_config: unconfig 868 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 869 870ELPT860_config: unconfig 871 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 872 873EP88x_config: unconfig 874 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 875 876ESTEEM192E_config: unconfig 877 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 878 879ETX094_config : unconfig 880 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 881 882FLAGADM_config: unconfig 883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 884 885xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 886 887GEN860T_SC_config \ 888GEN860T_config: unconfig 889 @mkdir -p $(obj)include 890 @[ -z "$(findstring _SC,$@)" ] || \ 891 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 892 $(XECHO) "With reduced H/W feature set (SC)..." ; \ 893 } 894 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 895 896GENIETV_config: unconfig 897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 898 899GTH_config: unconfig 900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 901 902hermes_config : unconfig 903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 904 905HMI10_config : unconfig 906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc 907 908IAD210_config: unconfig 909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 910 911xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 912 913ICU862_100MHz_config \ 914ICU862_config: unconfig 915 @mkdir -p $(obj)include 916 @[ -z "$(findstring _100MHz,$@)" ] || \ 917 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 918 $(XECHO) "... with 100MHz system clock" ; \ 919 } 920 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 921 922IP860_config : unconfig 923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 924 925IVML24_256_config \ 926IVML24_128_config \ 927IVML24_config: unconfig 928 @mkdir -p $(obj)include 929 @[ -z "$(findstring IVML24_config,$@)" ] || \ 930 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 931 } 932 @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 933 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 934 } 935 @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 936 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 937 } 938 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 939 940IVMS8_256_config \ 941IVMS8_128_config \ 942IVMS8_config: unconfig 943 @mkdir -p $(obj)include 944 @[ -z "$(findstring IVMS8_config,$@)" ] || \ 945 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 946 } 947 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 948 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 949 } 950 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 951 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 952 } 953 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 954 955kmsupx4_config: unconfig 956 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile 957 958KUP4K_config : unconfig 959 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 960 961KUP4X_config : unconfig 962 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 963 964LANTEC_config : unconfig 965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 966 967lwmon_config: unconfig 968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 969 970MBX_config \ 971MBX860T_config: unconfig 972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 973 974mgsuvd_config: unconfig 975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile 976 977MHPC_config: unconfig 978 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 979 980xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 981 982NETVIA_V2_config \ 983NETVIA_config: unconfig 984 @mkdir -p $(obj)include 985 @[ -z "$(findstring NETVIA_config,$@)" ] || \ 986 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 987 $(XECHO) "... Version 1" ; \ 988 } 989 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 990 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 991 $(XECHO) "... Version 2" ; \ 992 } 993 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 994 995xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 996 997NETPHONE_V2_config \ 998NETPHONE_config: unconfig 999 @mkdir -p $(obj)include 1000 @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 1001 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 1002 } 1003 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 1004 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 1005 } 1006 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 1007 1008xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 1009 1010NETTA_ISDN_6412_SWAPHOOK_config \ 1011NETTA_ISDN_SWAPHOOK_config \ 1012NETTA_6412_SWAPHOOK_config \ 1013NETTA_SWAPHOOK_config \ 1014NETTA_ISDN_6412_config \ 1015NETTA_ISDN_config \ 1016NETTA_6412_config \ 1017NETTA_config: unconfig 1018 @mkdir -p $(obj)include 1019 @[ -z "$(findstring ISDN_,$@)" ] || \ 1020 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 1021 } 1022 @[ -n "$(findstring ISDN_,$@)" ] || \ 1023 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 1024 } 1025 @[ -z "$(findstring 6412_,$@)" ] || \ 1026 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 1027 } 1028 @[ -n "$(findstring 6412_,$@)" ] || \ 1029 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 1030 } 1031 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 1032 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 1033 } 1034 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 1035 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 1036 } 1037 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 1038 1039xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 1040 1041NETTA2_V2_config \ 1042NETTA2_config: unconfig 1043 @mkdir -p $(obj)include 1044 @[ -z "$(findstring NETTA2_config,$@)" ] || \ 1045 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 1046 } 1047 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 1048 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 1049 } 1050 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 1051 1052NC650_Rev1_config \ 1053NC650_Rev2_config \ 1054CP850_config: unconfig 1055 @mkdir -p $(obj)include 1056 @[ -z "$(findstring CP850,$@)" ] || \ 1057 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 1058 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 1059 } 1060 @[ -z "$(findstring Rev1,$@)" ] || \ 1061 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 1062 } 1063 @[ -z "$(findstring Rev2,$@)" ] || \ 1064 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 1065 } 1066 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 1067 1068NX823_config: unconfig 1069 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 1070 1071pcu_e_config: unconfig 1072 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 1073 1074QS850_config: unconfig 1075 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 1076 1077QS823_config: unconfig 1078 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 1079 1080QS860T_config: unconfig 1081 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 1082 1083quantum_config: unconfig 1084 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 1085 1086R360MPI_config: unconfig 1087 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 1088 1089RBC823_config: unconfig 1090 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1091 1092RPXClassic_config: unconfig 1093 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 1094 1095RPXlite_config: unconfig 1096 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 1097 1098RPXlite_DW_64_config \ 1099RPXlite_DW_LCD_config \ 1100RPXlite_DW_64_LCD_config \ 1101RPXlite_DW_NVRAM_config \ 1102RPXlite_DW_NVRAM_64_config \ 1103RPXlite_DW_NVRAM_LCD_config \ 1104RPXlite_DW_NVRAM_64_LCD_config \ 1105RPXlite_DW_config: unconfig 1106 @mkdir -p $(obj)include 1107 @[ -z "$(findstring _64,$@)" ] || \ 1108 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1109 $(XECHO) "... with 64MHz system clock ..."; \ 1110 } 1111 @[ -z "$(findstring _LCD,$@)" ] || \ 1112 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1113 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1114 $(XECHO) "... with LCD display ..."; \ 1115 } 1116 @[ -z "$(findstring _NVRAM,$@)" ] || \ 1117 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1118 $(XECHO) "... with ENV in NVRAM ..."; \ 1119 } 1120 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1121 1122rmu_config: unconfig 1123 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 1124 1125RRvision_config: unconfig 1126 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 1127 1128RRvision_LCD_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 RRvision ppc mpc8xx RRvision 1133 1134SM850_config : unconfig 1135 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc 1136 1137spc1920_config: unconfig 1138 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1139 1140SPD823TS_config: unconfig 1141 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 1142 1143stxxtc_config: unconfig 1144 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 1145 1146svm_sc8xx_config: unconfig 1147 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1148 1149SXNI855T_config: unconfig 1150 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 1151 1152# EMK MPC8xx based modules 1153TOP860_config: unconfig 1154 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1155 1156# Play some tricks for configuration selection 1157# Only 855 and 860 boards may come with FEC 1158# and only 823 boards may have LCD support 1159xtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 1160 1161FPS850L_config \ 1162FPS860L_config \ 1163NSCU_config \ 1164TQM823L_config \ 1165TQM823L_LCD_config \ 1166TQM850L_config \ 1167TQM855L_config \ 1168TQM860L_config \ 1169TQM862L_config \ 1170TQM823M_config \ 1171TQM850M_config \ 1172TQM855M_config \ 1173TQM860M_config \ 1174TQM862M_config \ 1175TQM866M_config \ 1176TQM885D_config \ 1177TK885D_config \ 1178virtlab2_config: unconfig 1179 @mkdir -p $(obj)include 1180 @[ -z "$(findstring _LCD,$@)" ] || \ 1181 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1182 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1183 $(XECHO) "... with LCD display" ; \ 1184 } 1185 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc 1186 1187TTTech_config: unconfig 1188 @mkdir -p $(obj)include 1189 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1190 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1191 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc 1192 1193uc100_config : unconfig 1194 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1195 1196v37_config: unconfig 1197 @mkdir -p $(obj)include 1198 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1199 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1200 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1201 1202wtk_config: unconfig 1203 @mkdir -p $(obj)include 1204 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1205 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1206 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc 1207 1208######################################################################### 1209## PPC4xx Systems 1210######################################################################### 1211xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 1212 1213acadia_config: unconfig 1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 1215 1216acadia_nand_config: unconfig 1217 @mkdir -p $(obj)include $(obj)board/amcc/acadia 1218 @mkdir -p $(obj)nand_spl/board/amcc/acadia 1219 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1220 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1221 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1222 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1223 1224ADCIOP_config: unconfig 1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 1226 1227alpr_config: unconfig 1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1229 1230AP1000_config:unconfig 1231 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 1232 1233APC405_config: unconfig 1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1235 1236AR405_config: unconfig 1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 1238 1239ASH405_config: unconfig 1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1241 1242bamboo_config: unconfig 1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 1244 1245bamboo_nand_config: unconfig 1246 @mkdir -p $(obj)include $(obj)board/amcc/bamboo 1247 @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1248 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1249 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1250 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1251 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1252 1253bubinga_config: unconfig 1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1255 1256CANBT_config: unconfig 1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 1258 1259# Arches, Canyonlands & Glacier use different U-Boot images 1260arches_config \ 1261canyonlands_config \ 1262glacier_config: unconfig 1263 @mkdir -p $(obj)include 1264 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1265 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1266 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1267 1268canyonlands_nand_config \ 1269glacier_nand_config: unconfig 1270 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 1271 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 1272 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1273 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 1274 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1275 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1276 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 1277 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1278 1279CATcenter_config \ 1280CATcenter_25_config \ 1281CATcenter_33_config: unconfig 1282 @mkdir -p $(obj)include 1283 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1284 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 1285 @[ -z "$(findstring _25,$@)" ] || \ 1286 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1287 $(XECHO) "SysClk = 25MHz" ; \ 1288 } 1289 @[ -z "$(findstring _33,$@)" ] || \ 1290 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1291 $(XECHO) "SysClk = 33MHz" ; \ 1292 } 1293 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1294 1295CMS700_config: unconfig 1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1297 1298CPCI2DP_config: unconfig 1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 1300 1301CPCI405_config \ 1302CPCI4052_config \ 1303CPCI405DT_config \ 1304CPCI405AB_config: unconfig 1305 @mkdir -p $(obj)board/esd/cpci405 1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1307 1308CPCIISER4_config: unconfig 1309 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 1310 1311CRAYL1_config: unconfig 1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 1313 1314csb272_config: unconfig 1315 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1316 1317csb472_config: unconfig 1318 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1319 1320DASA_SIM_config: unconfig 1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 1322 1323DP405_config: unconfig 1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 1325 1326DU405_config: unconfig 1327 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 1328 1329DU440_config: unconfig 1330 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 1331 1332ebony_config: unconfig 1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 1334 1335ERIC_config: unconfig 1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 1337 1338EXBITGEN_config: unconfig 1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1340 1341fx12mm_flash_config: unconfig 1342 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1343 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 1344 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 1345 > $(obj)board/avnet/fx12mm/config.tmp 1346 @echo "TEXT_BASE := 0xFFCB0000" \ 1347 >> $(obj)board/avnet/fx12mm/config.tmp 1348 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet 1349 1350fx12mm_config: unconfig 1351 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1352 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 1353 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 1354 > $(obj)board/avnet/fx12mm/config.tmp 1355 @echo "TEXT_BASE := 0x03000000" \ 1356 >> $(obj)board/avnet/fx12mm/config.tmp 1357 @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet 1358 1359G2000_config: unconfig 1360 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1361 1362gdppc440etx_config: unconfig 1363 @$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys 1364 1365hcu4_config: unconfig 1366 @mkdir -p $(obj)board/netstal/common 1367 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1368 1369hcu5_config: unconfig 1370 @mkdir -p $(obj)board/netstal/common 1371 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1372 1373HH405_config: unconfig 1374 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1375 1376HUB405_config: unconfig 1377 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 1378 1379JSE_config: unconfig 1380 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1381 1382KAREF_config: unconfig 1383 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1384 1385katmai_config: unconfig 1386 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 1387 1388# Kilauea & Haleakala images are identical (recognized via PVR) 1389kilauea_config \ 1390haleakala_config: unconfig 1391 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1392 1393kilauea_nand_config \ 1394haleakala_nand_config: unconfig 1395 @mkdir -p $(obj)include $(obj)board/amcc/kilauea 1396 @mkdir -p $(obj)nand_spl/board/amcc/kilauea 1397 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1398 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1399 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 1400 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1401 1402korat_config: unconfig 1403 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1404 1405luan_config: unconfig 1406 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 1407 1408lwmon5_config: unconfig 1409 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1410 1411makalu_config: unconfig 1412 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1413 1414mcu25_config: unconfig 1415 @mkdir -p $(obj)board/netstal/common 1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1417 1418METROBOX_config: unconfig 1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1420 1421MIP405_config: unconfig 1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 1423 1424MIP405T_config: unconfig 1425 @mkdir -p $(obj)include 1426 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1427 @$(XECHO) "Enable subset config for MIP405T" 1428 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1429 1430ML2_config: unconfig 1431 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 1432 1433ml300_config: unconfig 1434 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1435 1436ml507_flash_config: unconfig 1437 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1438 @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1439 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1440 > $(obj)board/xilinx/ml507/config.tmp 1441 @echo "TEXT_BASE := 0xFE360000" \ 1442 >> $(obj)board/xilinx/ml507/config.tmp 1443 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx 1444 1445ml507_config: unconfig 1446 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1447 @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1448 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1449 > $(obj)board/xilinx/ml507/config.tmp 1450 @echo "TEXT_BASE := 0x04000000" \ 1451 >> $(obj)board/xilinx/ml507/config.tmp 1452 @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx 1453 1454neo_config: unconfig 1455 @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys 1456 1457ocotea_config: unconfig 1458 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 1459 1460OCRTC_config \ 1461ORSG_config: unconfig 1462 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 1463 1464p3p440_config: unconfig 1465 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 1466 1467PCI405_config: unconfig 1468 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 1469 1470pcs440ep_config: unconfig 1471 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1472 1473PIP405_config: unconfig 1474 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 1475 1476PLU405_config: unconfig 1477 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 1478 1479PMC405_config: unconfig 1480 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1481 1482PMC440_config: unconfig 1483 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 1484 1485PPChameleonEVB_config \ 1486PPChameleonEVB_BA_25_config \ 1487PPChameleonEVB_ME_25_config \ 1488PPChameleonEVB_HI_25_config \ 1489PPChameleonEVB_BA_33_config \ 1490PPChameleonEVB_ME_33_config \ 1491PPChameleonEVB_HI_33_config: unconfig 1492 @mkdir -p $(obj)include 1493 @[ -z "$(findstring EVB_BA,$@)" ] || \ 1494 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1495 $(XECHO) "... BASIC model" ; \ 1496 } 1497 @[ -z "$(findstring EVB_ME,$@)" ] || \ 1498 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1499 $(XECHO) "... MEDIUM model" ; \ 1500 } 1501 @[ -z "$(findstring EVB_HI,$@)" ] || \ 1502 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1503 $(XECHO) "... HIGH-END model" ; \ 1504 } 1505 @[ -z "$(findstring _25,$@)" ] || \ 1506 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1507 $(XECHO) "SysClk = 25MHz" ; \ 1508 } 1509 @[ -z "$(findstring _33,$@)" ] || \ 1510 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1511 $(XECHO) "SysClk = 33MHz" ; \ 1512 } 1513 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1514 1515quad100hd_config: unconfig 1516 @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd 1517 1518redwood_config: unconfig 1519 @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc 1520 1521sbc405_config: unconfig 1522 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1523 1524sc3_config:unconfig 1525 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1526 1527sequoia_config \ 1528rainier_config: unconfig 1529 @mkdir -p $(obj)include 1530 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1531 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1532 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1533 1534sequoia_nand_config \ 1535rainier_nand_config: unconfig 1536 @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1537 @mkdir -p $(obj)nand_spl/board/amcc/sequoia 1538 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1539 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1540 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1541 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1542 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1543 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1544 1545sequoia_ramboot_config \ 1546rainier_ramboot_config: unconfig 1547 @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1548 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h 1549 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1550 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1551 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1552 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1553 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ 1554 $(obj)board/amcc/sequoia/config.tmp 1555 1556taihu_config: unconfig 1557 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1558 1559taishan_config: unconfig 1560 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 1561 1562v5fx30teval_config: unconfig 1563 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1564 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1565 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1566 > $(obj)board/avnet/v5fx30teval/config.tmp 1567 @echo "TEXT_BASE := 0x03000000" \ 1568 >> $(obj)board/avnet/v5fx30teval/config.tmp 1569 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet 1570 1571v5fx30teval_flash_config: unconfig 1572 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1573 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1574 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1575 > $(obj)board/avnet/v5fx30teval/config.tmp 1576 @echo "TEXT_BASE := 0xFF1C0000" \ 1577 >> $(obj)board/avnet/v5fx30teval/config.tmp 1578 @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet 1579 1580VOH405_config: unconfig 1581 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 1582 1583VOM405_config: unconfig 1584 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1585 1586W7OLMC_config \ 1587W7OLMG_config: unconfig 1588 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 1589 1590# Walnut & Sycamore images are identical (recognized via PVR) 1591walnut_config \ 1592sycamore_config: unconfig 1593 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 1594 1595WUH405_config: unconfig 1596 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1597 1598xilinx-ppc405-generic_flash_config: unconfig 1599 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1600 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 1601 > $(obj)board/xilinx/ppc405-generic/config.tmp 1602 @echo "TEXT_BASE := 0xFE360000" \ 1603 >> $(obj)board/xilinx/ppc405-generic/config.tmp 1604 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx 1605 1606xilinx-ppc405-generic_config: unconfig 1607 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1608 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 1609 > $(obj)board/xilinx/ppc405-generic/config.tmp 1610 @echo "TEXT_BASE := 0x04000000" \ 1611 >> $(obj)board/xilinx/ppc405-generic/config.tmp 1612 @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx 1613 1614xilinx-ppc440-generic_flash_config: unconfig 1615 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1616 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1617 > $(obj)board/xilinx/ppc440-generic/config.tmp 1618 @echo "TEXT_BASE := 0xFE360000" \ 1619 >> $(obj)board/xilinx/ppc440-generic/config.tmp 1620 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx 1621 1622xilinx-ppc440-generic_config: unconfig 1623 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1624 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1625 > $(obj)board/xilinx/ppc440-generic/config.tmp 1626 @echo "TEXT_BASE := 0x04000000" \ 1627 >> $(obj)board/xilinx/ppc440-generic/config.tmp 1628 @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx 1629 1630XPEDITE1K_config: unconfig 1631 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1632 1633yosemite_config \ 1634yellowstone_config: unconfig 1635 @mkdir -p $(obj)include 1636 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1637 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1638 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 1639 1640yucca_config: unconfig 1641 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 1642 1643zeus_config: unconfig 1644 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1645 1646######################################################################### 1647## MPC8220 Systems 1648######################################################################### 1649 1650Alaska8220_config \ 1651Yukon8220_config: unconfig 1652 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1653 1654sorcery_config: unconfig 1655 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 1656 1657######################################################################### 1658## MPC824x Systems 1659######################################################################### 1660xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 1661 1662A3000_config: unconfig 1663 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 1664 1665barco_config: unconfig 1666 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 1667 1668BMW_config: unconfig 1669 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 1670 1671CPC45_config \ 1672CPC45_ROMBOOT_config: unconfig 1673 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1674 @cd $(obj)include ; \ 1675 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1676 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1677 $(XECHO) "... booting from 8-bit flash" ; \ 1678 else \ 1679 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1680 $(XECHO) "... booting from 64-bit flash" ; \ 1681 fi; \ 1682 echo "export CONFIG_BOOT_ROM" >> config.mk; 1683 1684CU824_config: unconfig 1685 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 1686 1687debris_config: unconfig 1688 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 1689 1690eXalion_config: unconfig 1691 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 1692 1693HIDDEN_DRAGON_config: unconfig 1694 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1695 1696kvme080_config: unconfig 1697 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 1698 1699# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 1700# time permits. 1701#linkstation_HDLAN_config \ 1702# Remove this line when HDLAN is fixed 1703linkstation_HGLAN_config: unconfig 1704 @mkdir -p $(obj)include 1705 @case $@ in \ 1706 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 1707 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 1708 esac 1709 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation 1710 1711MOUSSE_config: unconfig 1712 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 1713 1714MUSENKI_config: unconfig 1715 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 1716 1717MVBLUE_config: unconfig 1718 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1719 1720OXC_config: unconfig 1721 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 1722 1723PN62_config: unconfig 1724 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 1725 1726Sandpoint8240_config: unconfig 1727 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1728 1729Sandpoint8245_config: unconfig 1730 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1731 1732sbc8240_config: unconfig 1733 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1734 1735SL8245_config: unconfig 1736 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1737 1738utx8245_config: unconfig 1739 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 1740 1741######################################################################### 1742## MPC8260 Systems 1743######################################################################### 1744 1745atc_config: unconfig 1746 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 1747 1748cogent_mpc8260_config: unconfig 1749 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 1750 1751CPU86_config \ 1752CPU86_ROMBOOT_config: unconfig 1753 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1754 @cd $(obj)include ; \ 1755 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1756 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1757 $(XECHO) "... booting from 8-bit flash" ; \ 1758 else \ 1759 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1760 $(XECHO) "... booting from 64-bit flash" ; \ 1761 fi; \ 1762 echo "export CONFIG_BOOT_ROM" >> config.mk; 1763 1764CPU87_config \ 1765CPU87_ROMBOOT_config: unconfig 1766 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1767 @cd $(obj)include ; \ 1768 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1769 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1770 $(XECHO) "... booting from 8-bit flash" ; \ 1771 else \ 1772 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1773 $(XECHO) "... booting from 64-bit flash" ; \ 1774 fi; \ 1775 echo "export CONFIG_BOOT_ROM" >> config.mk; 1776 1777ep8248_config \ 1778ep8248E_config : unconfig 1779 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1780 1781ep8260_config: unconfig 1782 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 1783 1784ep82xxm_config: unconfig 1785 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 1786 1787gw8260_config: unconfig 1788 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 1789 1790hymod_config: unconfig 1791 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 1792 1793IDS8247_config: unconfig 1794 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 1795 1796IPHASE4539_config: unconfig 1797 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 1798 1799ISPAN_config \ 1800ISPAN_REVB_config: unconfig 1801 @mkdir -p $(obj)include 1802 @if [ "$(findstring _REVB_,$@)" ] ; then \ 1803 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ 1804 fi 1805 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1806 1807mgcoge_config : unconfig 1808 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile 1809 1810MPC8260ADS_config \ 1811MPC8260ADS_lowboot_config \ 1812MPC8260ADS_33MHz_config \ 1813MPC8260ADS_33MHz_lowboot_config \ 1814MPC8260ADS_40MHz_config \ 1815MPC8260ADS_40MHz_lowboot_config \ 1816MPC8272ADS_config \ 1817MPC8272ADS_lowboot_config \ 1818PQ2FADS_config \ 1819PQ2FADS_lowboot_config \ 1820PQ2FADS-VR_config \ 1821PQ2FADS-VR_lowboot_config \ 1822PQ2FADS-ZU_config \ 1823PQ2FADS-ZU_lowboot_config \ 1824PQ2FADS-ZU_66MHz_config \ 1825PQ2FADS-ZU_66MHz_lowboot_config \ 1826 : unconfig 1827 @mkdir -p $(obj)include 1828 @mkdir -p $(obj)board/freescale/mpc8260ads 1829 $(if $(findstring PQ2FADS,$@), \ 1830 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ 1831 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 1832 $(if $(findstring MHz,$@), \ 1833 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 1834 $(if $(findstring VR,$@), \ 1835 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1836 @[ -z "$(findstring lowboot_,$@)" ] || \ 1837 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1838 $(XECHO) "... with lowboot configuration" ; \ 1839 } 1840 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale 1841 1842MPC8266ADS_config: unconfig 1843 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale 1844 1845muas3001_dev_config \ 1846muas3001_config : unconfig 1847 @mkdir -p $(obj)include 1848 @mkdir -p $(obj)board/muas3001 1849 @if [ "$(findstring dev,$@)" ] ; then \ 1850 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ 1851 fi 1852 @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001 1853 1854# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 1855PM825_config \ 1856PM825_ROMBOOT_config \ 1857PM825_BIGFLASH_config \ 1858PM825_ROMBOOT_BIGFLASH_config \ 1859PM826_config \ 1860PM826_ROMBOOT_config \ 1861PM826_BIGFLASH_config \ 1862PM826_ROMBOOT_BIGFLASH_config: unconfig 1863 @mkdir -p $(obj)include 1864 @mkdir -p $(obj)board/pm826 1865 @if [ "$(findstring PM825_,$@)" ] ; then \ 1866 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 1867 else \ 1868 >$(obj)include/config.h ; \ 1869 fi 1870 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1871 $(XECHO) "... booting from 8-bit flash" ; \ 1872 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1873 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1874 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1875 $(XECHO) "... with 32 MB Flash" ; \ 1876 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1877 fi; \ 1878 else \ 1879 $(XECHO) "... booting from 64-bit flash" ; \ 1880 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1881 $(XECHO) "... with 32 MB Flash" ; \ 1882 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1883 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1884 else \ 1885 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1886 fi; \ 1887 fi 1888 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1889 1890PM828_config \ 1891PM828_PCI_config \ 1892PM828_ROMBOOT_config \ 1893PM828_ROMBOOT_PCI_config: unconfig 1894 @mkdir -p $(obj)include 1895 @mkdir -p $(obj)board/pm826 1896 @if [ "$(findstring _PCI_,$@)" ] ; then \ 1897 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1898 $(XECHO) "... with PCI enabled" ; \ 1899 fi 1900 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1901 $(XECHO) "... booting from 8-bit flash" ; \ 1902 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1903 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1904 fi 1905 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 1906 1907ppmc8260_config: unconfig 1908 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 1909 1910Rattler8248_config \ 1911Rattler_config: unconfig 1912 @mkdir -p $(obj)include 1913 $(if $(findstring 8248,$@), \ 1914 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1915 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 1916 1917RPXsuper_config: unconfig 1918 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 1919 1920rsdproto_config: unconfig 1921 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 1922 1923sacsng_config: unconfig 1924 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 1925 1926sbc8260_config: unconfig 1927 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 1928 1929SCM_config: unconfig 1930 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 1931 1932TQM8255_AA_config \ 1933TQM8260_AA_config \ 1934TQM8260_AB_config \ 1935TQM8260_AC_config \ 1936TQM8260_AD_config \ 1937TQM8260_AE_config \ 1938TQM8260_AF_config \ 1939TQM8260_AG_config \ 1940TQM8260_AH_config \ 1941TQM8260_AI_config \ 1942TQM8265_AA_config: unconfig 1943 @mkdir -p $(obj)include 1944 @case "$@" in \ 1945 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 1946 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 1947 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1948 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1949 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1950 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 1951 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1952 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 1953 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 1954 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1955 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 1956 esac; \ 1957 if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1958 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 1959 fi; \ 1960 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 1961 echo "... with $${CFREQ}MHz system clock" ; \ 1962 if [ "$${CACHE}" = "yes" ] ; then \ 1963 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1964 $(XECHO) "... with L2 Cache support" ; \ 1965 else \ 1966 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1967 $(XECHO) "... without L2 Cache support" ; \ 1968 fi; \ 1969 if [ "$${BMODE}" = "60x" ] ; then \ 1970 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1971 $(XECHO) "... with 60x Bus Mode" ; \ 1972 else \ 1973 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1974 $(XECHO) "... without 60x Bus Mode" ; \ 1975 fi 1976 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc 1977 1978TQM8272_config: unconfig 1979 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc 1980 1981VoVPN-GW_66MHz_config \ 1982VoVPN-GW_100MHz_config: unconfig 1983 @mkdir -p $(obj)include 1984 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1985 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1986 1987ZPC1900_config: unconfig 1988 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 1989 1990######################################################################### 1991## Coldfire 1992######################################################################### 1993 1994M52277EVB_config \ 1995M52277EVB_spansion_config \ 1996M52277EVB_stmicro_config : unconfig 1997 @case "$@" in \ 1998 M52277EVB_config) FLASH=SPANSION;; \ 1999 M52277EVB_spansion_config) FLASH=SPANSION;; \ 2000 M52277EVB_stmicro_config) FLASH=STMICRO;; \ 2001 esac; \ 2002 if [ "$${FLASH}" = "SPANSION" ] ; then \ 2003 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 2004 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 2005 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 2006 $(XECHO) "... with SPANSION boot..." ; \ 2007 fi; \ 2008 if [ "$${FLASH}" = "STMICRO" ] ; then \ 2009 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 2010 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 2011 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 2012 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 2013 $(XECHO) "... with ST Micro boot..." ; \ 2014 fi 2015 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 2016 2017M5235EVB_config \ 2018M5235EVB_Flash16_config \ 2019M5235EVB_Flash32_config: unconfig 2020 @case "$@" in \ 2021 M5235EVB_config) FLASH=16;; \ 2022 M5235EVB_Flash16_config) FLASH=16;; \ 2023 M5235EVB_Flash32_config) FLASH=32;; \ 2024 esac; \ 2025 if [ "$${FLASH}" != "16" ] ; then \ 2026 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 2027 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 2028 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 2029 else \ 2030 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 2031 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 2032 fi 2033 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 2034 2035M5249EVB_config : unconfig 2036 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 2037 2038M5253DEMO_config : unconfig 2039 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale 2040 2041M5253EVBE_config : unconfig 2042 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 2043 2044cobra5272_config : unconfig 2045 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 2046 2047EB+MCF-EV123_config : unconfig 2048 @mkdir -p $(obj)include 2049 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 2050 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 2051 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 2052 2053EB+MCF-EV123_internal_config : unconfig 2054 @mkdir -p $(obj)include 2055 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 2056 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 2057 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 2058 2059idmr_config : unconfig 2060 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 2061 2062M5271EVB_config : unconfig 2063 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale 2064 2065M5272C3_config : unconfig 2066 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale 2067 2068M5275EVB_config : unconfig 2069 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 2070 2071M5282EVB_config : unconfig 2072 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale 2073 2074M53017EVB_config : unconfig 2075 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale 2076 2077M5329AFEE_config \ 2078M5329BFEE_config : unconfig 2079 @case "$@" in \ 2080 M5329AFEE_config) NAND=0;; \ 2081 M5329BFEE_config) NAND=16;; \ 2082 esac; \ 2083 if [ "$${NAND}" != "0" ] ; then \ 2084 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 2085 fi 2086 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 2087 2088M5373EVB_config : unconfig 2089 @case "$@" in \ 2090 M5373EVB_config) NAND=16;; \ 2091 esac; \ 2092 if [ "$${NAND}" != "0" ] ; then \ 2093 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 2094 fi 2095 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 2096 2097M54451EVB_config \ 2098M54451EVB_spansion_config \ 2099M54451EVB_stmicro_config : unconfig 2100 @case "$@" in \ 2101 M54451EVB_config) FLASH=SPANSION;; \ 2102 M54451EVB_spansion_config) FLASH=SPANSION;; \ 2103 M54451EVB_stmicro_config) FLASH=STMICRO;; \ 2104 esac; \ 2105 if [ "$${FLASH}" = "SPANSION" ] ; then \ 2106 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 2107 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 2108 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 2109 $(XECHO) "... with SPANSION boot..." ; \ 2110 fi; \ 2111 if [ "$${FLASH}" = "STMICRO" ] ; then \ 2112 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 2113 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 2114 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 2115 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 2116 $(XECHO) "... with ST Micro boot..." ; \ 2117 fi; \ 2118 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 2119 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale 2120 2121M54455EVB_config \ 2122M54455EVB_atmel_config \ 2123M54455EVB_intel_config \ 2124M54455EVB_a33_config \ 2125M54455EVB_a66_config \ 2126M54455EVB_i33_config \ 2127M54455EVB_i66_config \ 2128M54455EVB_stm33_config : unconfig 2129 @case "$@" in \ 2130 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 2131 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 2132 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 2133 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 2134 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 2135 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 2136 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 2137 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 2138 esac; \ 2139 if [ "$${FLASH}" = "INTEL" ] ; then \ 2140 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 2141 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 2142 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 2143 $(XECHO) "... with INTEL boot..." ; \ 2144 fi; \ 2145 if [ "$${FLASH}" = "ATMEL" ] ; then \ 2146 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 2147 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 2148 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 2149 $(XECHO) "... with ATMEL boot..." ; \ 2150 fi; \ 2151 if [ "$${FLASH}" = "STMICRO" ] ; then \ 2152 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 2153 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 2154 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 2155 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 2156 $(XECHO) "... with ST Micro boot..." ; \ 2157 fi; \ 2158 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 2159 $(XECHO) "... with $${FREQ}Hz input clock" 2160 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 2161 2162M5475AFE_config \ 2163M5475BFE_config \ 2164M5475CFE_config \ 2165M5475DFE_config \ 2166M5475EFE_config \ 2167M5475FFE_config \ 2168M5475GFE_config : unconfig 2169 @case "$@" in \ 2170 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 2171 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 2172 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 2173 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 2174 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 2175 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 2176 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 2177 esac; \ 2178 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 2179 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 2180 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 2181 if [ "$${RAM1}" != "0" ] ; then \ 2182 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 2183 fi; \ 2184 if [ "$${CODE}" != "0" ] ; then \ 2185 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 2186 fi; \ 2187 if [ "$${VID}" == "1" ] ; then \ 2188 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 2189 fi; \ 2190 if [ "$${USB}" == "1" ] ; then \ 2191 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 2192 fi 2193 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 2194 2195M5485AFE_config \ 2196M5485BFE_config \ 2197M5485CFE_config \ 2198M5485DFE_config \ 2199M5485EFE_config \ 2200M5485FFE_config \ 2201M5485GFE_config \ 2202M5485HFE_config : unconfig 2203 @case "$@" in \ 2204 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 2205 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 2206 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 2207 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 2208 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 2209 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 2210 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 2211 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 2212 esac; \ 2213 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 2214 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 2215 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 2216 if [ "$${RAM1}" != "0" ] ; then \ 2217 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 2218 fi; \ 2219 if [ "$${CODE}" != "0" ] ; then \ 2220 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 2221 fi; \ 2222 if [ "$${VID}" == "1" ] ; then \ 2223 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 2224 fi; \ 2225 if [ "$${USB}" == "1" ] ; then \ 2226 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 2227 fi 2228 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 2229 2230TASREG_config : unconfig 2231 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 2232 2233######################################################################### 2234## MPC83xx Systems 2235######################################################################### 2236 2237kmeter1_config: unconfig 2238 @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile 2239 2240MPC8313ERDB_33_config \ 2241MPC8313ERDB_66_config \ 2242MPC8313ERDB_NAND_33_config \ 2243MPC8313ERDB_NAND_66_config: unconfig 2244 @mkdir -p $(obj)include 2245 @mkdir -p $(obj)board/freescale/mpc8313erdb 2246 @if [ "$(findstring _33_,$@)" ] ; then \ 2247 $(XECHO) -n "...33M ..." ; \ 2248 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ 2249 fi ; \ 2250 if [ "$(findstring _66_,$@)" ] ; then \ 2251 $(XECHO) -n "...66M..." ; \ 2252 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ 2253 fi ; \ 2254 if [ "$(findstring _NAND_,$@)" ] ; then \ 2255 $(XECHO) -n "...NAND..." ; \ 2256 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ 2257 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ 2258 fi ; 2259 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 2260 @if [ "$(findstring _NAND_,$@)" ] ; then \ 2261 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ 2262 fi ; 2263 2264MPC8315ERDB_config: unconfig 2265 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 2266 2267MPC8323ERDB_config: unconfig 2268 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 2269 2270MPC832XEMDS_config \ 2271MPC832XEMDS_HOST_33_config \ 2272MPC832XEMDS_HOST_66_config \ 2273MPC832XEMDS_SLAVE_config \ 2274MPC832XEMDS_ATM_config: unconfig 2275 @mkdir -p $(obj)include 2276 @if [ "$(findstring _HOST_,$@)" ] ; then \ 2277 $(XECHO) -n "... PCI HOST " ; \ 2278 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2279 fi ; \ 2280 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2281 $(XECHO) "...PCI SLAVE 66M" ; \ 2282 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2283 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 2284 fi ; \ 2285 if [ "$(findstring _33_,$@)" ] ; then \ 2286 $(XECHO) -n "...33M ..." ; \ 2287 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2288 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2289 fi ; \ 2290 if [ "$(findstring _66_,$@)" ] ; then \ 2291 $(XECHO) -n "...66M..." ; \ 2292 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2293 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2294 fi ; \ 2295 if [ "$(findstring _ATM_,$@)" ] ; then \ 2296 $(XECHO) -n "...ATM..." ; \ 2297 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2298 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 2299 fi ; 2300 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2301 2302MPC8349EMDS_config: unconfig 2303 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2304 2305MPC8349ITX_config \ 2306MPC8349ITX_LOWBOOT_config \ 2307MPC8349ITXGP_config: unconfig 2308 @mkdir -p $(obj)include 2309 @mkdir -p $(obj)board/freescale/mpc8349itx 2310 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 2311 @if [ "$(findstring GP,$@)" ] ; then \ 2312 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 2313 fi 2314 @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2315 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 2316 fi 2317 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 2318 2319MPC8360EMDS_config \ 2320MPC8360EMDS_HOST_33_config \ 2321MPC8360EMDS_HOST_66_config \ 2322MPC8360EMDS_SLAVE_config \ 2323MPC8360EMDS_ATM_config: unconfig 2324 @mkdir -p $(obj)include 2325 @if [ "$(findstring _HOST_,$@)" ] ; then \ 2326 $(XECHO) -n "... PCI HOST " ; \ 2327 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2328 fi ; \ 2329 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2330 $(XECHO) "...PCI SLAVE 66M" ; \ 2331 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2332 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 2333 fi ; \ 2334 if [ "$(findstring _33_,$@)" ] ; then \ 2335 $(XECHO) -n "...33M ..." ; \ 2336 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2337 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2338 fi ; \ 2339 if [ "$(findstring _66_,$@)" ] ; then \ 2340 $(XECHO) -n "...66M..." ; \ 2341 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2342 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2343 fi ; \ 2344 if [ "$(findstring _ATM_,$@)" ] ; then \ 2345 $(XECHO) -n "...ATM..." ; \ 2346 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2347 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 2348 fi ; 2349 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 2350 2351MPC8360ERDK_33_config \ 2352MPC8360ERDK_66_config \ 2353MPC8360ERDK_config: unconfig 2354 @mkdir -p $(obj)include 2355 @if [ "$(findstring _33_,$@)" ] ; then \ 2356 $(XECHO) -n "... CLKIN 33MHz " ; \ 2357 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2358 fi ; 2359 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2360 2361MPC837XEMDS_config \ 2362MPC837XEMDS_HOST_config: unconfig 2363 @mkdir -p $(obj)include 2364 @if [ "$(findstring _HOST_,$@)" ] ; then \ 2365 $(XECHO) -n "... PCI HOST " ; \ 2366 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2367 fi ; 2368 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 2369 2370MPC837XERDB_config: unconfig 2371 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 2372 2373MVBLM7_config: unconfig 2374 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision 2375 2376sbc8349_config: unconfig 2377 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 2378 2379SIMPC8313_LP_config \ 2380SIMPC8313_SP_config: unconfig 2381 @mkdir -p $(obj)include 2382 @mkdir -p $(obj)board/sheldon/simpc8313 2383 @if [ "$(findstring _LP_,$@)" ] ; then \ 2384 $(XECHO) -n "...Large Page NAND..." ; \ 2385 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ 2386 fi ; \ 2387 if [ "$(findstring _SP_,$@)" ] ; then \ 2388 $(XECHO) -n "...Small Page NAND..." ; \ 2389 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ 2390 fi ; 2391 @$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon 2392 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2393 2394TQM834x_config: unconfig 2395 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc 2396 2397 2398######################################################################### 2399## MPC85xx Systems 2400######################################################################### 2401 2402ATUM8548_config: unconfig 2403 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 2404 2405MPC8536DS_config: unconfig 2406 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale 2407 2408MPC8540ADS_config: unconfig 2409 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 2410 2411MPC8540EVAL_config \ 2412MPC8540EVAL_33_config \ 2413MPC8540EVAL_66_config \ 2414MPC8540EVAL_33_slave_config \ 2415MPC8540EVAL_66_slave_config: unconfig 2416 @mkdir -p $(obj)include 2417 @if [ "$(findstring _33_,$@)" ] ; then \ 2418 $(XECHO) "... 33 MHz PCI" ; \ 2419 else \ 2420 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2421 $(XECHO) "... 66 MHz PCI" ; \ 2422 fi ; \ 2423 if [ "$(findstring _slave_,$@)" ] ; then \ 2424 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2425 $(XECHO) " slave" ; \ 2426 else \ 2427 $(XECHO) " host" ; \ 2428 fi 2429 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2430 2431MPC8560ADS_config: unconfig 2432 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 2433 2434MPC8541CDS_legacy_config \ 2435MPC8541CDS_config: unconfig 2436 @mkdir -p $(obj)include 2437 @if [ "$(findstring _legacy_,$@)" ] ; then \ 2438 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2439 $(XECHO) "... legacy" ; \ 2440 fi 2441 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 2442 2443MPC8544DS_config: unconfig 2444 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 2445 2446MPC8548CDS_legacy_config \ 2447MPC8548CDS_config: unconfig 2448 @mkdir -p $(obj)include 2449 @if [ "$(findstring _legacy_,$@)" ] ; then \ 2450 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2451 $(XECHO) "... legacy" ; \ 2452 fi 2453 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2454 2455MPC8555CDS_legacy_config \ 2456MPC8555CDS_config: unconfig 2457 @mkdir -p $(obj)include 2458 @if [ "$(findstring _legacy_,$@)" ] ; then \ 2459 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2460 $(XECHO) "... legacy" ; \ 2461 fi 2462 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 2463 2464MPC8568MDS_config: unconfig 2465 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 2466 2467MPC8569MDS_config: unconfig 2468 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale 2469 2470MPC8572DS_36BIT_config \ 2471MPC8572DS_config: unconfig 2472 @mkdir -p $(obj)include 2473 @if [ "$(findstring _36BIT_,$@)" ] ; then \ 2474 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 2475 $(XECHO) "... enabling 36-bit physical addressing." ; \ 2476 fi 2477 @$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale 2478 2479PM854_config: unconfig 2480 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2481 2482PM856_config: unconfig 2483 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2484 2485sbc8540_config \ 2486sbc8540_33_config \ 2487sbc8540_66_config: unconfig 2488 @mkdir -p $(obj)include 2489 @if [ "$(findstring _66_,$@)" ] ; then \ 2490 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2491 $(XECHO) "... 66 MHz PCI" ; \ 2492 else \ 2493 $(XECHO) "... 33 MHz PCI" ; \ 2494 fi 2495 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2496 2497sbc8548_config: unconfig 2498 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 2499 2500sbc8560_config \ 2501sbc8560_33_config \ 2502sbc8560_66_config: unconfig 2503 @mkdir -p $(obj)include 2504 @if [ "$(findstring _66_,$@)" ] ; then \ 2505 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2506 $(XECHO) "... 66 MHz PCI" ; \ 2507 else \ 2508 $(XECHO) "... 33 MHz PCI" ; \ 2509 fi 2510 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 2511 2512socrates_config: unconfig 2513 @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates 2514 2515stxgp3_config: unconfig 2516 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 2517 2518stxssa_config \ 2519stxssa_4M_config: unconfig 2520 @mkdir -p $(obj)include 2521 @if [ "$(findstring _4M_,$@)" ] ; then \ 2522 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2523 $(XECHO) "... with 4 MiB flash memory" ; \ 2524 fi 2525 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 2526 2527TQM8540_config \ 2528TQM8541_config \ 2529TQM8548_config \ 2530TQM8548_AG_config \ 2531TQM8548_BE_config \ 2532TQM8555_config \ 2533TQM8560_config: unconfig 2534 @mkdir -p $(obj)include 2535 @BTYPE=$(@:_config=); \ 2536 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ 2537 $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \ 2538 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2539 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ 2540 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2541 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; 2542 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc 2543 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; 2544 2545XPEDITE5200_config: unconfig 2546 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes 2547 2548XPEDITE5370_config: unconfig 2549 @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes 2550 2551######################################################################### 2552## MPC86xx Systems 2553######################################################################### 2554 2555MPC8610HPCD_config: unconfig 2556 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 2557 2558MPC8641HPCN_36BIT_config \ 2559MPC8641HPCN_config: unconfig 2560 @mkdir -p $(obj)include 2561 @if [ "$(findstring _36BIT_,$@)" ] ; then \ 2562 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 2563 $(XECHO) "... enabling 36-bit physical addressing." ; \ 2564 fi 2565 @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale 2566 2567sbc8641d_config: unconfig 2568 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2569 2570######################################################################### 2571## 74xx/7xx Systems 2572######################################################################### 2573 2574AmigaOneG3SE_config: unconfig 2575 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2576 2577BAB7xx_config: unconfig 2578 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 2579 2580CPCI750_config: unconfig 2581 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2582 2583DB64360_config: unconfig 2584 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 2585 2586DB64460_config: unconfig 2587 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 2588 2589ELPPC_config: unconfig 2590 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 2591 2592EVB64260_config \ 2593EVB64260_750CX_config: unconfig 2594 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 2595 2596mpc7448hpc2_config: unconfig 2597 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale 2598 2599P3G4_config: unconfig 2600 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2601 2602p3m750_config \ 2603p3m7448_config: unconfig 2604 @mkdir -p $(obj)include 2605 @if [ "$(findstring 750_,$@)" ] ; then \ 2606 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 2607 else \ 2608 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 2609 fi 2610 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 2611 2612PCIPPC2_config \ 2613PCIPPC6_config: unconfig 2614 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 2615 2616ppmc7xx_config: unconfig 2617 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2618 2619ZUMA_config: unconfig 2620 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2621 2622#======================================================================== 2623# ARM 2624#======================================================================== 2625######################################################################### 2626## StrongARM Systems 2627######################################################################### 2628 2629assabet_config : unconfig 2630 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2631 2632dnp1110_config : unconfig 2633 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 2634 2635gcplus_config : unconfig 2636 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2637 2638lart_config : unconfig 2639 @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2640 2641shannon_config : unconfig 2642 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 2643 2644######################################################################### 2645## ARM92xT Systems 2646######################################################################### 2647 2648######################################################################### 2649## Atmel AT91RM9200 Systems 2650######################################################################### 2651 2652at91rm9200dk_config : unconfig 2653 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2654 2655at91rm9200ek_config : unconfig 2656 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200 2657 2658cmc_pu2_config : unconfig 2659 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2660 2661csb637_config : unconfig 2662 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2663 2664kb9202_config : unconfig 2665 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2666 2667m501sk_config : unconfig 2668 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 2669 2670mp2usb_config : unconfig 2671 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 2672 2673######################################################################### 2674## Atmel ARM926EJ-S Systems 2675######################################################################### 2676 2677afeb9260_config: unconfig 2678 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91 2679 2680at91cap9adk_config : unconfig 2681 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91 2682 2683at91sam9260ek_nandflash_config \ 2684at91sam9260ek_dataflash_cs0_config \ 2685at91sam9260ek_dataflash_cs1_config \ 2686at91sam9260ek_config \ 2687at91sam9g20ek_nandflash_config \ 2688at91sam9g20ek_dataflash_cs0_config \ 2689at91sam9g20ek_dataflash_cs1_config \ 2690at91sam9g20ek_config : unconfig 2691 @mkdir -p $(obj)include 2692 @if [ "$(findstring 9g20,$@)" ] ; then \ 2693 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 2694 $(XECHO) "... 9G20 Variant" ; \ 2695 else \ 2696 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 2697 fi; 2698 @if [ "$(findstring _nandflash,$@)" ] ; then \ 2699 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 2700 $(XECHO) "... with environment variable in NAND FLASH" ; \ 2701 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 2702 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 2703 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 2704 else \ 2705 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 2706 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ 2707 fi; 2708 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 2709 2710at91sam9xeek_nandflash_config \ 2711at91sam9xeek_dataflash_cs0_config \ 2712at91sam9xeek_dataflash_cs1_config \ 2713at91sam9xeek_config : unconfig 2714 @mkdir -p $(obj)include 2715 @if [ "$(findstring _nandflash,$@)" ] ; then \ 2716 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 2717 $(XECHO) "... with environment variable in NAND FLASH" ; \ 2718 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 2719 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 2720 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 2721 else \ 2722 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 2723 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ 2724 fi; 2725 @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 2726 2727at91sam9261ek_nandflash_config \ 2728at91sam9261ek_dataflash_cs0_config \ 2729at91sam9261ek_dataflash_cs3_config \ 2730at91sam9261ek_config : unconfig 2731 @mkdir -p $(obj)include 2732 @if [ "$(findstring _nandflash,$@)" ] ; then \ 2733 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 2734 $(XECHO) "... with environment variable in NAND FLASH" ; \ 2735 elif [ "$(findstring dataflash_cs3,$@)" ] ; then \ 2736 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 2737 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \ 2738 else \ 2739 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 2740 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 2741 fi; 2742 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 2743 2744at91sam9263ek_nandflash_config \ 2745at91sam9263ek_dataflash_config \ 2746at91sam9263ek_dataflash_cs0_config \ 2747at91sam9263ek_config : unconfig 2748 @mkdir -p $(obj)include 2749 @if [ "$(findstring _nandflash,$@)" ] ; then \ 2750 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 2751 $(XECHO) "... with environment variable in NAND FLASH" ; \ 2752 else \ 2753 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 2754 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 2755 fi; 2756 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 2757 2758at91sam9rlek_nandflash_config \ 2759at91sam9rlek_dataflash_config \ 2760at91sam9rlek_dataflash_cs0_config \ 2761at91sam9rlek_config : unconfig 2762 @mkdir -p $(obj)include 2763 @if [ "$(findstring _nandflash,$@)" ] ; then \ 2764 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 2765 $(XECHO) "... with environment variable in NAND FLASH" ; \ 2766 else \ 2767 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 2768 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 2769 fi; 2770 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 2771 2772pm9263_config : unconfig 2773 @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91 2774 2775######################################################################## 2776## ARM Integrator boards - see doc/README-integrator for more info. 2777integratorap_config \ 2778ap_config \ 2779ap966_config \ 2780ap922_config \ 2781ap922_XA10_config \ 2782ap7_config \ 2783ap720t_config \ 2784ap920t_config \ 2785ap926ejs_config \ 2786ap946es_config: unconfig 2787 @board/armltd/integratorap/split_by_variant.sh $@ 2788 2789integratorcp_config \ 2790cp_config \ 2791cp920t_config \ 2792cp926ejs_config \ 2793cp946es_config \ 2794cp1136_config \ 2795cp966_config \ 2796cp922_config \ 2797cp922_XA10_config \ 2798cp1026_config: unconfig 2799 @board/armltd/integratorcp/split_by_variant.sh $@ 2800 2801davinci_dvevm_config : unconfig 2802 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci 2803 2804davinci_schmoogie_config : unconfig 2805 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2806 2807davinci_sffsdr_config : unconfig 2808 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci 2809 2810davinci_sonata_config : unconfig 2811 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2812 2813davinci_dm355evm_config : unconfig 2814 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci 2815 2816lpd7a400_config \ 2817lpd7a404_config: unconfig 2818 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 2819 2820mx1ads_config : unconfig 2821 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2822 2823mx1fs2_config : unconfig 2824 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2825 2826netstar_config: unconfig 2827 @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2828 2829nmdk8815_config \ 2830nmdk8815_onenand_config: unconfig 2831 @mkdir -p $(obj)include 2832 @ > $(obj)include/config.h 2833 @if [ "$(findstring _onenand, $@)" ] ; then \ 2834 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 2835 $(XECHO) "... configured for OneNand Flash"; \ 2836 else \ 2837 $(XECHO) "... configured for Nand Flash"; \ 2838 fi 2839 @$(MKCONFIG) -a nmdk8815 arm arm926ejs nmdk8815 st nomadik 2840 2841omap1510inn_config : unconfig 2842 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 2843 2844xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2845 2846omap1610inn_config \ 2847omap1610inn_cs0boot_config \ 2848omap1610inn_cs3boot_config \ 2849omap1610inn_cs_autoboot_config \ 2850omap1610h2_config \ 2851omap1610h2_cs0boot_config \ 2852omap1610h2_cs3boot_config \ 2853omap1610h2_cs_autoboot_config: unconfig 2854 @mkdir -p $(obj)include 2855 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2856 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2857 $(XECHO) "... configured for CS0 boot"; \ 2858 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2859 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2860 $(XECHO) "... configured for CS_AUTO boot"; \ 2861 else \ 2862 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2863 $(XECHO) "... configured for CS3 boot"; \ 2864 fi; 2865 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 2866 2867omap5912osk_config : unconfig 2868 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 2869 2870xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2871 2872omap730p2_config \ 2873omap730p2_cs0boot_config \ 2874omap730p2_cs3boot_config : unconfig 2875 @mkdir -p $(obj)include 2876 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2877 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2878 $(XECHO) "... configured for CS0 boot"; \ 2879 else \ 2880 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2881 $(XECHO) "... configured for CS3 boot"; \ 2882 fi; 2883 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2884 2885sbc2410x_config: unconfig 2886 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 2887 2888scb9328_config : unconfig 2889 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2890 2891smdk2400_config : unconfig 2892 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0 2893 2894smdk2410_config : unconfig 2895 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0 2896 2897SX1_stdout_serial_config \ 2898SX1_config: unconfig 2899 @mkdir -p $(obj)include 2900 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 2901 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 2902 $(XECHO) "... configured for stdout serial"; \ 2903 else \ 2904 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 2905 $(XECHO) "... configured for stdout usbtty"; \ 2906 fi; 2907 @$(MKCONFIG) SX1 arm arm925t sx1 2908 2909# TRAB default configuration: 8 MB Flash, 32 MB RAM 2910xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2911 2912trab_config \ 2913trab_bigram_config \ 2914trab_bigflash_config \ 2915trab_old_config: unconfig 2916 @mkdir -p $(obj)include 2917 @mkdir -p $(obj)board/trab 2918 @[ -z "$(findstring _bigram,$@)" ] || \ 2919 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2920 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2921 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2922 } 2923 @[ -z "$(findstring _bigflash,$@)" ] || \ 2924 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2925 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2926 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2927 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2928 } 2929 @[ -z "$(findstring _old,$@)" ] || \ 2930 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2931 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2932 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2933 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2934 } 2935 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 2936 2937VCMA9_config : unconfig 2938 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 2939 2940######################################################################### 2941# ARM supplied Versatile development boards 2942######################################################################### 2943 2944cm4008_config : unconfig 2945 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 2946 2947cm41xx_config : unconfig 2948 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 2949 2950versatile_config \ 2951versatileab_config \ 2952versatilepb_config : unconfig 2953 @board/armltd/versatile/split_by_variant.sh $@ 2954 2955voiceblue_config: unconfig 2956 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 2957 2958######################################################################### 2959## S3C44B0 Systems 2960######################################################################### 2961 2962B2_config : unconfig 2963 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2964 2965######################################################################### 2966## ARM720T Systems 2967######################################################################### 2968 2969armadillo_config: unconfig 2970 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2971 2972ep7312_config : unconfig 2973 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 2974 2975impa7_config : unconfig 2976 @$(MKCONFIG) $(@:_config=) arm arm720t impa7 2977 2978modnet50_config : unconfig 2979 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 2980 2981evb4510_config : unconfig 2982 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b 2983 2984lpc2292sodimm_config: unconfig 2985 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2986 2987SMN42_config : unconfig 2988 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 2989 2990######################################################################### 2991## ARM CORTEX Systems 2992######################################################################### 2993 2994omap3_beagle_config : unconfig 2995 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3 2996 2997omap3_overo_config : unconfig 2998 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3 2999 3000omap3_evm_config : unconfig 3001 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3 3002 3003omap3_pandora_config : unconfig 3004 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3 3005 3006omap3_zoom1_config : unconfig 3007 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3 3008 3009omap3_zoom2_config : unconfig 3010 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 omap3 omap3 3011 3012######################################################################### 3013## XScale Systems 3014######################################################################### 3015 3016actux1_config : unconfig 3017 @$(MKCONFIG) $(@:_config=) arm ixp actux1 3018 3019actux2_config : unconfig 3020 @$(MKCONFIG) $(@:_config=) arm ixp actux2 3021 3022actux3_config : unconfig 3023 @$(MKCONFIG) $(@:_config=) arm ixp actux3 3024 3025actux4_config : unconfig 3026 @$(MKCONFIG) $(@:_config=) arm ixp actux4 3027 3028cerf250_config : unconfig 3029 @$(MKCONFIG) $(@:_config=) arm pxa cerf250 3030 3031cradle_config : unconfig 3032 @$(MKCONFIG) $(@:_config=) arm pxa cradle 3033 3034csb226_config : unconfig 3035 @$(MKCONFIG) $(@:_config=) arm pxa csb226 3036 3037delta_config : unconfig 3038 @$(MKCONFIG) $(@:_config=) arm pxa delta 3039 3040innokom_config : unconfig 3041 @$(MKCONFIG) $(@:_config=) arm pxa innokom 3042 3043ixdp425_config : unconfig 3044 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 3045 3046ixdpg425_config : unconfig 3047 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 3048 3049lubbock_config : unconfig 3050 @$(MKCONFIG) $(@:_config=) arm pxa lubbock 3051 3052pleb2_config : unconfig 3053 @$(MKCONFIG) $(@:_config=) arm pxa pleb2 3054 3055logodl_config : unconfig 3056 @$(MKCONFIG) $(@:_config=) arm pxa logodl 3057 3058pdnb3_config \ 3059scpu_config: unconfig 3060 @mkdir -p $(obj)include 3061 @if [ "$(findstring scpu_,$@)" ] ; then \ 3062 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 3063 $(XECHO) "... on SCPU board variant" ; \ 3064 fi 3065 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 3066 3067pxa255_idp_config: unconfig 3068 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 3069 3070trizepsiv_config : unconfig 3071 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 3072 3073wepep250_config : unconfig 3074 @$(MKCONFIG) $(@:_config=) arm pxa wepep250 3075 3076xaeniax_config : unconfig 3077 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 3078 3079xm250_config : unconfig 3080 @$(MKCONFIG) $(@:_config=) arm pxa xm250 3081 3082xsengine_config : unconfig 3083 @$(MKCONFIG) $(@:_config=) arm pxa xsengine 3084 3085zylonite_config : 3086 @$(MKCONFIG) $(@:_config=) arm pxa zylonite 3087 3088######################################################################### 3089## ARM1136 Systems 3090######################################################################### 3091 3092apollon_config : unconfig 3093 @mkdir -p $(obj)include 3094 @mkdir -p $(obj)onenand_ipl/board/apollon 3095 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 3096 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 3097 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 3098 3099imx31_litekit_config : unconfig 3100 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 3101 3102imx31_phycore_eet_config \ 3103imx31_phycore_config : unconfig 3104 @mkdir -p $(obj)include 3105 @if [ -n "$(findstring _eet_,$@)" ]; then \ 3106 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 3107 fi 3108 @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31 3109 3110mx31ads_config : unconfig 3111 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31 3112 3113omap2420h4_config : unconfig 3114 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx 3115 3116qong_config : unconfig 3117 @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31 3118 3119 3120######################################################################### 3121## ARM1176 Systems 3122######################################################################### 3123smdk6400_noUSB_config \ 3124smdk6400_config : unconfig 3125 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 3126 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 3127 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 3128 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 3129 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 3130 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \ 3131 else \ 3132 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 3133 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \ 3134 fi 3135 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 3136 3137#======================================================================== 3138# i386 3139#======================================================================== 3140######################################################################### 3141## AMD SC520 CDP 3142######################################################################### 3143eNET_config : unconfig 3144 @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520 3145 3146sc520_cdp_config : unconfig 3147 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520 3148 3149sc520_spunk_config : unconfig 3150 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 3151 3152sc520_spunk_rel_config : unconfig 3153 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 3154 3155#======================================================================== 3156# MIPS 3157#======================================================================== 3158######################################################################### 3159## MIPS32 4Kc 3160######################################################################### 3161 3162xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 3163 3164incaip_100MHz_config \ 3165incaip_133MHz_config \ 3166incaip_150MHz_config \ 3167incaip_config: unconfig 3168 @mkdir -p $(obj)include 3169 @[ -z "$(findstring _100MHz,$@)" ] || \ 3170 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 3171 $(XECHO) "... with 100MHz system clock" ; \ 3172 } 3173 @[ -z "$(findstring _133MHz,$@)" ] || \ 3174 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 3175 $(XECHO) "... with 133MHz system clock" ; \ 3176 } 3177 @[ -z "$(findstring _150MHz,$@)" ] || \ 3178 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 3179 $(XECHO) "... with 150MHz system clock" ; \ 3180 } 3181 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 3182 3183tb0229_config: unconfig 3184 @$(MKCONFIG) $(@:_config=) mips mips tb0229 3185 3186vct_premium_config \ 3187vct_premium_small_config \ 3188vct_premium_onenand_config \ 3189vct_premium_onenand_small_config \ 3190vct_platinum_config \ 3191vct_platinum_small_config \ 3192vct_platinum_onenand_config \ 3193vct_platinum_onenand_small_config \ 3194vct_platinumavc_config \ 3195vct_platinumavc_small_config \ 3196vct_platinumavc_onenand_config \ 3197vct_platinumavc_onenand_small_config: unconfig 3198 @mkdir -p $(obj)include 3199 @if [ "$(findstring _premium,$@)" ] ; then \ 3200 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \ 3201 $(XECHO) "... on Premium board variant" ; \ 3202 fi 3203 @if [ "$(findstring _platinum_,$@)" ] ; then \ 3204 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \ 3205 $(XECHO) "... on Platinum board variant" ; \ 3206 fi 3207 @if [ "$(findstring _platinumavc,$@)" ] ; then \ 3208 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \ 3209 $(XECHO) "... on PlatinumAVC board variant" ; \ 3210 fi 3211 @if [ "$(findstring _onenand,$@)" ] ; then \ 3212 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \ 3213 $(XECHO) "... on OneNAND board variant" ; \ 3214 fi 3215 @if [ "$(findstring _small,$@)" ] ; then \ 3216 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \ 3217 $(XECHO) "... stripped down image variant" ; \ 3218 fi 3219 @$(MKCONFIG) -a vct mips mips vct micronas 3220 3221######################################################################### 3222## MIPS32 AU1X00 3223######################################################################### 3224 3225dbau1000_config : unconfig 3226 @mkdir -p $(obj)include 3227 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 3228 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3229 3230dbau1100_config : unconfig 3231 @mkdir -p $(obj)include 3232 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 3233 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3234 3235dbau1500_config : unconfig 3236 @mkdir -p $(obj)include 3237 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 3238 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3239 3240dbau1550_config : unconfig 3241 @mkdir -p $(obj)include 3242 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 3243 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3244 3245dbau1550_el_config : unconfig 3246 @mkdir -p $(obj)include 3247 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 3248 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3249 3250gth2_config : unconfig 3251 @mkdir -p $(obj)include 3252 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 3253 @$(MKCONFIG) -a gth2 mips mips gth2 3254 3255pb1000_config : unconfig 3256 @mkdir -p $(obj)include 3257 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 3258 @$(MKCONFIG) -a pb1x00 mips mips pb1x00 3259 3260qemu_mips_config : unconfig 3261 @mkdir -p $(obj)include 3262 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 3263 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 3264 3265######################################################################### 3266## MIPS64 5Kc 3267######################################################################### 3268 3269purple_config : unconfig 3270 @$(MKCONFIG) $(@:_config=) mips mips purple 3271 3272#======================================================================== 3273# Nios 3274#======================================================================== 3275######################################################################### 3276## Nios32 3277######################################################################### 3278 3279ADNPESC1_DNPEVA2_base_32_config \ 3280ADNPESC1_base_32_config \ 3281ADNPESC1_config: unconfig 3282 @mkdir -p $(obj)include 3283 @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 3284 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 3285 $(XECHO) "... DNP/EVA2 configuration" ; \ 3286 } 3287 @[ -z "$(findstring _base_32,$@)" ] || \ 3288 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 3289 $(XECHO) "... NIOS 'base_32' configuration" ; \ 3290 } 3291 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 3292 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 3293 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 3294 } 3295 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 3296 3297DK1C20_safe_32_config \ 3298DK1C20_standard_32_config \ 3299DK1C20_config: unconfig 3300 @mkdir -p $(obj)include 3301 @[ -z "$(findstring _safe_32,$@)" ] || \ 3302 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 3303 $(XECHO) "... NIOS 'safe_32' configuration" ; \ 3304 } 3305 @[ -z "$(findstring _standard_32,$@)" ] || \ 3306 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3307 $(XECHO) "... NIOS 'standard_32' configuration" ; \ 3308 } 3309 @[ -z "$(findstring DK1C20_config,$@)" ] || \ 3310 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3311 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 3312 } 3313 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 3314 3315DK1S10_safe_32_config \ 3316DK1S10_standard_32_config \ 3317DK1S10_mtx_ldk_20_config \ 3318DK1S10_config: unconfig 3319 @mkdir -p $(obj)include 3320 @[ -z "$(findstring _safe_32,$@)" ] || \ 3321 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 3322 $(XECHO) "... NIOS 'safe_32' configuration" ; \ 3323 } 3324 @[ -z "$(findstring _standard_32,$@)" ] || \ 3325 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3326 $(XECHO) "... NIOS 'standard_32' configuration" ; \ 3327 } 3328 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 3329 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 3330 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 3331 } 3332 @[ -z "$(findstring DK1S10_config,$@)" ] || \ 3333 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3334 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 3335 } 3336 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 3337 3338######################################################################### 3339## Nios-II 3340######################################################################### 3341 3342EP1C20_config : unconfig 3343 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 3344 3345EP1S10_config : unconfig 3346 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 3347 3348EP1S40_config : unconfig 3349 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 3350 3351PK1C20_config : unconfig 3352 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 3353 3354PCI5441_config : unconfig 3355 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 3356 3357#======================================================================== 3358## Microblaze 3359#======================================================================== 3360 3361microblaze-generic_config: unconfig 3362 @mkdir -p $(obj)include 3363 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx 3364 3365suzaku_config: unconfig 3366 @mkdir -p $(obj)include 3367 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 3368 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 3369 3370#======================================================================== 3371# Blackfin 3372#======================================================================== 3373 3374# Analog Devices boards 3375BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \ 3376 bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit 3377 3378$(BFIN_BOARDS:%=%_config) : unconfig 3379 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 3380 3381$(BFIN_BOARDS): 3382 $(MAKE) $@_config 3383 $(MAKE) 3384 3385#======================================================================== 3386# AVR32 3387#======================================================================== 3388 3389atngw100_config : unconfig 3390 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 3391 3392atstk1002_config : unconfig 3393 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 3394 3395atstk1003_config : unconfig 3396 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 3397 3398atstk1004_config : unconfig 3399 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 3400 3401atstk1006_config : unconfig 3402 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 3403 3404favr-32-ezkit_config : unconfig 3405 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x 3406 3407hammerhead_config : unconfig 3408 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x 3409 3410mimc200_config : unconfig 3411 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x 3412 3413#======================================================================== 3414# SH3 (SuperH) 3415#======================================================================== 3416 3417######################################################################### 3418## sh2 (Renesas SuperH) 3419######################################################################### 3420rsk7203_config: unconfig 3421 @mkdir -p $(obj)include 3422 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h 3423 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas 3424 3425######################################################################### 3426## sh3 (Renesas SuperH) 3427######################################################################### 3428 3429mpr2_config: unconfig 3430 @mkdir -p $(obj)include 3431 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 3432 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 3433 3434ms7720se_config: unconfig 3435 @mkdir -p $(obj)include 3436 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 3437 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 3438 3439######################################################################### 3440## sh4 (Renesas SuperH) 3441######################################################################### 3442 3443MigoR_config : unconfig 3444 @mkdir -p $(obj)include 3445 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 3446 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas 3447 3448ms7750se_config: unconfig 3449 @mkdir -p $(obj)include 3450 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 3451 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 3452 3453ms7722se_config : unconfig 3454 @mkdir -p $(obj)include 3455 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 3456 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 3457 3458r2dplus_config : unconfig 3459 @mkdir -p $(obj)include 3460 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 3461 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas 3462 3463r7780mp_config: unconfig 3464 @mkdir -p $(obj)include 3465 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 3466 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas 3467 3468sh7763rdp_config : unconfig 3469 @mkdir -p $(obj)include 3470 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 3471 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas 3472 3473xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1)) 3474sh7785lcr_32bit_config \ 3475sh7785lcr_config : unconfig 3476 @ >include/config.h 3477 @echo "#define CONFIG_SH7785LCR 1" >> include/config.h 3478 @if [ "$(findstring 32bit, $@)" ] ; then \ 3479 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ 3480 cp $(obj)board/renesas/sh7785lcr/u-boot_32bit \ 3481 $(obj)board/renesas/sh7785lcr/u-boot.lds ; \ 3482 echo "TEXT_BASE = 0x8ff80000" > \ 3483 $(obj)board/renesas/sh7785lcr/config.tmp ; \ 3484 $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \ 3485 else \ 3486 cp $(obj)board/renesas/sh7785lcr/u-boot_29bit \ 3487 $(obj)board/renesas/sh7785lcr/u-boot.lds ; \ 3488 fi 3489 @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas 3490 3491ap325rxa_config : unconfig 3492 @mkdir -p $(obj)include 3493 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h 3494 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas 3495 3496#======================================================================== 3497# SPARC 3498#======================================================================== 3499 3500######################################################################### 3501## LEON3 3502######################################################################### 3503 3504# Gaisler GR-XC3S-1500 board 3505gr_xc3s_1500_config : unconfig 3506 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 3507 3508# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 3509gr_cpci_ax2000_config : unconfig 3510 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 3511 3512# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 3513# Development board Stratix II edition, FPGA Device EP2S60. 3514gr_ep2s60_config: unconfig 3515 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 3516 3517# Gaisler LEON3 GRSIM simulator 3518grsim_config : unconfig 3519 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 3520 3521######################################################################### 3522## LEON2 3523######################################################################### 3524 3525# Gaisler LEON2 GRSIM simulator 3526grsim_leon2_config : unconfig 3527 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 3528 3529######################################################################### 3530######################################################################### 3531######################################################################### 3532 3533clean: 3534 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 3535 $(obj)examples/hello_world $(obj)examples/interrupt \ 3536 $(obj)examples/mem_to_mem_idma2intr \ 3537 $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 3538 $(obj)examples/test_burst $(obj)examples/timer 3539 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 3540 $(obj)tools/env/{fw_printenv,fw_setenv} \ 3541 $(obj)tools/envcrc \ 3542 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 3543 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 3544 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 3545 $(obj)tools/ncb $(obj)tools/ubsha1 3546 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 3547 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 3548 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 3549 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 3550 $(obj)board/bf5{18f,26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \ 3551 $(obj)board/bf5{33,37}-stamp/u-boot.lds \ 3552 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] 3553 @rm -f $(obj)include/bmp_logo.h 3554 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map} 3555 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} 3556 @rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE) 3557 @find $(OBJTREE) -type f \ 3558 \( -name 'core' -o -name '*.bak' -o -name '*~' \ 3559 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 3560 | xargs rm -f 3561 3562clobber: clean 3563 @find $(OBJTREE) -type f \( -name .depend \ 3564 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 3565 -print0 \ 3566 | xargs -0 rm -f 3567 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 3568 $(obj)cscope.* $(obj)*.*~ 3569 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 3570 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 3571 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 3572 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 3573 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 3574 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 3575 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f 3576 3577ifeq ($(OBJTREE),$(SRCTREE)) 3578mrproper \ 3579distclean: clobber unconfig 3580else 3581mrproper \ 3582distclean: clobber unconfig 3583 rm -rf $(obj)* 3584endif 3585 3586backup: 3587 F=`basename $(TOPDIR)` ; cd .. ; \ 3588 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 3589 3590######################################################################### 3591