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