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