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