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