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