1# 2# (C) Copyright 2000-2010 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 = 2010 25PATCHLEVEL = 06 26SUBLEVEL = 27EXTRAVERSION = 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/ppc64/powerpc/ \ 42 -e s/ppc/powerpc/ \ 43 -e s/macppc/powerpc/\ 44 -e s/sh.*/sh/) 45 46HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 47 sed -e 's/\(cygwin\).*/cygwin/') 48 49# Set shell to bash if possible, otherwise fall back to sh 50SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 51 else if [ -x /bin/bash ]; then echo /bin/bash; \ 52 else echo sh; fi; fi) 53 54export HOSTARCH HOSTOS SHELL 55 56# Deal with colliding definitions from tcsh etc. 57VENDOR= 58 59######################################################################### 60# Allow for silent builds 61ifeq (,$(findstring s,$(MAKEFLAGS))) 62XECHO = echo 63else 64XECHO = : 65endif 66 67######################################################################### 68# 69# U-boot build supports producing a object files to the separate external 70# directory. Two use cases are supported: 71# 72# 1) Add O= to the make command line 73# 'make O=/tmp/build all' 74# 75# 2) Set environement variable BUILD_DIR to point to the desired location 76# 'export BUILD_DIR=/tmp/build' 77# 'make' 78# 79# The second approach can also be used with a MAKEALL script 80# 'export BUILD_DIR=/tmp/build' 81# './MAKEALL' 82# 83# Command line 'O=' setting overrides BUILD_DIR environent variable. 84# 85# When none of the above methods is used the local build is performed and 86# the object files are placed in the source directory. 87# 88 89ifdef O 90ifeq ("$(origin O)", "command line") 91BUILD_DIR := $(O) 92endif 93endif 94 95ifneq ($(BUILD_DIR),) 96saved-output := $(BUILD_DIR) 97 98# Attempt to create a output directory. 99$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 100 101# Verify if it was successful. 102BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 103$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 104endif # ifneq ($(BUILD_DIR),) 105 106OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 107SRCTREE := $(CURDIR) 108TOPDIR := $(SRCTREE) 109LNDIR := $(OBJTREE) 110export TOPDIR SRCTREE OBJTREE 111 112MKCONFIG := $(SRCTREE)/mkconfig 113export MKCONFIG 114 115ifneq ($(OBJTREE),$(SRCTREE)) 116REMOTE_BUILD := 1 117export REMOTE_BUILD 118endif 119 120# $(obj) and (src) are defined in config.mk but here in main Makefile 121# we also need them before config.mk is included which is the case for 122# some targets like unconfig, clean, clobber, distclean, etc. 123ifneq ($(OBJTREE),$(SRCTREE)) 124obj := $(OBJTREE)/ 125src := $(SRCTREE)/ 126else 127obj := 128src := 129endif 130export obj src 131 132# Make sure CDPATH settings don't interfere 133unexport CDPATH 134 135######################################################################### 136 137# The "tools" are needed early, so put this first 138# Don't include stuff already done in $(LIBS) 139SUBDIRS = tools \ 140 examples/standalone \ 141 examples/api 142 143.PHONY : $(SUBDIRS) 144 145ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 146 147# Include autoconf.mk before config.mk so that the config options are available 148# to all top level build files. We need the dummy all: target to prevent the 149# dependency target in autoconf.mk.dep from being the default. 150all: 151sinclude $(obj)include/autoconf.mk.dep 152sinclude $(obj)include/autoconf.mk 153 154# load ARCH, BOARD, and CPU configuration 155include $(obj)include/config.mk 156export ARCH CPU BOARD VENDOR SOC 157 158# set default to nothing for native builds 159ifeq ($(HOSTARCH),$(ARCH)) 160CROSS_COMPILE ?= 161endif 162 163# load other configuration 164include $(TOPDIR)/config.mk 165 166######################################################################### 167# U-Boot objects....order is important (i.e. start must be first) 168 169OBJS = $(CPUDIR)/start.o 170ifeq ($(CPU),i386) 171OBJS += $(CPUDIR)/start16.o 172OBJS += $(CPUDIR)/resetvec.o 173endif 174ifeq ($(CPU),ppc4xx) 175OBJS += $(CPUDIR)/resetvec.o 176endif 177ifeq ($(CPU),mpc85xx) 178OBJS += $(CPUDIR)/resetvec.o 179endif 180 181OBJS := $(addprefix $(obj),$(OBJS)) 182 183LIBS = lib/libgeneric.a 184LIBS += lib/lzma/liblzma.a 185LIBS += lib/lzo/liblzo.a 186LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 187 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 188LIBS += $(CPUDIR)/lib$(CPU).a 189ifdef SOC 190LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a 191endif 192ifeq ($(CPU),ixp) 193LIBS += arch/arm/cpu/ixp/npe/libnpe.a 194endif 195LIBS += arch/$(ARCH)/lib/lib$(ARCH).a 196LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 197 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ 198 fs/ubifs/libubifs.a 199LIBS += net/libnet.a 200LIBS += disk/libdisk.a 201LIBS += drivers/bios_emulator/libatibiosemu.a 202LIBS += drivers/block/libblock.a 203LIBS += drivers/dma/libdma.a 204LIBS += drivers/fpga/libfpga.a 205LIBS += drivers/gpio/libgpio.a 206LIBS += drivers/hwmon/libhwmon.a 207LIBS += drivers/i2c/libi2c.a 208LIBS += drivers/input/libinput.a 209LIBS += drivers/misc/libmisc.a 210LIBS += drivers/mmc/libmmc.a 211LIBS += drivers/mtd/libmtd.a 212LIBS += drivers/mtd/nand/libnand.a 213LIBS += drivers/mtd/onenand/libonenand.a 214LIBS += drivers/mtd/ubi/libubi.a 215LIBS += drivers/mtd/spi/libspi_flash.a 216LIBS += drivers/net/libnet.a 217LIBS += drivers/net/phy/libphy.a 218LIBS += drivers/pci/libpci.a 219LIBS += drivers/pcmcia/libpcmcia.a 220LIBS += drivers/power/libpower.a 221LIBS += drivers/spi/libspi.a 222ifeq ($(CPU),mpc83xx) 223LIBS += drivers/qe/qe.a 224LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 225endif 226ifeq ($(CPU),mpc85xx) 227LIBS += drivers/qe/qe.a 228LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 229LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 230endif 231ifeq ($(CPU),mpc86xx) 232LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 233LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 234endif 235LIBS += drivers/rtc/librtc.a 236LIBS += drivers/serial/libserial.a 237LIBS += drivers/twserial/libtws.a 238LIBS += drivers/usb/gadget/libusb_gadget.a 239LIBS += drivers/usb/host/libusb_host.a 240LIBS += drivers/usb/musb/libusb_musb.a 241LIBS += drivers/usb/phy/libusb_phy.a 242LIBS += drivers/video/libvideo.a 243LIBS += drivers/watchdog/libwatchdog.a 244LIBS += common/libcommon.a 245LIBS += lib/libfdt/libfdt.a 246LIBS += api/libapi.a 247LIBS += post/libpost.a 248 249LIBS := $(addprefix $(obj),$(LIBS)) 250.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 251 252LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 253LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 254 255# Add GCC lib 256ifdef USE_PRIVATE_LIBGCC 257ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") 258PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc 259else 260PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc 261endif 262else 263PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 264endif 265PLATFORM_LIBS += $(PLATFORM_LIBGCC) 266export PLATFORM_LIBS 267 268# Special flags for CPP when processing the linker script. 269# Pass the version down so we can handle backwards compatibility 270# on the fly. 271LDPPFLAGS += \ 272 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ 273 $(shell $(LD) --version | \ 274 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') 275 276ifeq ($(CONFIG_NAND_U_BOOT),y) 277NAND_SPL = nand_spl 278U_BOOT_NAND = $(obj)u-boot-nand.bin 279endif 280 281ifeq ($(CONFIG_ONENAND_U_BOOT),y) 282ONENAND_IPL = onenand_ipl 283U_BOOT_ONENAND = $(obj)u-boot-onenand.bin 284ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin 285endif 286 287__OBJS := $(subst $(obj),,$(OBJS)) 288__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 289 290######################################################################### 291######################################################################### 292 293# Always append ALL so that arch config.mk's can add custom ones 294ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 295 296all: $(ALL) 297 298$(obj)u-boot.hex: $(obj)u-boot 299 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 300 301$(obj)u-boot.srec: $(obj)u-boot 302 $(OBJCOPY) -O srec $< $@ 303 304$(obj)u-boot.bin: $(obj)u-boot 305 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 306 307$(obj)u-boot.ldr: $(obj)u-boot 308 $(CREATE_LDR_ENV) 309 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 310 311$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 312 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 313 314$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 315 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 316 317$(obj)u-boot.img: $(obj)u-boot.bin 318 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \ 319 -a $(TEXT_BASE) -e 0 \ 320 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 321 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 322 -d $< $@ 323 324$(obj)u-boot.imx: $(obj)u-boot.bin 325 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \ 326 -e $(TEXT_BASE) -d $< $@ 327 328$(obj)u-boot.kwb: $(obj)u-boot.bin 329 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ 330 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@ 331 332$(obj)u-boot.sha1: $(obj)u-boot.bin 333 $(obj)tools/ubsha1 $(obj)u-boot.bin 334 335$(obj)u-boot.dis: $(obj)u-boot 336 $(OBJDUMP) -d $< > $@ 337 338GEN_UBOOT = \ 339 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 340 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 341 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 342 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 343 -Map u-boot.map -o u-boot 344$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds 345 $(GEN_UBOOT) 346ifeq ($(CONFIG_KALLSYMS),y) 347 smap=`$(call SYSTEM_MAP,u-boot) | \ 348 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ 349 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ 350 -c common/system_map.c -o $(obj)common/system_map.o 351 $(GEN_UBOOT) $(obj)common/system_map.o 352endif 353 354$(OBJS): depend 355 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 356 357$(LIBS): depend $(SUBDIRS) 358 $(MAKE) -C $(dir $(subst $(obj),,$@)) 359 360$(LIBBOARD): depend $(LIBS) 361 $(MAKE) -C $(dir $(subst $(obj),,$@)) 362 363$(SUBDIRS): depend 364 $(MAKE) -C $@ all 365 366$(LDSCRIPT): depend 367 $(MAKE) -C $(dir $@) $(notdir $@) 368 369$(obj)u-boot.lds: $(LDSCRIPT) 370 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ 371 372$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 373 $(MAKE) -C nand_spl/board/$(BOARDDIR) all 374 375$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 376 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 377 378$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 379 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 380 381$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 382 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 383 384$(VERSION_FILE): 385 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 386 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 387 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 388 389$(TIMESTAMP_FILE): 390 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 391 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ 392 393gdbtools: 394 $(MAKE) -C tools/gdb all || exit 1 395 396updater: 397 $(MAKE) -C tools/updater all || exit 1 398 399env: 400 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 401 402# Explicitly make _depend in subdirs containing multiple targets to prevent 403# parallel sub-makes creating .depend files simultaneously. 404depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 405 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ 406 $(MAKE) -C $$dir _depend ; done 407 408TAG_SUBDIRS = $(SUBDIRS) 409TAG_SUBDIRS += $(dir $(__LIBS)) 410TAG_SUBDIRS += include 411 412tags ctags: 413 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ 414 -name '*.[chS]' -print` 415 416etags: 417 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ 418 -name '*.[chS]' -print` 419cscope: 420 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files 421 cscope -b -q -k 422 423SYSTEM_MAP = \ 424 $(NM) $1 | \ 425 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 426 LC_ALL=C sort 427$(obj)System.map: $(obj)u-boot 428 @$(call SYSTEM_MAP,$<) > $(obj)System.map 429 430# 431# Auto-generate the autoconf.mk file (which is included by all makefiles) 432# 433# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 434# the dep file is only include in this top level makefile to determine when 435# to regenerate the autoconf.mk file. 436$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 437 @$(XECHO) Generating $@ ; \ 438 set -e ; \ 439 : Generate the dependancies ; \ 440 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ 441 -MQ $(obj)include/autoconf.mk include/common.h > $@ 442 443$(obj)include/autoconf.mk: $(obj)include/config.h 444 @$(XECHO) Generating $@ ; \ 445 set -e ; \ 446 : Extract the config macros ; \ 447 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 448 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 449 mv $@.tmp $@ 450 451######################################################################### 452else # !config.mk 453all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 454$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 455$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \ 456updater env depend dep tags ctags etags cscope $(obj)System.map: 457 @echo "System not configured - see README" >&2 458 @ exit 1 459 460tools: 461 $(MAKE) -C tools 462tools-all: 463 $(MAKE) -C tools HOST_TOOLS_ALL=y 464endif # config.mk 465 466.PHONY : CHANGELOG 467CHANGELOG: 468 git log --no-merges U-Boot-1_1_5.. | \ 469 unexpand -a | sed -e 's/\s\s*$$//' > $@ 470 471include/license.h: tools/bin2header COPYING 472 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 473######################################################################### 474 475unconfig: 476 @rm -f $(obj)include/config.h $(obj)include/config.mk \ 477 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 478 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 479 480%_config:: unconfig 481 @$(MKCONFIG) -A $(@:_config=) 482 483##%: %_config 484## $(MAKE) 485 486# 487# Functions to generate common board directory names 488# 489lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/') 490ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') 491 492#======================================================================== 493# PowerPC 494#======================================================================== 495 496######################################################################### 497## MPC5xxx Systems 498######################################################################### 499 500digsy_mtc_config \ 501digsy_mtc_LOWBOOT_config \ 502digsy_mtc_RAMBOOT_config: unconfig 503 @mkdir -p $(obj)include 504 @mkdir -p $(obj)board/digsy_mtc 505 @ >$(obj)include/config.h 506 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 507 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp 508 @[ -z "$(findstring RAMBOOT_,$@)" ] || \ 509 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp 510 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc 511 512galaxy5200_LOWBOOT_config \ 513galaxy5200_config: unconfig 514 @mkdir -p $(obj)include 515 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 516 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200 517 518Lite5200_config \ 519Lite5200_LOWBOOT_config \ 520Lite5200_LOWBOOT08_config \ 521icecube_5200_config \ 522icecube_5200_LOWBOOT_config \ 523icecube_5200_LOWBOOT08_config \ 524icecube_5200_DDR_config \ 525icecube_5200_DDR_LOWBOOT_config \ 526icecube_5200_DDR_LOWBOOT08_config: unconfig 527 @mkdir -p $(obj)include 528 @mkdir -p $(obj)board/icecube 529 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 530 if [ "$(findstring DDR,$@)" ] ; \ 531 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 532 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 533 fi 534 @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 535 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp 536 @[ -z "$(findstring DDR,$@)" ] || \ 537 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 538 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 539 540lite5200b_config \ 541lite5200b_PM_config \ 542lite5200b_LOWBOOT_config: unconfig 543 @mkdir -p $(obj)include 544 @mkdir -p $(obj)board/icecube 545 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 546 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 547 @[ -z "$(findstring _PM_,$@)" ] || \ 548 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h 549 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 550 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp 551 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 552 553mcc200_config \ 554mcc200_SDRAM_config \ 555mcc200_highboot_config \ 556mcc200_COM12_config \ 557mcc200_COM12_SDRAM_config \ 558mcc200_COM12_highboot_config \ 559mcc200_COM12_highboot_SDRAM_config \ 560mcc200_highboot_SDRAM_config \ 561prs200_config \ 562prs200_DDR_config \ 563prs200_highboot_config \ 564prs200_highboot_DDR_config: unconfig 565 @mkdir -p $(obj)include 566 @mkdir -p $(obj)board/mcc200 567 @[ -z "$(findstring highboot,$@)" ] || \ 568 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp 569 @[ -n "$(findstring _SDRAM,$@)" ] || \ 570 if [ -n "$(findstring prs200,$@)" ]; \ 571 then \ 572 if [ -z "$(findstring _DDR,$@)" ];\ 573 then \ 574 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 575 fi; \ 576 fi 577 @[ -z "$(findstring _SDRAM,$@)" ] || \ 578 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h 579 @[ -z "$(findstring COM12,$@)" ] || \ 580 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h 581 @[ -z "$(findstring prs200,$@)" ] || \ 582 echo "#define CONFIG_PRS200" >>$(obj)include/config.h 583 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200 584 585MVBC_P_config: unconfig 586 @mkdir -p $(obj)include 587 @mkdir -p $(obj)board/mvbc_p 588 @ >$(obj)include/config.h 589 @[ -z "$(findstring MVBC_P,$@)" ] || \ 590 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h 591 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision 592 593MVSMR_config: unconfig 594 @mkdir -p $(obj)include 595 @mkdir -p $(obj)board/matrix_vision/mvsmr 596 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision 597 598pcm030_config \ 599pcm030_LOWBOOT_config: unconfig 600 @mkdir -p $(obj)include $(obj)board/phytec/pcm030 601 @ >$(obj)include/config.h 602 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 603 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp 604 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec 605 606PM520_config \ 607PM520_DDR_config \ 608PM520_ROMBOOT_config \ 609PM520_ROMBOOT_DDR_config: unconfig 610 @mkdir -p $(obj)include 611 @[ -z "$(findstring DDR,$@)" ] || \ 612 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 613 @[ -z "$(findstring ROMBOOT,$@)" ] || \ 614 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h 615 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520 616 617TB5200_B_config \ 618TB5200_config: unconfig 619 @mkdir -p $(obj)include 620 @[ -z "$(findstring _B,$@)" ] || \ 621 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 622 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc 623 624MINI5200_config \ 625EVAL5200_config \ 626TOP5200_config: unconfig 627 @mkdir -p $(obj)include 628 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 629 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk 630 631Total5200_config \ 632Total5200_lowboot_config \ 633Total5200_Rev2_config \ 634Total5200_Rev2_lowboot_config: unconfig 635 @mkdir -p $(obj)include 636 @mkdir -p $(obj)board/total5200 637 @[ -n "$(findstring Rev,$@)" ] || \ 638 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h 639 @[ -z "$(findstring Rev2_,$@)" ] || \ 640 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h 641 @[ -z "$(findstring lowboot_,$@)" ] || \ 642 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp 643 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200 644 645cam5200_config \ 646cam5200_niosflash_config \ 647fo300_config \ 648MiniFAP_config \ 649TQM5200S_config \ 650TQM5200S_HIGHBOOT_config \ 651TQM5200_B_config \ 652TQM5200_B_HIGHBOOT_config \ 653TQM5200_config \ 654TQM5200_STK100_config: unconfig 655 @mkdir -p $(obj)include 656 @mkdir -p $(obj)board/tqc/tqm5200 657 @[ -z "$(findstring cam5200,$@)" ] || \ 658 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 659 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 660 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 661 } 662 @[ -z "$(findstring niosflash,$@)" ] || \ 663 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h 664 @[ -z "$(findstring fo300,$@)" ] || \ 665 echo "#define CONFIG_FO300" >>$(obj)include/config.h 666 @[ -z "$(findstring MiniFAP,$@)" ] || \ 667 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h 668 @[ -z "$(findstring STK100,$@)" ] || \ 669 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h 670 @[ -z "$(findstring TQM5200_B,$@)" ] || \ 671 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 672 @[ -z "$(findstring TQM5200S,$@)" ] || \ 673 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 674 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 675 } 676 @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 677 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp 678 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc 679 680######################################################################### 681## MPC512x Systems 682######################################################################### 683 684mpc5121ads_config \ 685mpc5121ads_rev2_config \ 686 : unconfig 687 @mkdir -p $(obj)include 688 @if [ "$(findstring rev2,$@)" ] ; then \ 689 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 690 fi 691 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale 692 693######################################################################### 694## MPC8xx Systems 695######################################################################### 696 697Adder87x_config \ 698AdderII_config \ 699AdderUSB_config \ 700Adder_config \ 701 : unconfig 702 @mkdir -p $(obj)include 703 $(if $(findstring AdderII,$@), \ 704 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 705 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder 706 707ADS860_config \ 708FADS823_config \ 709FADS850SAR_config \ 710MPC86xADS_config \ 711MPC885ADS_config \ 712FADS860T_config: unconfig 713 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads 714 715GEN860T_SC_config \ 716GEN860T_config: unconfig 717 @mkdir -p $(obj)include 718 @[ -z "$(findstring _SC,$@)" ] || \ 719 echo "#define CONFIG_SC" >>$(obj)include/config.h 720 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t 721 722ICU862_100MHz_config \ 723ICU862_config: unconfig 724 @mkdir -p $(obj)include 725 @[ -z "$(findstring _100MHz,$@)" ] || \ 726 echo "#define CONFIG_100MHz" >>$(obj)include/config.h 727 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862 728 729IVML24_256_config \ 730IVML24_128_config \ 731IVML24_config: unconfig 732 @mkdir -p $(obj)include 733 @[ -z "$(findstring IVML24_config,$@)" ] || \ 734 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h 735 @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 736 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h 737 @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 738 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h 739 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm 740 741IVMS8_256_config \ 742IVMS8_128_config \ 743IVMS8_config: unconfig 744 @mkdir -p $(obj)include 745 @[ -z "$(findstring IVMS8_config,$@)" ] || \ 746 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h 747 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 748 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h 749 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 750 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h 751 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm 752 753MBX_config \ 754MBX860T_config: unconfig 755 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx 756 757NETVIA_V2_config \ 758NETVIA_config: unconfig 759 @mkdir -p $(obj)include 760 @[ -z "$(findstring NETVIA_config,$@)" ] || \ 761 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h 762 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 763 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h 764 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia 765 766NETPHONE_V2_config \ 767NETPHONE_config: unconfig 768 @mkdir -p $(obj)include 769 @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 770 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h 771 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 772 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h 773 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone 774 775NETTA_ISDN_6412_SWAPHOOK_config \ 776NETTA_ISDN_SWAPHOOK_config \ 777NETTA_6412_SWAPHOOK_config \ 778NETTA_SWAPHOOK_config \ 779NETTA_ISDN_6412_config \ 780NETTA_ISDN_config \ 781NETTA_6412_config \ 782NETTA_config: unconfig 783 @mkdir -p $(obj)include 784 @[ -z "$(findstring ISDN_,$@)" ] || \ 785 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h 786 @[ -n "$(findstring ISDN_,$@)" ] || \ 787 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h 788 @[ -z "$(findstring 6412_,$@)" ] || \ 789 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h 790 @[ -n "$(findstring 6412_,$@)" ] || \ 791 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h 792 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 793 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h 794 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 795 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h 796 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta 797 798NETTA2_V2_config \ 799NETTA2_config: unconfig 800 @mkdir -p $(obj)include 801 @[ -z "$(findstring NETTA2_config,$@)" ] || \ 802 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h 803 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 804 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h 805 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2 806 807NC650_Rev1_config \ 808NC650_Rev2_config \ 809CP850_config: unconfig 810 @mkdir -p $(obj)include 811 @[ -z "$(findstring CP850,$@)" ] || \ 812 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 813 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 814 } 815 @[ -z "$(findstring Rev1,$@)" ] || \ 816 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 817 } 818 @[ -z "$(findstring Rev2,$@)" ] || \ 819 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 820 } 821 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650 822 823RPXlite_DW_64_config \ 824RPXlite_DW_LCD_config \ 825RPXlite_DW_64_LCD_config \ 826RPXlite_DW_NVRAM_config \ 827RPXlite_DW_NVRAM_64_config \ 828RPXlite_DW_NVRAM_LCD_config \ 829RPXlite_DW_NVRAM_64_LCD_config \ 830RPXlite_DW_config: unconfig 831 @mkdir -p $(obj)include 832 @[ -z "$(findstring _64,$@)" ] || \ 833 echo "#define RPXlite_64MHz" >>$(obj)include/config.h 834 @[ -z "$(findstring _LCD,$@)" ] || \ 835 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 836 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 837 } 838 @[ -z "$(findstring _NVRAM,$@)" ] || \ 839 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h 840 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw 841 842RRvision_LCD_config: unconfig 843 @mkdir -p $(obj)include 844 @echo "#define CONFIG_LCD" >$(obj)include/config.h 845 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 846 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision 847 848SPD823TS_config: unconfig 849 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx 850 851SXNI855T_config: unconfig 852 @$(MKCONFIG) $@ powerpc mpc8xx sixnet 853 854# Play some tricks for configuration selection 855# Only 855 and 860 boards may come with FEC 856# and only 823 boards may have LCD support 857xtract_8xx = $(subst _LCD,,$1) 858 859FPS850L_config \ 860FPS860L_config \ 861NSCU_config \ 862TQM823L_config \ 863TQM823L_LCD_config \ 864TQM850L_config \ 865TQM855L_config \ 866TQM860L_config \ 867TQM862L_config \ 868TQM823M_config \ 869TQM850M_config \ 870TQM855M_config \ 871TQM860M_config \ 872TQM862M_config \ 873TQM866M_config \ 874TQM885D_config \ 875TK885D_config \ 876virtlab2_config: unconfig 877 @mkdir -p $(obj)include 878 @[ -z "$(findstring _LCD,$@)" ] || \ 879 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 880 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 881 } 882 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc 883 884TTTech_config: unconfig 885 @mkdir -p $(obj)include 886 @echo "#define CONFIG_LCD" >$(obj)include/config.h 887 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 888 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 889 890v37_config: unconfig 891 @mkdir -p $(obj)include 892 @echo "#define CONFIG_LCD" >$(obj)include/config.h 893 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 894 @$(MKCONFIG) $@ powerpc mpc8xx v37 895 896wtk_config: unconfig 897 @mkdir -p $(obj)include 898 @echo "#define CONFIG_LCD" >$(obj)include/config.h 899 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 900 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 901 902######################################################################### 903## PPC4xx Systems 904######################################################################### 905 906acadia_nand_config: unconfig 907 @mkdir -p $(obj)include $(obj)board/amcc/acadia 908 @mkdir -p $(obj)nand_spl/board/amcc/acadia 909 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 910 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 911 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 912 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc 913 914bamboo_nand_config: unconfig 915 @mkdir -p $(obj)include $(obj)board/amcc/bamboo 916 @mkdir -p $(obj)nand_spl/board/amcc/bamboo 917 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 918 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 919 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 920 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc 921 922# Arches, Canyonlands & Glacier use different U-Boot images 923arches_config \ 924canyonlands_config \ 925glacier_config: unconfig 926 @mkdir -p $(obj)include 927 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 928 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 929 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 930 931canyonlands_nand_config \ 932glacier_nand_config: unconfig 933 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 934 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 935 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 936 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 937 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 938 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 939 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 940 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 941 942CATcenter_config \ 943CATcenter_25_config \ 944CATcenter_33_config: unconfig 945 @mkdir -p $(obj)include 946 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 947 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 948 @[ -z "$(findstring _25,$@)" ] || \ 949 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h 950 @[ -z "$(findstring _33,$@)" ] || \ 951 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h 952 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave 953 954CPCI405_config \ 955CPCI4052_config \ 956CPCI405DT_config \ 957CPCI405AB_config: unconfig 958 @mkdir -p $(obj)board/esd/cpci405 959 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd 960 961fx12mm_flash_config: unconfig 962 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 963 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 964 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 965 > $(obj)board/avnet/fx12mm/config.tmp 966 @echo "TEXT_BASE := 0xFFCB0000" \ 967 >> $(obj)board/avnet/fx12mm/config.tmp 968 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 969 970fx12mm_config: unconfig 971 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 972 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 973 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 974 > $(obj)board/avnet/fx12mm/config.tmp 975 @echo "TEXT_BASE := 0x03000000" \ 976 >> $(obj)board/avnet/fx12mm/config.tmp 977 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 978 979# Compact-Center(codename intip) & DevCon-Center use different U-Boot images 980intip_config \ 981devconcenter_config: unconfig 982 @mkdir -p $(obj)include 983 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 984 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 985 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys 986 987hcu4_config \ 988hcu5_config \ 989mcu25_config: unconfig 990 @mkdir -p $(obj)board/netstal/common 991 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal 992 993# Kilauea & Haleakala images are identical (recognized via PVR) 994kilauea_config \ 995haleakala_config: unconfig 996 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc 997 998kilauea_nand_config \ 999haleakala_nand_config: unconfig 1000 @mkdir -p $(obj)include $(obj)board/amcc/kilauea 1001 @mkdir -p $(obj)nand_spl/board/amcc/kilauea 1002 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1003 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 1004 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1005 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc 1006 1007MIP405T_config: unconfig 1008 @mkdir -p $(obj)include 1009 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1010 @$(XECHO) "Enable subset config for MIP405T" 1011 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl 1012 1013ml507_flash_config: unconfig 1014 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1015 @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1016 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1017 > $(obj)board/xilinx/ml507/config.tmp 1018 @echo "TEXT_BASE := 0xFE360000" \ 1019 >> $(obj)board/xilinx/ml507/config.tmp 1020 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx 1021 1022ml507_config: unconfig 1023 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1024 @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1025 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1026 > $(obj)board/xilinx/ml507/config.tmp 1027 @echo "TEXT_BASE := 0x04000000" \ 1028 >> $(obj)board/xilinx/ml507/config.tmp 1029 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx 1030 1031OCRTC_config \ 1032ORSG_config: unconfig 1033 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd 1034 1035PPChameleonEVB_config \ 1036PPChameleonEVB_BA_25_config \ 1037PPChameleonEVB_ME_25_config \ 1038PPChameleonEVB_HI_25_config \ 1039PPChameleonEVB_BA_33_config \ 1040PPChameleonEVB_ME_33_config \ 1041PPChameleonEVB_HI_33_config: unconfig 1042 @mkdir -p $(obj)include 1043 @[ -z "$(findstring EVB_BA,$@)" ] || \ 1044 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h 1045 @[ -z "$(findstring EVB_ME,$@)" ] || \ 1046 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h 1047 @[ -z "$(findstring EVB_HI,$@)" ] || \ 1048 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h 1049 @[ -z "$(findstring _25,$@)" ] || \ 1050 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h 1051 @[ -z "$(findstring _33,$@)" ] || \ 1052 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h 1053 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave 1054 1055sequoia_config \ 1056rainier_config: unconfig 1057 @mkdir -p $(obj)include 1058 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1059 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1060 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1061 1062sequoia_nand_config \ 1063rainier_nand_config: unconfig 1064 @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1065 @mkdir -p $(obj)nand_spl/board/amcc/sequoia 1066 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1067 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1068 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1069 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1070 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1071 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1072 1073sequoia_ramboot_config \ 1074rainier_ramboot_config: unconfig 1075 @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1076 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h 1077 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1078 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1079 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1080 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ 1081 $(obj)board/amcc/sequoia/config.tmp 1082 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1083 1084v5fx30teval_config: unconfig 1085 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1086 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1087 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1088 > $(obj)board/avnet/v5fx30teval/config.tmp 1089 @echo "TEXT_BASE := 0x03000000" \ 1090 >> $(obj)board/avnet/v5fx30teval/config.tmp 1091 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet 1092 1093v5fx30teval_flash_config: unconfig 1094 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1095 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1096 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1097 > $(obj)board/avnet/v5fx30teval/config.tmp 1098 @echo "TEXT_BASE := 0xFF1C0000" \ 1099 >> $(obj)board/avnet/v5fx30teval/config.tmp 1100 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet 1101 1102W7OLMC_config \ 1103W7OLMG_config: unconfig 1104 @$(MKCONFIG) $@ powerpc ppc4xx w7o 1105 1106# Walnut & Sycamore images are identical (recognized via PVR) 1107walnut_config \ 1108sycamore_config: unconfig 1109 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc 1110 1111xilinx-ppc405-generic_flash_config: unconfig 1112 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1113 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 1114 > $(obj)board/xilinx/ppc405-generic/config.tmp 1115 @echo "TEXT_BASE := 0xFE360000" \ 1116 >> $(obj)board/xilinx/ppc405-generic/config.tmp 1117 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 1118 1119xilinx-ppc405-generic_config: unconfig 1120 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 1121 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 1122 > $(obj)board/xilinx/ppc405-generic/config.tmp 1123 @echo "TEXT_BASE := 0x04000000" \ 1124 >> $(obj)board/xilinx/ppc405-generic/config.tmp 1125 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 1126 1127xilinx-ppc440-generic_flash_config: unconfig 1128 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1129 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1130 > $(obj)board/xilinx/ppc440-generic/config.tmp 1131 @echo "TEXT_BASE := 0xFE360000" \ 1132 >> $(obj)board/xilinx/ppc440-generic/config.tmp 1133 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1134 1135xilinx-ppc440-generic_config: unconfig 1136 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1137 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1138 > $(obj)board/xilinx/ppc440-generic/config.tmp 1139 @echo "TEXT_BASE := 0x04000000" \ 1140 >> $(obj)board/xilinx/ppc440-generic/config.tmp 1141 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1142 1143yosemite_config \ 1144yellowstone_config: unconfig 1145 @mkdir -p $(obj)include 1146 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1147 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1148 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc 1149 1150######################################################################### 1151## MPC824x Systems 1152######################################################################### 1153 1154eXalion_config: unconfig 1155 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion 1156 1157CPC45_config \ 1158CPC45_ROMBOOT_config: unconfig 1159 @mkdir -p $(obj)include ; \ 1160 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1161 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 1162 else \ 1163 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 1164 fi; \ 1165 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1166 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45 1167 1168# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 1169# time permits. 1170#linkstation_HDLAN_config \ 1171# Remove this line when HDLAN is fixed 1172linkstation_HGLAN_config: unconfig 1173 @mkdir -p $(obj)include 1174 @case $@ in \ 1175 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 1176 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 1177 esac 1178 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation 1179 1180Sandpoint8240_config: unconfig 1181 @$(MKCONFIG) $@ powerpc mpc824x sandpoint 1182 1183Sandpoint8245_config: unconfig 1184 @$(MKCONFIG) $@ powerpc mpc824x sandpoint 1185 1186######################################################################### 1187## MPC8260 Systems 1188######################################################################### 1189 1190cogent_mpc8260_config: unconfig 1191 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent 1192 1193CPU86_config \ 1194CPU86_ROMBOOT_config: unconfig 1195 @mkdir -p $(obj)include ; \ 1196 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1197 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 1198 else \ 1199 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 1200 fi; \ 1201 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1202 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86 1203 1204CPU87_config \ 1205CPU87_ROMBOOT_config: unconfig 1206 @mkdir -p $(obj)include ; \ 1207 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1208 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 1209 else \ 1210 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 1211 fi; \ 1212 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1213 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87 1214 1215ep8248_config \ 1216ep8248E_config : unconfig 1217 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248 1218 1219ISPAN_config \ 1220ISPAN_REVB_config: unconfig 1221 @mkdir -p $(obj)include 1222 @if [ "$(findstring _REVB_,$@)" ] ; then \ 1223 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ 1224 fi 1225 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan 1226 1227MPC8260ADS_config \ 1228MPC8260ADS_lowboot_config \ 1229MPC8260ADS_33MHz_config \ 1230MPC8260ADS_33MHz_lowboot_config \ 1231MPC8260ADS_40MHz_config \ 1232MPC8260ADS_40MHz_lowboot_config \ 1233MPC8272ADS_config \ 1234MPC8272ADS_lowboot_config \ 1235PQ2FADS_config \ 1236PQ2FADS_lowboot_config \ 1237PQ2FADS-VR_config \ 1238PQ2FADS-VR_lowboot_config \ 1239PQ2FADS-ZU_config \ 1240PQ2FADS-ZU_lowboot_config \ 1241PQ2FADS-ZU_66MHz_config \ 1242PQ2FADS-ZU_66MHz_lowboot_config \ 1243 : unconfig 1244 @mkdir -p $(obj)include 1245 @mkdir -p $(obj)board/freescale/mpc8260ads 1246 $(if $(findstring PQ2FADS,$@), \ 1247 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ 1248 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 1249 $(if $(findstring MHz,$@), \ 1250 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 1251 $(if $(findstring VR,$@), \ 1252 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1253 @[ -z "$(findstring lowboot_,$@)" ] || \ 1254 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp 1255 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale 1256 1257muas3001_dev_config \ 1258muas3001_config : unconfig 1259 @mkdir -p $(obj)include 1260 @mkdir -p $(obj)board/muas3001 1261 @if [ "$(findstring dev,$@)" ] ; then \ 1262 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ 1263 fi 1264 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001 1265 1266# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 1267PM825_config \ 1268PM825_ROMBOOT_config \ 1269PM825_BIGFLASH_config \ 1270PM825_ROMBOOT_BIGFLASH_config \ 1271PM826_config \ 1272PM826_ROMBOOT_config \ 1273PM826_BIGFLASH_config \ 1274PM826_ROMBOOT_BIGFLASH_config: unconfig 1275 @mkdir -p $(obj)include 1276 @mkdir -p $(obj)board/pm826 1277 @if [ "$(findstring PM825_,$@)" ] ; then \ 1278 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 1279 else \ 1280 >$(obj)include/config.h ; \ 1281 fi 1282 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1283 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1284 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1285 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1286 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1287 fi; \ 1288 else \ 1289 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1290 $(XECHO) "... with 32 MB Flash" ; \ 1291 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1292 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1293 else \ 1294 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1295 fi; \ 1296 fi 1297 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826 1298 1299PM828_config \ 1300PM828_PCI_config \ 1301PM828_ROMBOOT_config \ 1302PM828_ROMBOOT_PCI_config: unconfig 1303 @mkdir -p $(obj)include 1304 @mkdir -p $(obj)board/pm826 1305 @if [ "$(findstring _PCI_,$@)" ] ; then \ 1306 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1307 fi 1308 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1309 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1310 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1311 fi 1312 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828 1313 1314Rattler8248_config \ 1315Rattler_config: unconfig 1316 @mkdir -p $(obj)include 1317 $(if $(findstring 8248,$@), \ 1318 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1319 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler 1320 1321TQM8255_AA_config \ 1322TQM8260_AA_config \ 1323TQM8260_AB_config \ 1324TQM8260_AC_config \ 1325TQM8260_AD_config \ 1326TQM8260_AE_config \ 1327TQM8260_AF_config \ 1328TQM8260_AG_config \ 1329TQM8260_AH_config \ 1330TQM8260_AI_config \ 1331TQM8265_AA_config: unconfig 1332 @mkdir -p $(obj)include 1333 @case "$@" in \ 1334 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 1335 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 1336 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1337 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1338 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1339 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 1340 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1341 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 1342 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 1343 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1344 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 1345 esac; \ 1346 if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1347 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 1348 fi; \ 1349 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 1350 if [ "$${CACHE}" = "yes" ] ; then \ 1351 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1352 else \ 1353 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1354 fi; \ 1355 if [ "$${BMODE}" = "60x" ] ; then \ 1356 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1357 else \ 1358 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1359 fi 1360 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc 1361 1362VoVPN-GW_66MHz_config \ 1363VoVPN-GW_100MHz_config: unconfig 1364 @mkdir -p $(obj)include 1365 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1366 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk 1367 1368######################################################################### 1369## Coldfire 1370######################################################################### 1371 1372astro_mcf5373l_config \ 1373astro_mcf5373l_RAM_config : unconfig 1374 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro 1375 1376M52277EVB_config \ 1377M52277EVB_spansion_config \ 1378M52277EVB_stmicro_config : unconfig 1379 @case "$@" in \ 1380 M52277EVB_config) FLASH=SPANSION;; \ 1381 M52277EVB_spansion_config) FLASH=SPANSION;; \ 1382 M52277EVB_stmicro_config) FLASH=STMICRO;; \ 1383 esac; \ 1384 if [ "$${FLASH}" = "SPANSION" ] ; then \ 1385 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 1386 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1387 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1388 fi; \ 1389 if [ "$${FLASH}" = "STMICRO" ] ; then \ 1390 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 1391 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 1392 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1393 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1394 fi 1395 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale 1396 1397M5235EVB_config \ 1398M5235EVB_Flash16_config \ 1399M5235EVB_Flash32_config: unconfig 1400 @case "$@" in \ 1401 M5235EVB_config) FLASH=16;; \ 1402 M5235EVB_Flash16_config) FLASH=16;; \ 1403 M5235EVB_Flash32_config) FLASH=32;; \ 1404 esac; \ 1405 if [ "$${FLASH}" != "16" ] ; then \ 1406 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 1407 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1408 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1409 else \ 1410 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1411 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1412 fi 1413 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale 1414 1415cobra5272_config : unconfig 1416 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272 1417 1418EB+MCF-EV123_config : unconfig 1419 @mkdir -p $(obj)include 1420 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1421 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1422 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1423 1424EB+MCF-EV123_internal_config : unconfig 1425 @mkdir -p $(obj)include 1426 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1427 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1428 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1429 1430M5329AFEE_config \ 1431M5329BFEE_config : unconfig 1432 @case "$@" in \ 1433 M5329AFEE_config) NAND=0;; \ 1434 M5329BFEE_config) NAND=16;; \ 1435 esac; \ 1436 if [ "$${NAND}" != "0" ] ; then \ 1437 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1438 fi 1439 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale 1440 1441M5373EVB_config : unconfig 1442 @case "$@" in \ 1443 M5373EVB_config) NAND=16;; \ 1444 esac; \ 1445 if [ "$${NAND}" != "0" ] ; then \ 1446 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1447 fi 1448 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1449 1450M54451EVB_config \ 1451M54451EVB_stmicro_config : unconfig 1452 @case "$@" in \ 1453 M54451EVB_config) FLASH=NOR;; \ 1454 M54451EVB_stmicro_config) FLASH=STMICRO;; \ 1455 esac; \ 1456 if [ "$${FLASH}" = "NOR" ] ; then \ 1457 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 1458 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 1459 fi; \ 1460 if [ "$${FLASH}" = "STMICRO" ] ; then \ 1461 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 1462 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 1463 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 1464 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 1465 fi; \ 1466 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 1467 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale 1468 1469M54455EVB_config \ 1470M54455EVB_atmel_config \ 1471M54455EVB_intel_config \ 1472M54455EVB_a33_config \ 1473M54455EVB_a66_config \ 1474M54455EVB_i33_config \ 1475M54455EVB_i66_config \ 1476M54455EVB_stm33_config : unconfig 1477 @case "$@" in \ 1478 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 1479 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 1480 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 1481 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 1482 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 1483 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 1484 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 1485 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 1486 esac; \ 1487 if [ "$${FLASH}" = "INTEL" ] ; then \ 1488 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 1489 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1490 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1491 fi; \ 1492 if [ "$${FLASH}" = "ATMEL" ] ; then \ 1493 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1494 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1495 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1496 fi; \ 1497 if [ "$${FLASH}" = "STMICRO" ] ; then \ 1498 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 1499 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 1500 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1501 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1502 fi; \ 1503 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1504 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale 1505 1506M5475AFE_config \ 1507M5475BFE_config \ 1508M5475CFE_config \ 1509M5475DFE_config \ 1510M5475EFE_config \ 1511M5475FFE_config \ 1512M5475GFE_config : unconfig 1513 @case "$@" in \ 1514 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1515 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 1516 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 1517 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 1518 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 1519 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 1520 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1521 esac; \ 1522 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 1523 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 1524 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 1525 if [ "$${RAM1}" != "0" ] ; then \ 1526 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 1527 fi; \ 1528 if [ "$${CODE}" != "0" ] ; then \ 1529 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 1530 fi; \ 1531 if [ "$${VID}" == "1" ] ; then \ 1532 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 1533 fi; \ 1534 if [ "$${USB}" == "1" ] ; then \ 1535 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 1536 fi 1537 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale 1538 1539M5485AFE_config \ 1540M5485BFE_config \ 1541M5485CFE_config \ 1542M5485DFE_config \ 1543M5485EFE_config \ 1544M5485FFE_config \ 1545M5485GFE_config \ 1546M5485HFE_config : unconfig 1547 @case "$@" in \ 1548 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1549 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 1550 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 1551 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 1552 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 1553 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 1554 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1555 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 1556 esac; \ 1557 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 1558 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 1559 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 1560 if [ "$${RAM1}" != "0" ] ; then \ 1561 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 1562 fi; \ 1563 if [ "$${CODE}" != "0" ] ; then \ 1564 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 1565 fi; \ 1566 if [ "$${VID}" == "1" ] ; then \ 1567 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 1568 fi; \ 1569 if [ "$${USB}" == "1" ] ; then \ 1570 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 1571 fi 1572 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale 1573 1574######################################################################### 1575## MPC83xx Systems 1576######################################################################### 1577 1578MPC8313ERDB_33_config \ 1579MPC8313ERDB_66_config \ 1580MPC8313ERDB_NAND_33_config \ 1581MPC8313ERDB_NAND_66_config: unconfig 1582 @mkdir -p $(obj)include 1583 @mkdir -p $(obj)board/freescale/mpc8313erdb 1584 @if [ "$(findstring _33_,$@)" ] ; then \ 1585 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ 1586 fi ; \ 1587 if [ "$(findstring _66_,$@)" ] ; then \ 1588 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ 1589 fi ; \ 1590 if [ "$(findstring _NAND_,$@)" ] ; then \ 1591 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ 1592 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ 1593 fi ; 1594 @if [ "$(findstring _NAND_,$@)" ] ; then \ 1595 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ 1596 fi ; 1597 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale 1598 1599MPC8315ERDB_NAND_config \ 1600MPC8315ERDB_config: unconfig 1601 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale 1602 1603MPC832XEMDS_config \ 1604MPC832XEMDS_HOST_33_config \ 1605MPC832XEMDS_HOST_66_config \ 1606MPC832XEMDS_SLAVE_config \ 1607MPC832XEMDS_ATM_config: unconfig 1608 @mkdir -p $(obj)include 1609 @if [ "$(findstring _HOST_,$@)" ] ; then \ 1610 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1611 fi ; \ 1612 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1613 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1614 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 1615 fi ; \ 1616 if [ "$(findstring _33_,$@)" ] ; then \ 1617 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1618 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1619 fi ; \ 1620 if [ "$(findstring _66_,$@)" ] ; then \ 1621 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1622 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1623 fi ; \ 1624 if [ "$(findstring _ATM_,$@)" ] ; then \ 1625 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1626 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 1627 fi ; 1628 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale 1629 1630MPC8349ITX_config \ 1631MPC8349ITX_LOWBOOT_config \ 1632MPC8349ITXGP_config: unconfig 1633 @mkdir -p $(obj)include 1634 @mkdir -p $(obj)board/freescale/mpc8349itx 1635 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 1636 @if [ "$(findstring GP,$@)" ] ; then \ 1637 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 1638 fi 1639 @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 1640 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 1641 fi 1642 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale 1643 1644MPC8360EMDS_config \ 1645MPC8360EMDS_HOST_33_config \ 1646MPC8360EMDS_HOST_66_config \ 1647MPC8360EMDS_SLAVE_config \ 1648MPC8360EMDS_ATM_config: unconfig 1649 @mkdir -p $(obj)include 1650 @if [ "$(findstring _HOST_,$@)" ] ; then \ 1651 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1652 fi ; \ 1653 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1654 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1655 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 1656 fi ; \ 1657 if [ "$(findstring _33_,$@)" ] ; then \ 1658 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1659 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1660 fi ; \ 1661 if [ "$(findstring _66_,$@)" ] ; then \ 1662 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1663 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1664 fi ; \ 1665 if [ "$(findstring _ATM_,$@)" ] ; then \ 1666 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1667 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 1668 fi ; 1669 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale 1670 1671MPC8360ERDK_33_config \ 1672MPC8360ERDK_66_config \ 1673MPC8360ERDK_config: unconfig 1674 @mkdir -p $(obj)include 1675 @if [ "$(findstring _33_,$@)" ] ; then \ 1676 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 1677 fi ; 1678 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale 1679 1680MPC837XEMDS_config \ 1681MPC837XEMDS_HOST_config: unconfig 1682 @mkdir -p $(obj)include 1683 @if [ "$(findstring _HOST_,$@)" ] ; then \ 1684 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1685 fi ; 1686 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale 1687 1688sbc8349_config \ 1689sbc8349_PCI_33_config \ 1690sbc8349_PCI_66_config: unconfig 1691 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349 1692 1693SIMPC8313_LP_config \ 1694SIMPC8313_SP_config: unconfig 1695 @mkdir -p $(obj)include 1696 @mkdir -p $(obj)board/sheldon/simpc8313 1697 @if [ "$(findstring _LP_,$@)" ] ; then \ 1698 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ 1699 fi ; \ 1700 if [ "$(findstring _SP_,$@)" ] ; then \ 1701 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ 1702 fi ; 1703 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1704 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon 1705 1706caddy2_config \ 1707vme8349_config: unconfig 1708 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd 1709 1710######################################################################### 1711## MPC85xx Systems 1712######################################################################### 1713 1714MPC8536DS_NAND_config \ 1715MPC8536DS_SDCARD_config \ 1716MPC8536DS_SPIFLASH_config \ 1717MPC8536DS_36BIT_config \ 1718MPC8536DS_config: unconfig 1719 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale 1720 1721MPC8540EVAL_config \ 1722MPC8540EVAL_33_config \ 1723MPC8540EVAL_66_config \ 1724MPC8540EVAL_33_slave_config \ 1725MPC8540EVAL_66_slave_config: unconfig 1726 @mkdir -p $(obj)include 1727 @if [ -z "$(findstring _33_,$@)" ] ; then \ 1728 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 1729 fi ; \ 1730 if [ "$(findstring _slave_,$@)" ] ; then \ 1731 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 1732 fi 1733 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval 1734 1735MPC8541CDS_legacy_config \ 1736MPC8541CDS_config: unconfig 1737 @mkdir -p $(obj)include 1738 @if [ "$(findstring _legacy_,$@)" ] ; then \ 1739 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1740 fi 1741 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale 1742 1743MPC8548CDS_legacy_config \ 1744MPC8548CDS_config: unconfig 1745 @mkdir -p $(obj)include 1746 @if [ "$(findstring _legacy_,$@)" ] ; then \ 1747 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1748 fi 1749 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale 1750 1751MPC8555CDS_legacy_config \ 1752MPC8555CDS_config: unconfig 1753 @mkdir -p $(obj)include 1754 @if [ "$(findstring _legacy_,$@)" ] ; then \ 1755 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1756 fi 1757 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale 1758 1759MPC8569MDS_ATM_config \ 1760MPC8569MDS_NAND_config \ 1761MPC8569MDS_config: unconfig 1762 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale 1763 1764MPC8572DS_36BIT_config \ 1765MPC8572DS_config: unconfig 1766 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale 1767 1768P2020DS_36BIT_config \ 1769P2020DS_config: unconfig 1770 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale 1771 1772P1011RDB_config \ 1773P1011RDB_NAND_config \ 1774P1011RDB_SDCARD_config \ 1775P1011RDB_SPIFLASH_config \ 1776P1020RDB_config \ 1777P1020RDB_NAND_config \ 1778P1020RDB_SDCARD_config \ 1779P1020RDB_SPIFLASH_config \ 1780P2010RDB_config \ 1781P2010RDB_NAND_config \ 1782P2010RDB_SDCARD_config \ 1783P2010RDB_SPIFLASH_config \ 1784P2020RDB_config \ 1785P2020RDB_NAND_config \ 1786P2020RDB_SDCARD_config \ 1787P2020RDB_SPIFLASH_config: unconfig 1788 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale 1789 1790sbc8540_config \ 1791sbc8540_33_config \ 1792sbc8540_66_config: unconfig 1793 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560 1794 1795sbc8548_config \ 1796sbc8548_PCI_33_config \ 1797sbc8548_PCI_66_config \ 1798sbc8548_PCI_33_PCIE_config \ 1799sbc8548_PCI_66_PCIE_config: unconfig 1800 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548 1801 1802sbc8560_config \ 1803sbc8560_33_config \ 1804sbc8560_66_config: unconfig 1805 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560 1806 1807stxssa_config \ 1808stxssa_4M_config: unconfig 1809 @mkdir -p $(obj)include 1810 @if [ "$(findstring _4M_,$@)" ] ; then \ 1811 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 1812 fi 1813 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx 1814 1815TQM8540_config \ 1816TQM8541_config \ 1817TQM8548_config \ 1818TQM8548_AG_config \ 1819TQM8548_BE_config \ 1820TQM8555_config \ 1821TQM8560_config: unconfig 1822 @mkdir -p $(obj)include 1823 @BTYPE=$(@:_config=); \ 1824 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ 1825 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 1826 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ 1827 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 1828 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; 1829 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; 1830 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc 1831 1832######################################################################### 1833## MPC86xx Systems 1834######################################################################### 1835 1836MPC8641HPCN_36BIT_config \ 1837MPC8641HPCN_config: unconfig 1838 @mkdir -p $(obj)include 1839 @if [ "$(findstring _36BIT_,$@)" ] ; then \ 1840 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 1841 fi 1842 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale 1843 1844######################################################################### 1845## 74xx/7xx Systems 1846######################################################################### 1847 1848EVB64260_config \ 1849EVB64260_750CX_config: unconfig 1850 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260 1851 1852p3m750_config \ 1853p3m7448_config: unconfig 1854 @mkdir -p $(obj)include 1855 @if [ "$(findstring 750_,$@)" ] ; then \ 1856 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 1857 else \ 1858 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 1859 fi 1860 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive 1861 1862PCIPPC2_config \ 1863PCIPPC6_config: unconfig 1864 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2 1865 1866#======================================================================== 1867# ARM 1868#======================================================================== 1869 1870######################################################################### 1871## Atmel AT91RM9200 Systems 1872######################################################################### 1873 1874CPUAT91_RAM_config \ 1875CPUAT91_config : unconfig 1876 @mkdir -p $(obj)include 1877 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 1878 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200 1879 1880######################################################################### 1881## ARM926EJ-S Systems 1882######################################################################### 1883 1884at91sam9260ek_nandflash_config \ 1885at91sam9260ek_dataflash_cs0_config \ 1886at91sam9260ek_dataflash_cs1_config \ 1887at91sam9260ek_config \ 1888at91sam9g20ek_nandflash_config \ 1889at91sam9g20ek_dataflash_cs0_config \ 1890at91sam9g20ek_dataflash_cs1_config \ 1891at91sam9g20ek_config : unconfig 1892 @mkdir -p $(obj)include 1893 @if [ "$(findstring 9g20,$@)" ] ; then \ 1894 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 1895 else \ 1896 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 1897 fi; 1898 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1899 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1900 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 1901 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 1902 else \ 1903 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 1904 fi; 1905 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 1906 1907at91sam9xeek_nandflash_config \ 1908at91sam9xeek_dataflash_cs0_config \ 1909at91sam9xeek_dataflash_cs1_config \ 1910at91sam9xeek_config : unconfig 1911 @mkdir -p $(obj)include 1912 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1913 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1914 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 1915 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 1916 else \ 1917 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 1918 fi; 1919 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 1920 1921at91sam9261ek_nandflash_config \ 1922at91sam9261ek_dataflash_cs0_config \ 1923at91sam9261ek_dataflash_cs3_config \ 1924at91sam9261ek_config \ 1925at91sam9g10ek_nandflash_config \ 1926at91sam9g10ek_dataflash_cs0_config \ 1927at91sam9g10ek_dataflash_cs3_config \ 1928at91sam9g10ek_config : unconfig 1929 @mkdir -p $(obj)include 1930 @if [ "$(findstring 9g10,$@)" ] ; then \ 1931 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ 1932 else \ 1933 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ 1934 fi; 1935 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1936 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1937 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 1938 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 1939 else \ 1940 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 1941 fi; 1942 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 1943 1944at91sam9263ek_norflash_config \ 1945at91sam9263ek_norflash_boot_config \ 1946at91sam9263ek_nandflash_config \ 1947at91sam9263ek_dataflash_config \ 1948at91sam9263ek_dataflash_cs0_config \ 1949at91sam9263ek_config : unconfig 1950 @mkdir -p $(obj)include 1951 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1952 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1953 elif [ "$(findstring norflash,$@)" ] ; then \ 1954 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ 1955 else \ 1956 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 1957 fi; 1958 @if [ "$(findstring norflash_boot,$@)" ] ; then \ 1959 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ 1960 fi; 1961 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 1962 1963at91sam9rlek_nandflash_config \ 1964at91sam9rlek_dataflash_config \ 1965at91sam9rlek_dataflash_cs0_config \ 1966at91sam9rlek_config : unconfig 1967 @mkdir -p $(obj)include 1968 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1969 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1970 else \ 1971 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 1972 fi; 1973 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 1974 1975CPU9G20_128M_config \ 1976CPU9G20_config \ 1977CPU9260_128M_config \ 1978CPU9260_config : unconfig 1979 @mkdir -p $(obj)include 1980 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 1981 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91 1982 1983at91sam9m10g45ek_nandflash_config \ 1984at91sam9m10g45ek_dataflash_config \ 1985at91sam9m10g45ek_dataflash_cs0_config \ 1986at91sam9m10g45ek_config \ 1987at91sam9g45ekes_nandflash_config \ 1988at91sam9g45ekes_dataflash_config \ 1989at91sam9g45ekes_dataflash_cs0_config \ 1990at91sam9g45ekes_config : unconfig 1991 @mkdir -p $(obj)include 1992 @if [ "$(findstring 9m10,$@)" ] ; then \ 1993 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ 1994 else \ 1995 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ 1996 fi; 1997 @if [ "$(findstring _nandflash,$@)" ] ; then \ 1998 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 1999 else \ 2000 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ 2001 fi; 2002 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 2003 2004pm9g45_config : unconfig 2005 @mkdir -p $(obj)include 2006 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91 2007 2008SBC35_A9G20_NANDFLASH_config \ 2009SBC35_A9G20_EEPROM_config \ 2010SBC35_A9G20_config : unconfig 2011 @mkdir -p $(obj)include 2012 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 2013 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 2014 2015TNY_A9G20_NANDFLASH_config \ 2016TNY_A9G20_EEPROM_config \ 2017TNY_A9G20_config \ 2018TNY_A9260_NANDFLASH_config \ 2019TNY_A9260_EEPROM_config \ 2020TNY_A9260_config : unconfig 2021 @mkdir -p $(obj)include 2022 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 2023 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91 2024 2025######################################################################## 2026## ARM Integrator boards - see doc/README-integrator for more info. 2027integratorap_config \ 2028ap_config \ 2029ap966_config \ 2030ap922_config \ 2031ap922_XA10_config \ 2032ap7_config \ 2033ap720t_config \ 2034ap920t_config \ 2035ap926ejs_config \ 2036ap946es_config: unconfig 2037 @board/armltd/integrator/split_by_variant.sh ap $@ 2038 2039integratorcp_config \ 2040cp_config \ 2041cp920t_config \ 2042cp926ejs_config \ 2043cp946es_config \ 2044cp1136_config \ 2045cp966_config \ 2046cp922_config \ 2047cp922_XA10_config \ 2048cp1026_config: unconfig 2049 @board/armltd/integrator/split_by_variant.sh cp $@ 2050 2051nhk8815_config \ 2052nhk8815_onenand_config: unconfig 2053 @mkdir -p $(obj)include 2054 @ > $(obj)include/config.h 2055 @if [ "$(findstring _onenand, $@)" ] ; then \ 2056 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 2057 fi 2058 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik 2059 2060xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2061 2062omap1610inn_config \ 2063omap1610inn_cs0boot_config \ 2064omap1610inn_cs3boot_config \ 2065omap1610inn_cs_autoboot_config \ 2066omap1610h2_config \ 2067omap1610h2_cs0boot_config \ 2068omap1610h2_cs3boot_config \ 2069omap1610h2_cs_autoboot_config: unconfig 2070 @mkdir -p $(obj)include 2071 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2072 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2073 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2074 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2075 else \ 2076 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2077 fi; 2078 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap 2079 2080omap730p2_config \ 2081omap730p2_cs0boot_config \ 2082omap730p2_cs3boot_config : unconfig 2083 @mkdir -p $(obj)include 2084 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2085 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2086 else \ 2087 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2088 fi; 2089 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap 2090 2091spear300_config \ 2092spear310_config \ 2093spear320_config : unconfig 2094 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear 2095 2096spear600_config : unconfig 2097 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear 2098 2099SX1_stdout_serial_config \ 2100SX1_config: unconfig 2101 @mkdir -p $(obj)include 2102 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 2103 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 2104 else \ 2105 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 2106 fi; 2107 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1 2108 2109# TRAB default configuration: 8 MB Flash, 32 MB RAM 2110trab_config \ 2111trab_bigram_config \ 2112trab_bigflash_config \ 2113trab_old_config: unconfig 2114 @mkdir -p $(obj)include 2115 @mkdir -p $(obj)board/trab 2116 @[ -z "$(findstring _bigram,$@)" ] || \ 2117 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2118 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2119 } 2120 @[ -z "$(findstring _bigflash,$@)" ] || \ 2121 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2122 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2123 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2124 } 2125 @[ -z "$(findstring _old,$@)" ] || \ 2126 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2127 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2128 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2129 } 2130 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0 2131 2132tx25_config : unconfig 2133 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2134 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25 2135 2136edb9301_config \ 2137edb9302_config \ 2138edb9302a_config \ 2139edb9307_config \ 2140edb9307a_config \ 2141edb9312_config \ 2142edb9315_config \ 2143edb9315a_config: unconfig 2144 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx 2145 2146######################################################################### 2147# ARM supplied Versatile development boards 2148######################################################################### 2149 2150versatile_config \ 2151versatileab_config \ 2152versatilepb_config : unconfig 2153 @board/armltd/versatile/split_by_variant.sh $@ 2154 2155######################################################################### 2156## XScale Systems 2157######################################################################### 2158 2159pdnb3_config \ 2160scpu_config: unconfig 2161 @mkdir -p $(obj)include 2162 @if [ "$(findstring scpu_,$@)" ] ; then \ 2163 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2164 fi 2165 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive 2166 2167polaris_config \ 2168trizepsiv_config : unconfig 2169 @mkdir -p $(obj)include 2170 @if [ "$(findstring polaris,$@)" ] ; then \ 2171 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \ 2172 fi; 2173 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv 2174 2175######################################################################### 2176## ARM1136 Systems 2177######################################################################### 2178 2179apollon_config : unconfig 2180 @mkdir -p $(obj)include 2181 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 2182 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 2183 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx 2184 2185imx31_phycore_eet_config \ 2186imx31_phycore_config : unconfig 2187 @mkdir -p $(obj)include 2188 @if [ -n "$(findstring _eet_,$@)" ]; then \ 2189 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 2190 fi 2191 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31 2192 2193mx31pdk_config \ 2194mx31pdk_nand_config : unconfig 2195 @mkdir -p $(obj)include 2196 @if [ -n "$(findstring _nand_,$@)" ]; then \ 2197 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ 2198 else \ 2199 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ 2200 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ 2201 fi 2202 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31 2203 2204######################################################################### 2205## ARM1176 Systems 2206######################################################################### 2207smdk6400_noUSB_config \ 2208smdk6400_config : unconfig 2209 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 2210 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 2211 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 2212 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2213 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 2214 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 2215 else \ 2216 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 2217 fi 2218 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx 2219 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2220 2221#======================================================================== 2222# MIPS 2223#======================================================================== 2224######################################################################### 2225## MIPS32 4Kc 2226######################################################################### 2227 2228incaip_100MHz_config \ 2229incaip_133MHz_config \ 2230incaip_150MHz_config \ 2231incaip_config: unconfig 2232 @mkdir -p $(obj)include 2233 @[ -z "$(findstring _100MHz,$@)" ] || \ 2234 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h 2235 @[ -z "$(findstring _133MHz,$@)" ] || \ 2236 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h 2237 @[ -z "$(findstring _150MHz,$@)" ] || \ 2238 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h 2239 @$(MKCONFIG) -n $@ -a incaip mips mips incaip 2240 2241vct_premium_config \ 2242vct_premium_small_config \ 2243vct_premium_onenand_config \ 2244vct_premium_onenand_small_config \ 2245vct_platinum_config \ 2246vct_platinum_small_config \ 2247vct_platinum_onenand_config \ 2248vct_platinum_onenand_small_config \ 2249vct_platinumavc_config \ 2250vct_platinumavc_small_config \ 2251vct_platinumavc_onenand_config \ 2252vct_platinumavc_onenand_small_config: unconfig 2253 @mkdir -p $(obj)include 2254 @[ -z "$(findstring _premium,$@)" ] || \ 2255 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h 2256 @[ -z "$(findstring _platinum_,$@)" ] || \ 2257 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h 2258 @[ -z "$(findstring _platinumavc,$@)" ] || \ 2259 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h 2260 @[ -z "$(findstring _onenand,$@)" ] || \ 2261 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h 2262 @[ -z "$(findstring _small,$@)" ] || \ 2263 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h 2264 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas 2265 2266######################################################################### 2267## MIPS32 AU1X00 2268######################################################################### 2269 2270dbau1000_config : unconfig 2271 @mkdir -p $(obj)include 2272 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2273 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2274 2275dbau1100_config : unconfig 2276 @mkdir -p $(obj)include 2277 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2278 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2279 2280dbau1500_config : unconfig 2281 @mkdir -p $(obj)include 2282 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2283 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2284 2285dbau1550_config : unconfig 2286 @mkdir -p $(obj)include 2287 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2288 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2289 2290dbau1550_el_config : unconfig 2291 @mkdir -p $(obj)include 2292 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2293 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2294 2295gth2_config : unconfig 2296 @mkdir -p $(obj)include 2297 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 2298 @$(MKCONFIG) -a $@ mips mips gth2 2299 2300pb1000_config : unconfig 2301 @mkdir -p $(obj)include 2302 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2303 @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2304 2305qemu_mips_config : unconfig 2306 @mkdir -p $(obj)include 2307 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 2308 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 2309 2310#======================================================================== 2311# Nios 2312#======================================================================== 2313 2314######################################################################### 2315## Nios-II 2316######################################################################### 2317 2318# nios2 generic boards 2319NIOS2_GENERIC = nios2-generic 2320 2321$(NIOS2_GENERIC:%=%_config) : unconfig 2322 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera 2323 2324#======================================================================== 2325# Blackfin 2326#======================================================================== 2327 2328bf527-ezkit-v2_config : unconfig 2329 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \ 2330 bf527-ezkit blackfin blackfin bf527-ezkit 2331 2332#======================================================================== 2333# SH3 (SuperH) 2334#======================================================================== 2335 2336######################################################################### 2337## sh2 (Renesas SuperH) 2338######################################################################### 2339rsk7203_config: unconfig 2340 @mkdir -p $(obj)include 2341 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h 2342 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas 2343 2344######################################################################### 2345## sh3 (Renesas SuperH) 2346######################################################################### 2347 2348mpr2_config: unconfig 2349 @mkdir -p $(obj)include 2350 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 2351 @$(MKCONFIG) -a $@ sh sh3 mpr2 2352 2353ms7720se_config: unconfig 2354 @mkdir -p $(obj)include 2355 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 2356 @$(MKCONFIG) -a $@ sh sh3 ms7720se 2357 2358######################################################################### 2359## sh4 (Renesas SuperH) 2360######################################################################### 2361 2362MigoR_config : unconfig 2363 @mkdir -p $(obj)include 2364 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 2365 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas 2366 2367ms7750se_config: unconfig 2368 @mkdir -p $(obj)include 2369 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 2370 @$(MKCONFIG) -a $@ sh sh4 ms7750se 2371 2372ms7722se_config : unconfig 2373 @mkdir -p $(obj)include 2374 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 2375 @$(MKCONFIG) -a $@ sh sh4 ms7722se 2376 2377r2dplus_config : unconfig 2378 @mkdir -p $(obj)include 2379 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 2380 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas 2381 2382r7780mp_config: unconfig 2383 @mkdir -p $(obj)include 2384 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 2385 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas 2386 2387sh7763rdp_config : unconfig 2388 @mkdir -p $(obj)include 2389 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 2390 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas 2391 2392sh7785lcr_32bit_config \ 2393sh7785lcr_config : unconfig 2394 @mkdir -p $(obj)include 2395 @mkdir -p $(obj)board/renesas/sh7785lcr 2396 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h 2397 @if [ "$(findstring 32bit, $@)" ] ; then \ 2398 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ 2399 echo "TEXT_BASE = 0x8ff80000" > \ 2400 $(obj)board/renesas/sh7785lcr/config.tmp ; \ 2401 fi 2402 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas 2403 2404ap325rxa_config : unconfig 2405 @mkdir -p $(obj)include 2406 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h 2407 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas 2408 2409espt_config : unconfig 2410 @mkdir -p $(obj)include 2411 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h 2412 @$(MKCONFIG) -a $@ sh sh4 espt 2413 2414######################################################################### 2415######################################################################### 2416 2417clean: 2418 @rm -f $(obj)examples/standalone/82559_eeprom \ 2419 $(obj)examples/standalone/atmel_df_pow2 \ 2420 $(obj)examples/standalone/eepro100_eeprom \ 2421 $(obj)examples/standalone/hello_world \ 2422 $(obj)examples/standalone/interrupt \ 2423 $(obj)examples/standalone/mem_to_mem_idma2intr \ 2424 $(obj)examples/standalone/sched \ 2425 $(obj)examples/standalone/smc91111_eeprom \ 2426 $(obj)examples/standalone/test_burst \ 2427 $(obj)examples/standalone/timer 2428 @rm -f $(obj)examples/api/demo{,.bin} 2429 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2430 $(obj)tools/env/{fw_printenv,fw_setenv} \ 2431 $(obj)tools/envcrc \ 2432 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2433 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2434 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2435 $(obj)tools/ncb $(obj)tools/ubsha1 2436 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2437 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2438 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 2439 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 2440 $(obj)u-boot.lds \ 2441 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] 2442 @rm -f $(obj)include/bmp_logo.h 2443 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} 2444 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} 2445 @rm -f $(ONENAND_BIN) 2446 @rm -f $(obj)onenand_ipl/u-boot.lds 2447 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) 2448 @find $(OBJTREE) -type f \ 2449 \( -name 'core' -o -name '*.bak' -o -name '*~' \ 2450 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 2451 | xargs rm -f 2452 2453clobber: clean 2454 @find $(OBJTREE) -type f \( -name .depend \ 2455 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 2456 -print0 \ 2457 | xargs -0 rm -f 2458 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 2459 $(obj)cscope.* $(obj)*.*~ 2460 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2461 @rm -f $(obj)u-boot.kwb 2462 @rm -f $(obj)u-boot.imx 2463 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 2464 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c 2465 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2466 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 2467 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 2468 2469ifeq ($(OBJTREE),$(SRCTREE)) 2470mrproper \ 2471distclean: clobber unconfig 2472else 2473mrproper \ 2474distclean: clobber unconfig 2475 rm -rf $(obj)* 2476endif 2477 2478backup: 2479 F=`basename $(TOPDIR)` ; cd .. ; \ 2480 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 2481 2482######################################################################### 2483