1# 2# (C) Copyright 2000-2004 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 Foundation; 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 24HOSTARCH := $(shell uname -m | \ 25 sed -e s/i.86/i386/ \ 26 -e s/sun4u/sparc64/ \ 27 -e s/arm.*/arm/ \ 28 -e s/sa110/arm/ \ 29 -e s/powerpc/ppc/ \ 30 -e s/macppc/ppc/) 31 32HOSTOS := $(shell uname -s | tr A-Z a-z | \ 33 sed -e 's/\(cygwin\).*/cygwin/') 34 35export HOSTARCH 36 37# Deal with colliding definitions from tcsh etc. 38VENDOR= 39 40######################################################################### 41 42TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) 43export TOPDIR 44 45ifeq (include/config.mk,$(wildcard include/config.mk)) 46# load ARCH, BOARD, and CPU configuration 47include include/config.mk 48export ARCH CPU BOARD VENDOR SOC 49# load other configuration 50include $(TOPDIR)/config.mk 51 52ifndef CROSS_COMPILE 53ifeq ($(HOSTARCH),ppc) 54CROSS_COMPILE = 55else 56ifeq ($(ARCH),ppc) 57CROSS_COMPILE = ppc_8xx- 58endif 59ifeq ($(ARCH),arm) 60CROSS_COMPILE = arm-linux- 61endif 62ifeq ($(ARCH),i386) 63ifeq ($(HOSTARCH),i386) 64CROSS_COMPILE = 65else 66CROSS_COMPILE = i386-linux- 67endif 68endif 69ifeq ($(ARCH),mips) 70CROSS_COMPILE = mips_4KC- 71endif 72ifeq ($(ARCH),nios) 73CROSS_COMPILE = nios-elf- 74endif 75ifeq ($(ARCH),nios2) 76CROSS_COMPILE = nios2-elf- 77endif 78ifeq ($(ARCH),m68k) 79CROSS_COMPILE = m68k-elf- 80endif 81ifeq ($(ARCH),microblaze) 82CROSS_COMPILE = mb- 83endif 84endif 85endif 86 87export CROSS_COMPILE 88 89######################################################################### 90# U-Boot objects....order is important (i.e. start must be first) 91 92OBJS = cpu/$(CPU)/start.o 93ifeq ($(CPU),i386) 94OBJS += cpu/$(CPU)/start16.o 95OBJS += cpu/$(CPU)/reset.o 96endif 97ifeq ($(CPU),ppc4xx) 98OBJS += cpu/$(CPU)/resetvec.o 99endif 100ifeq ($(CPU),mpc85xx) 101OBJS += cpu/$(CPU)/resetvec.o 102endif 103 104LIBS = lib_generic/libgeneric.a 105LIBS += board/$(BOARDDIR)/lib$(BOARD).a 106LIBS += cpu/$(CPU)/lib$(CPU).a 107ifdef SOC 108LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 109endif 110LIBS += lib_$(ARCH)/lib$(ARCH).a 111LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 112 fs/reiserfs/libreiserfs.a 113LIBS += net/libnet.a 114LIBS += disk/libdisk.a 115LIBS += rtc/librtc.a 116LIBS += dtt/libdtt.a 117LIBS += drivers/libdrivers.a 118LIBS += drivers/sk98lin/libsk98lin.a 119LIBS += post/libpost.a post/cpu/libcpu.a 120LIBS += common/libcommon.a 121.PHONY : $(LIBS) 122 123# Add GCC lib 124PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 125 126 127# The "tools" are needed early, so put this first 128# Don't include stuff already done in $(LIBS) 129SUBDIRS = tools \ 130 examples \ 131 post \ 132 post/cpu 133.PHONY : $(SUBDIRS) 134 135######################################################################### 136######################################################################### 137 138ALL = u-boot.srec u-boot.bin System.map 139 140all: $(ALL) 141 142u-boot.srec: u-boot 143 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 144 145u-boot.bin: u-boot 146 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 147 148u-boot.img: u-boot.bin 149 ./tools/mkimage -A $(ARCH) -T firmware -C none \ 150 -a $(TEXT_BASE) -e 0 \ 151 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 152 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 153 -d $< $@ 154 155u-boot.dis: u-boot 156 $(OBJDUMP) -d $< > $@ 157 158u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 159 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 160 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 161 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ 162 -Map u-boot.map -o u-boot 163 164$(LIBS): 165 $(MAKE) -C `dirname $@` 166 167$(SUBDIRS): 168 $(MAKE) -C $@ all 169 170gdbtools: 171 $(MAKE) -C tools/gdb || exit 1 172 173depend dep: 174 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 175 176tags: 177 ctags -w `find $(SUBDIRS) include \ 178 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 179 fs/cramfs fs/fat fs/fdos fs/jffs2 \ 180 net disk rtc dtt drivers drivers/sk98lin common \ 181 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 182 183etags: 184 etags -a `find $(SUBDIRS) include \ 185 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 186 fs/cramfs fs/fat fs/fdos fs/jffs2 \ 187 net disk rtc dtt drivers drivers/sk98lin common \ 188 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 189 190System.map: u-boot 191 @$(NM) $< | \ 192 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 193 sort > System.map 194 195######################################################################### 196else 197all install u-boot u-boot.srec depend dep: 198 @echo "System not configured - see README" >&2 199 @ exit 1 200endif 201 202######################################################################### 203 204unconfig: 205 @rm -f include/config.h include/config.mk board/*/config.tmp 206 207#======================================================================== 208# PowerPC 209#======================================================================== 210 211######################################################################### 212## MPC5xx Systems 213######################################################################### 214 215cmi_mpc5xx_config: unconfig 216 @./mkconfig $(@:_config=) ppc mpc5xx cmi 217 218PATI_config: unconfig 219 @./mkconfig $(@:_config=) ppc mpc5xx pati mpl 220 221######################################################################### 222## MPC5xxx Systems 223######################################################################### 224Lite5200_config \ 225Lite5200_LOWBOOT_config \ 226Lite5200_LOWBOOT08_config \ 227icecube_5200_config \ 228icecube_5200_LOWBOOT_config \ 229icecube_5200_LOWBOOT08_config \ 230icecube_5200_DDR_config \ 231icecube_5200_DDR_LOWBOOT_config \ 232icecube_5200_DDR_LOWBOOT08_config \ 233icecube_5100_config: unconfig 234 @ >include/config.h 235 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 236 { if [ "$(findstring DDR,$@)" ] ; \ 237 then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 238 else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \ 239 fi ; \ 240 echo "... with LOWBOOT configuration" ; \ 241 } 242 @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 243 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 244 echo "... with 8 MB flash only" ; \ 245 echo "... with LOWBOOT configuration" ; \ 246 } 247 @[ -z "$(findstring DDR,$@)" ] || \ 248 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 249 echo "... DDR memory revision" ; \ 250 } 251 @[ -z "$(findstring 5200,$@)" ] || \ 252 { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 253 echo "... with MPC5200 processor" ; \ 254 } 255 @[ -z "$(findstring 5100,$@)" ] || \ 256 { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 257 echo "... with MGT5100 processor" ; \ 258 } 259 @./mkconfig -a IceCube ppc mpc5xxx icecube 260 261PM520_config \ 262PM520_DDR_config \ 263PM520_ROMBOOT_config \ 264PM520_ROMBOOT_DDR_config: unconfig 265 @ >include/config.h 266 @[ -z "$(findstring DDR,$@)" ] || \ 267 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 268 echo "... DDR memory revision" ; \ 269 } 270 @[ -z "$(findstring ROMBOOT,$@)" ] || \ 271 { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 272 echo "... booting from 8-bit flash" ; \ 273 } 274 @./mkconfig -a PM520 ppc mpc5xxx pm520 275 276MINI5200_config \ 277EVAL5200_config \ 278TOP5200_config: unconfig 279 @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h 280 @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk 281 282Total5100_config \ 283Total5200_config \ 284Total5200_lowboot_config \ 285Total5200_Rev2_config \ 286Total5200_Rev2_lowboot_config: unconfig 287 @ >include/config.h 288 @[ -z "$(findstring 5100,$@)" ] || \ 289 { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 290 echo "... with MGT5100 processor" ; \ 291 } 292 @[ -z "$(findstring 5200,$@)" ] || \ 293 { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 294 echo "... with MPC5200 processor" ; \ 295 } 296 @[ -n "$(findstring Rev,$@)" ] || \ 297 { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \ 298 echo "... revision 1 board" ; \ 299 } 300 @[ -z "$(findstring Rev2_,$@)" ] || \ 301 { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \ 302 echo "... revision 2 board" ; \ 303 } 304 @[ -z "$(findstring lowboot_,$@)" ] || \ 305 { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \ 306 echo "... with lowboot configuration" ; \ 307 } 308 @./mkconfig -a Total5200 ppc mpc5xxx total5200 309 310TQM5200_auto_config \ 311TQM5200_AA_config \ 312TQM5200_AB_config \ 313TQM5200_AC_config \ 314MiniFAP_config: unconfig 315 @ >include/config.h 316 @[ -z "$(findstring MiniFAP,$@)" ] || \ 317 { echo "#define CONFIG_MINIFAP" >>include/config.h ; \ 318 echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 319 echo "... TQM5200_AC on MiniFAP" ; \ 320 } 321 @[ -z "$(findstring AA,$@)" ] || \ 322 { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \ 323 echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \ 324 } 325 @[ -z "$(findstring AB,$@)" ] || \ 326 { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \ 327 echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \ 328 echo "... with Graphics Controller"; \ 329 } 330 @[ -z "$(findstring AC,$@)" ] || \ 331 { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 332 echo "... with 4 MB Flash, 128 MB SDRAM" ; \ 333 echo "... with Graphics Controller"; \ 334 } 335 @[ -z "$(findstring auto,$@)" ] || \ 336 { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \ 337 echo "... with automatic CS configuration" ; \ 338 } 339 @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200 340 341######################################################################### 342## MPC8xx Systems 343######################################################################### 344 345Adder_config \ 346Adder87x_config \ 347AdderII_config \ 348 : unconfig 349 $(if $(findstring AdderII,$@), \ 350 @echo "#define CONFIG_MPC852T" > include/config.h) 351 @./mkconfig -a Adder ppc mpc8xx adder 352 353ADS860_config \ 354FADS823_config \ 355FADS850SAR_config \ 356MPC86xADS_config \ 357MPC885ADS_config \ 358FADS860T_config: unconfig 359 @./mkconfig $(@:_config=) ppc mpc8xx fads 360 361AMX860_config : unconfig 362 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 363 364c2mon_config: unconfig 365 @./mkconfig $(@:_config=) ppc mpc8xx c2mon 366 367CCM_config: unconfig 368 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 369 370cogent_mpc8xx_config: unconfig 371 @./mkconfig $(@:_config=) ppc mpc8xx cogent 372 373ELPT860_config: unconfig 374 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 375 376ESTEEM192E_config: unconfig 377 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 378 379ETX094_config : unconfig 380 @./mkconfig $(@:_config=) ppc mpc8xx etx094 381 382FLAGADM_config: unconfig 383 @./mkconfig $(@:_config=) ppc mpc8xx flagadm 384 385xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 386 387GEN860T_SC_config \ 388GEN860T_config: unconfig 389 @ >include/config.h 390 @[ -z "$(findstring _SC,$@)" ] || \ 391 { echo "#define CONFIG_SC" >>include/config.h ; \ 392 echo "With reduced H/W feature set (SC)..." ; \ 393 } 394 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 395 396GENIETV_config: unconfig 397 @./mkconfig $(@:_config=) ppc mpc8xx genietv 398 399GTH_config: unconfig 400 @./mkconfig $(@:_config=) ppc mpc8xx gth 401 402hermes_config : unconfig 403 @./mkconfig $(@:_config=) ppc mpc8xx hermes 404 405HMI10_config : unconfig 406 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 407 408IAD210_config: unconfig 409 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 410 411xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 412 413ICU862_100MHz_config \ 414ICU862_config: unconfig 415 @ >include/config.h 416 @[ -z "$(findstring _100MHz,$@)" ] || \ 417 { echo "#define CONFIG_100MHz" >>include/config.h ; \ 418 echo "... with 100MHz system clock" ; \ 419 } 420 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 421 422IP860_config : unconfig 423 @./mkconfig $(@:_config=) ppc mpc8xx ip860 424 425IVML24_256_config \ 426IVML24_128_config \ 427IVML24_config: unconfig 428 @ >include/config.h 429 @[ -z "$(findstring IVML24_config,$@)" ] || \ 430 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 431 } 432 @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 433 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 434 } 435 @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 436 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 437 } 438 @./mkconfig -a IVML24 ppc mpc8xx ivm 439 440IVMS8_256_config \ 441IVMS8_128_config \ 442IVMS8_config: unconfig 443 @ >include/config.h 444 @[ -z "$(findstring IVMS8_config,$@)" ] || \ 445 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 446 } 447 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 448 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 449 } 450 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 451 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 452 } 453 @./mkconfig -a IVMS8 ppc mpc8xx ivm 454 455KUP4K_config : unconfig 456 @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup 457 458KUP4X_config : unconfig 459 @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup 460 461LANTEC_config : unconfig 462 @./mkconfig $(@:_config=) ppc mpc8xx lantec 463 464lwmon_config: unconfig 465 @./mkconfig $(@:_config=) ppc mpc8xx lwmon 466 467MBX_config \ 468MBX860T_config: unconfig 469 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 470 471MHPC_config: unconfig 472 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 473 474MVS1_config : unconfig 475 @./mkconfig $(@:_config=) ppc mpc8xx mvs1 476 477xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 478 479NETVIA_V2_config \ 480NETVIA_config: unconfig 481 @ >include/config.h 482 @[ -z "$(findstring NETVIA_config,$@)" ] || \ 483 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 484 echo "... Version 1" ; \ 485 } 486 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 487 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 488 echo "... Version 2" ; \ 489 } 490 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 491 492xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 493 494NETPHONE_V2_config \ 495NETPHONE_config: unconfig 496 @ >include/config.h 497 @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 498 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \ 499 } 500 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 501 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \ 502 } 503 @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 504 505xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 506 507NETTA_ISDN_6412_SWAPHOOK_config \ 508NETTA_ISDN_SWAPHOOK_config \ 509NETTA_6412_SWAPHOOK_config \ 510NETTA_SWAPHOOK_config \ 511NETTA_ISDN_6412_config \ 512NETTA_ISDN_config \ 513NETTA_6412_config \ 514NETTA_config: unconfig 515 @ >include/config.h 516 @[ -z "$(findstring ISDN_,$@)" ] || \ 517 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \ 518 } 519 @[ -n "$(findstring ISDN_,$@)" ] || \ 520 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \ 521 } 522 @[ -z "$(findstring 6412_,$@)" ] || \ 523 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \ 524 } 525 @[ -n "$(findstring 6412_,$@)" ] || \ 526 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \ 527 } 528 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 529 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \ 530 } 531 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 532 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \ 533 } 534 @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta 535 536xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 537 538NETTA2_V2_config \ 539NETTA2_config: unconfig 540 @ >include/config.h 541 @[ -z "$(findstring NETTA2_config,$@)" ] || \ 542 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \ 543 } 544 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 545 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \ 546 } 547 @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 548 549NC650_config: unconfig 550 @./mkconfig $(@:_config=) ppc mpc8xx nc650 551 552NX823_config: unconfig 553 @./mkconfig $(@:_config=) ppc mpc8xx nx823 554 555pcu_e_config: unconfig 556 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 557 558QS850_config: unconfig 559 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 560 561QS823_config: unconfig 562 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 563 564QS860T_config: unconfig 565 @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc 566 567quantum_config: unconfig 568 @./mkconfig $(@:_config=) ppc mpc8xx quantum 569 570R360MPI_config: unconfig 571 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 572 573RBC823_config: unconfig 574 @./mkconfig $(@:_config=) ppc mpc8xx rbc823 575 576RPXClassic_config: unconfig 577 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 578 579RPXlite_config: unconfig 580 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 581 582RPXlite_DW_64_config \ 583RPXlite_DW_LCD_config \ 584RPXlite_DW_64_LCD_config \ 585RPXlite_DW_NVRAM_config \ 586RPXlite_DW_NVRAM_64_config \ 587RPXlite_DW_NVRAM_LCD_config \ 588RPXlite_DW_NVRAM_64_LCD_config \ 589RPXlite_DW_config: unconfig 590 @ >include/config.h 591 @[ -z "$(findstring _64,$@)" ] || \ 592 { echo "#define RPXlite_64MHz" >>include/config.h ; \ 593 echo "... with 64MHz system clock ..."; \ 594 } 595 @[ -z "$(findstring _LCD,$@)" ] || \ 596 { echo "#define CONFIG_LCD" >>include/config.h ; \ 597 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 598 echo "... with LCD display ..."; \ 599 } 600 @[ -z "$(findstring _NVRAM,$@)" ] || \ 601 { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \ 602 echo "... with ENV in NVRAM ..."; \ 603 } 604 @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw 605 606rmu_config: unconfig 607 @./mkconfig $(@:_config=) ppc mpc8xx rmu 608 609RRvision_config: unconfig 610 @./mkconfig $(@:_config=) ppc mpc8xx RRvision 611 612RRvision_LCD_config: unconfig 613 @echo "#define CONFIG_LCD" >include/config.h 614 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 615 @./mkconfig -a RRvision ppc mpc8xx RRvision 616 617SM850_config : unconfig 618 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 619 620SPD823TS_config: unconfig 621 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 622 623svm_sc8xx_config: unconfig 624 @ >include/config.h 625 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 626 627SXNI855T_config: unconfig 628 @./mkconfig $(@:_config=) ppc mpc8xx sixnet 629 630# EMK MPC8xx based modules 631TOP860_config: unconfig 632 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 633 634# Play some tricks for configuration selection 635# Only 855 and 860 boards may come with FEC 636# and only 823 boards may have LCD support 637xtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 638 639FPS850L_config \ 640FPS860L_config \ 641NSCU_config \ 642TQM823L_config \ 643TQM823L_LCD_config \ 644TQM850L_config \ 645TQM855L_config \ 646TQM860L_config \ 647TQM862L_config \ 648TQM823M_config \ 649TQM850M_config \ 650TQM855M_config \ 651TQM860M_config \ 652TQM862M_config \ 653TQM866M_config: unconfig 654 @ >include/config.h 655 @[ -z "$(findstring _LCD,$@)" ] || \ 656 { echo "#define CONFIG_LCD" >>include/config.h ; \ 657 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 658 echo "... with LCD display" ; \ 659 } 660 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 661 662TTTech_config: unconfig 663 @echo "#define CONFIG_LCD" >include/config.h 664 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 665 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 666 667v37_config: unconfig 668 @echo "#define CONFIG_LCD" >include/config.h 669 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 670 @./mkconfig $(@:_config=) ppc mpc8xx v37 671 672wtk_config: unconfig 673 @echo "#define CONFIG_LCD" >include/config.h 674 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h 675 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 676 677######################################################################### 678## PPC4xx Systems 679######################################################################### 680xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 681 682ADCIOP_config: unconfig 683 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 684 685AR405_config: unconfig 686 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 687 688ASH405_config: unconfig 689 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 690 691BUBINGA405EP_config: unconfig 692 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep 693 694CANBT_config: unconfig 695 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 696 697CATcenter_config \ 698CATcenter_25_config \ 699CATcenter_33_config: unconfig 700 @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h 701 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h 702 @[ -z "$(findstring _25,$@)" ] || \ 703 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 704 echo "SysClk = 25MHz" ; \ 705 } 706 @[ -z "$(findstring _33,$@)" ] || \ 707 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 708 echo "SysClk = 33MHz" ; \ 709 } 710 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 711 712CPCI405_config \ 713CPCI4052_config \ 714CPCI405AB_config: unconfig 715 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 716 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 717 718CPCI440_config: unconfig 719 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 720 721CPCIISER4_config: unconfig 722 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 723 724CRAYL1_config: unconfig 725 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 726 727csb272_config: unconfig 728 @./mkconfig $(@:_config=) ppc ppc4xx csb272 729 730csb472_config: unconfig 731 @./mkconfig $(@:_config=) ppc ppc4xx csb472 732 733DASA_SIM_config: unconfig 734 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 735 736DP405_config: unconfig 737 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd 738 739DU405_config: unconfig 740 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 741 742EBONY_config: unconfig 743 @./mkconfig $(@:_config=) ppc ppc4xx ebony 744 745ERIC_config: unconfig 746 @./mkconfig $(@:_config=) ppc ppc4xx eric 747 748EXBITGEN_config: unconfig 749 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 750 751HUB405_config: unconfig 752 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd 753 754JSE_config: unconfig 755 @./mkconfig $(@:_config=) ppc ppc4xx jse 756 757MIP405_config: unconfig 758 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 759 760MIP405T_config: unconfig 761 @echo "#define CONFIG_MIP405T" >include/config.h 762 @echo "Enable subset config for MIP405T" 763 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 764 765ML2_config: unconfig 766 @./mkconfig $(@:_config=) ppc ppc4xx ml2 767 768ml300_config: unconfig 769 @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx 770 771OCOTEA_config: unconfig 772 @./mkconfig $(@:_config=) ppc ppc4xx ocotea 773 774OCRTC_config \ 775ORSG_config: unconfig 776 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 777 778PCI405_config: unconfig 779 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 780 781PIP405_config: unconfig 782 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 783 784PLU405_config: unconfig 785 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd 786 787PMC405_config: unconfig 788 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 789 790PPChameleonEVB_config \ 791PPChameleonEVB_BA_25_config \ 792PPChameleonEVB_ME_25_config \ 793PPChameleonEVB_HI_25_config \ 794PPChameleonEVB_BA_33_config \ 795PPChameleonEVB_ME_33_config \ 796PPChameleonEVB_HI_33_config: unconfig 797 @ >include/config.h 798 @[ -z "$(findstring EVB_BA,$@)" ] || \ 799 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ 800 echo "... BASIC model" ; \ 801 } 802 @[ -z "$(findstring EVB_ME,$@)" ] || \ 803 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ 804 echo "... MEDIUM model" ; \ 805 } 806 @[ -z "$(findstring EVB_HI,$@)" ] || \ 807 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ 808 echo "... HIGH-END model" ; \ 809 } 810 @[ -z "$(findstring _25,$@)" ] || \ 811 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 812 echo "SysClk = 25MHz" ; \ 813 } 814 @[ -z "$(findstring _33,$@)" ] || \ 815 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 816 echo "SysClk = 33MHz" ; \ 817 } 818 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 819 820VOH405_config: unconfig 821 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd 822 823W7OLMC_config \ 824W7OLMG_config: unconfig 825 @./mkconfig $(@:_config=) ppc ppc4xx w7o 826 827WALNUT405_config: unconfig 828 @./mkconfig $(@:_config=) ppc ppc4xx walnut405 829 830XPEDITE1K_config: unconfig 831 @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k 832 833######################################################################### 834## MPC8220 Systems 835######################################################################### 836Alaska8220_config: unconfig 837 @./mkconfig $(@:_config=) ppc mpc8220 alaska 838 839Yukon8220_config: unconfig 840 @./mkconfig $(@:_config=) ppc mpc8220 yukon 841 842######################################################################### 843## MPC824x Systems 844######################################################################### 845xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 846 847A3000_config: unconfig 848 @./mkconfig $(@:_config=) ppc mpc824x a3000 849 850BMW_config: unconfig 851 @./mkconfig $(@:_config=) ppc mpc824x bmw 852 853CPC45_config \ 854CPC45_ROMBOOT_config: unconfig 855 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 856 @cd ./include ; \ 857 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 858 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 859 echo "... booting from 8-bit flash" ; \ 860 else \ 861 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 862 echo "... booting from 64-bit flash" ; \ 863 fi; \ 864 echo "export CONFIG_BOOT_ROM" >> config.mk; 865 866CU824_config: unconfig 867 @./mkconfig $(@:_config=) ppc mpc824x cu824 868 869debris_config: unconfig 870 @./mkconfig $(@:_config=) ppc mpc824x debris etin 871 872eXalion_config: unconfig 873 @./mkconfig $(@:_config=) ppc mpc824x eXalion 874 875MOUSSE_config: unconfig 876 @./mkconfig $(@:_config=) ppc mpc824x mousse 877 878MUSENKI_config: unconfig 879 @./mkconfig $(@:_config=) ppc mpc824x musenki 880 881MVBLUE_config: unconfig 882 @./mkconfig $(@:_config=) ppc mpc824x mvblue 883 884OXC_config: unconfig 885 @./mkconfig $(@:_config=) ppc mpc824x oxc 886 887PN62_config: unconfig 888 @./mkconfig $(@:_config=) ppc mpc824x pn62 889 890Sandpoint8240_config: unconfig 891 @./mkconfig $(@:_config=) ppc mpc824x sandpoint 892 893Sandpoint8245_config: unconfig 894 @./mkconfig $(@:_config=) ppc mpc824x sandpoint 895 896sbc8240_config: unconfig 897 @./mkconfig $(@:_config=) ppc mpc824x sbc8240 898 899SL8245_config: unconfig 900 @./mkconfig $(@:_config=) ppc mpc824x sl8245 901 902utx8245_config: unconfig 903 @./mkconfig $(@:_config=) ppc mpc824x utx8245 904 905######################################################################### 906## MPC8260 Systems 907######################################################################### 908 909atc_config: unconfig 910 @./mkconfig $(@:_config=) ppc mpc8260 atc 911 912cogent_mpc8260_config: unconfig 913 @./mkconfig $(@:_config=) ppc mpc8260 cogent 914 915CPU86_config \ 916CPU86_ROMBOOT_config: unconfig 917 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 918 @cd ./include ; \ 919 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 920 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 921 echo "... booting from 8-bit flash" ; \ 922 else \ 923 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 924 echo "... booting from 64-bit flash" ; \ 925 fi; \ 926 echo "export CONFIG_BOOT_ROM" >> config.mk; 927 928ep8260_config: unconfig 929 @./mkconfig $(@:_config=) ppc mpc8260 ep8260 930 931gw8260_config: unconfig 932 @./mkconfig $(@:_config=) ppc mpc8260 gw8260 933 934hymod_config: unconfig 935 @./mkconfig $(@:_config=) ppc mpc8260 hymod 936 937IPHASE4539_config: unconfig 938 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 939 940ISPAN_config \ 941ISPAN_REVB_config: unconfig 942 @if [ "$(findstring _REVB_,$@)" ] ; then \ 943 echo "#define CFG_REV_B" > include/config.h ; \ 944 fi 945 @./mkconfig -a ISPAN ppc mpc8260 ispan 946 947MPC8260ADS_config \ 948MPC8260ADS_33MHz_config \ 949MPC8260ADS_40MHz_config \ 950MPC8272ADS_config \ 951PQ2FADS_config \ 952PQ2FADS-VR_config \ 953PQ2FADS-ZU_config \ 954PQ2FADS-ZU_66MHz_config \ 955 : unconfig 956 $(if $(findstring PQ2FADS,$@), \ 957 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \ 958 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h) 959 $(if $(findstring MHz,$@), \ 960 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \ 961 $(if $(findstring VR,$@), \ 962 @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h)) 963 @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads 964 965MPC8266ADS_config: unconfig 966 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 967 968# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 969PM825_config \ 970PM825_ROMBOOT_config \ 971PM825_BIGFLASH_config \ 972PM825_ROMBOOT_BIGFLASH_config \ 973PM826_config \ 974PM826_ROMBOOT_config \ 975PM826_BIGFLASH_config \ 976PM826_ROMBOOT_BIGFLASH_config: unconfig 977 @if [ "$(findstring PM825_,$@)" ] ; then \ 978 echo "#define CONFIG_PCI" >include/config.h ; \ 979 else \ 980 >include/config.h ; \ 981 fi 982 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 983 echo "... booting from 8-bit flash" ; \ 984 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 985 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 986 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 987 echo "... with 32 MB Flash" ; \ 988 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 989 fi; \ 990 else \ 991 echo "... booting from 64-bit flash" ; \ 992 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 993 echo "... with 32 MB Flash" ; \ 994 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 995 echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \ 996 else \ 997 echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \ 998 fi; \ 999 fi 1000 @./mkconfig -a PM826 ppc mpc8260 pm826 1001 1002PM828_config \ 1003PM828_PCI_config \ 1004PM828_ROMBOOT_config \ 1005PM828_ROMBOOT_PCI_config: unconfig 1006 @if [ -z "$(findstring _PCI_,$@)" ] ; then \ 1007 echo "#define CONFIG_PCI" >>include/config.h ; \ 1008 echo "... with PCI enabled" ; \ 1009 else \ 1010 >include/config.h ; \ 1011 fi 1012 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1013 echo "... booting from 8-bit flash" ; \ 1014 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 1015 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 1016 fi 1017 @./mkconfig -a PM828 ppc mpc8260 pm828 1018 1019ppmc8260_config: unconfig 1020 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 1021 1022RPXsuper_config: unconfig 1023 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 1024 1025rsdproto_config: unconfig 1026 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 1027 1028sacsng_config: unconfig 1029 @./mkconfig $(@:_config=) ppc mpc8260 sacsng 1030 1031sbc8260_config: unconfig 1032 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 1033 1034SCM_config: unconfig 1035 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 1036 1037TQM8255_AA_config \ 1038TQM8260_AA_config \ 1039TQM8260_AB_config \ 1040TQM8260_AC_config \ 1041TQM8260_AD_config \ 1042TQM8260_AE_config \ 1043TQM8260_AF_config \ 1044TQM8260_AG_config \ 1045TQM8260_AH_config \ 1046TQM8265_AA_config: unconfig 1047 @case "$@" in \ 1048 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 1049 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 1050 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1051 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1052 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1053 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 1054 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1055 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 1056 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 1057 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 1058 esac; \ 1059 >include/config.h ; \ 1060 if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1061 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 1062 fi; \ 1063 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 1064 echo "... with $${CFREQ}MHz system clock" ; \ 1065 if [ "$${CACHE}" == "yes" ] ; then \ 1066 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 1067 echo "... with L2 Cache support" ; \ 1068 else \ 1069 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 1070 echo "... without L2 Cache support" ; \ 1071 fi; \ 1072 if [ "$${BMODE}" == "60x" ] ; then \ 1073 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 1074 echo "... with 60x Bus Mode" ; \ 1075 else \ 1076 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 1077 echo "... without 60x Bus Mode" ; \ 1078 fi 1079 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 1080 1081ZPC1900_config: unconfig 1082 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 1083 1084#======================================================================== 1085# M68K 1086#======================================================================== 1087######################################################################### 1088## Coldfire 1089######################################################################### 1090 1091M5272C3_config : unconfig 1092 @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3 1093 1094M5282EVB_config : unconfig 1095 @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb 1096 1097######################################################################### 1098## MPC85xx Systems 1099######################################################################### 1100 1101MPC8540ADS_config: unconfig 1102 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads 1103 1104MPC8560ADS_config: unconfig 1105 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads 1106 1107MPC8541CDS_config: unconfig 1108 @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds 1109 1110MPC8555CDS_config: unconfig 1111 @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds 1112 1113sbc8540_config \ 1114sbc8540_33_config \ 1115sbc8540_66_config: unconfig 1116 @if [ "$(findstring _66_,$@)" ] ; then \ 1117 echo "#define CONFIG_PCI_66" >>include/config.h ; \ 1118 echo "... 66 MHz PCI" ; \ 1119 else \ 1120 >include/config.h ; \ 1121 echo "... 33 MHz PCI" ; \ 1122 fi 1123 @./mkconfig -a SBC8540 ppc mpc85xx sbc8560 1124 1125sbc8560_config \ 1126sbc8560_33_config \ 1127sbc8560_66_config: unconfig 1128 @if [ "$(findstring _66_,$@)" ] ; then \ 1129 echo "#define CONFIG_PCI_66" >>include/config.h ; \ 1130 echo "... 66 MHz PCI" ; \ 1131 else \ 1132 >include/config.h ; \ 1133 echo "... 33 MHz PCI" ; \ 1134 fi 1135 @./mkconfig -a sbc8560 ppc mpc85xx sbc8560 1136 1137stxgp3_config: unconfig 1138 @./mkconfig $(@:_config=) ppc mpc85xx stxgp3 1139 1140######################################################################### 1141## 74xx/7xx Systems 1142######################################################################### 1143 1144AmigaOneG3SE_config: unconfig 1145 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 1146 1147BAB7xx_config: unconfig 1148 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 1149 1150DB64360_config: unconfig 1151 @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell 1152 1153DB64460_config: unconfig 1154 @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell 1155 1156ELPPC_config: unconfig 1157 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 1158 1159EVB64260_config \ 1160EVB64260_750CX_config: unconfig 1161 @./mkconfig EVB64260 ppc 74xx_7xx evb64260 1162 1163P3G4_config: unconfig 1164 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 1165 1166PCIPPC2_config \ 1167PCIPPC6_config: unconfig 1168 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 1169 1170ZUMA_config: unconfig 1171 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 1172 1173#======================================================================== 1174# ARM 1175#======================================================================== 1176######################################################################### 1177## StrongARM Systems 1178######################################################################### 1179 1180assabet_config : unconfig 1181 @./mkconfig $(@:_config=) arm sa1100 assabet 1182 1183dnp1110_config : unconfig 1184 @./mkconfig $(@:_config=) arm sa1100 dnp1110 1185 1186gcplus_config : unconfig 1187 @./mkconfig $(@:_config=) arm sa1100 gcplus 1188 1189lart_config : unconfig 1190 @./mkconfig $(@:_config=) arm sa1100 lart 1191 1192shannon_config : unconfig 1193 @./mkconfig $(@:_config=) arm sa1100 shannon 1194 1195######################################################################### 1196## ARM92xT Systems 1197######################################################################### 1198 1199xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 1200 1201xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 1202 1203xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 1204 1205integratorap_config : unconfig 1206 @./mkconfig $(@:_config=) arm arm926ejs integratorap 1207 1208integratorcp_config : unconfig 1209 @./mkconfig $(@:_config=) arm arm926ejs integratorcp 1210 1211lpd7a400_config \ 1212lpd7a404_config: unconfig 1213 @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x 1214 1215mx1ads_config : unconfig 1216 @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx 1217 1218mx1fs2_config : unconfig 1219 @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx 1220 1221omap1510inn_config : unconfig 1222 @./mkconfig $(@:_config=) arm arm925t omap1510inn 1223 1224omap5912osk_config : unconfig 1225 @./mkconfig $(@:_config=) arm arm926ejs omap5912osk 1226 1227omap1610inn_config \ 1228omap1610inn_cs0boot_config \ 1229omap1610inn_cs3boot_config \ 1230omap1610inn_cs_autoboot_config \ 1231omap1610h2_config \ 1232omap1610h2_cs0boot_config \ 1233omap1610h2_cs3boot_config \ 1234omap1610h2_cs_autoboot_config: unconfig 1235 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 1236 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1237 echo "... configured for CS0 boot"; \ 1238 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 1239 echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \ 1240 echo "... configured for CS_AUTO boot"; \ 1241 else \ 1242 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1243 echo "... configured for CS3 boot"; \ 1244 fi; 1245 @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn 1246 1247omap730p2_config \ 1248omap730p2_cs0boot_config \ 1249omap730p2_cs3boot_config : unconfig 1250 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 1251 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1252 echo "... configured for CS0 boot"; \ 1253 else \ 1254 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1255 echo "... configured for CS3 boot"; \ 1256 fi; 1257 @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 1258 1259scb9328_config : unconfig 1260 @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx 1261 1262smdk2400_config : unconfig 1263 @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 1264 1265smdk2410_config : unconfig 1266 @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 1267 1268SX1_config : unconfig 1269 @./mkconfig $(@:_config=) arm arm925t sx1 1270 1271# TRAB default configuration: 8 MB Flash, 32 MB RAM 1272trab_config \ 1273trab_bigram_config \ 1274trab_bigflash_config \ 1275trab_old_config: unconfig 1276 @ >include/config.h 1277 @[ -z "$(findstring _bigram,$@)" ] || \ 1278 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1279 echo "#define CONFIG_RAM_32MB" >>include/config.h ; \ 1280 echo "... with 8 MB Flash, 32 MB RAM" ; \ 1281 } 1282 @[ -z "$(findstring _bigflash,$@)" ] || \ 1283 { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \ 1284 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1285 echo "... with 16 MB Flash, 16 MB RAM" ; \ 1286 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 1287 } 1288 @[ -z "$(findstring _old,$@)" ] || \ 1289 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1290 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1291 echo "... with 8 MB Flash, 16 MB RAM" ; \ 1292 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 1293 } 1294 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 1295 1296VCMA9_config : unconfig 1297 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0 1298 1299versatile_config : unconfig 1300 @./mkconfig $(@:_config=) arm arm926ejs versatile 1301 1302######################################################################### 1303## S3C44B0 Systems 1304######################################################################### 1305 1306B2_config : unconfig 1307 @./mkconfig $(@:_config=) arm s3c44b0 B2 dave 1308 1309######################################################################### 1310## ARM720T Systems 1311######################################################################### 1312 1313ep7312_config : unconfig 1314 @./mkconfig $(@:_config=) arm arm720t ep7312 1315 1316impa7_config : unconfig 1317 @./mkconfig $(@:_config=) arm arm720t impa7 1318 1319modnet50_config : unconfig 1320 @./mkconfig $(@:_config=) arm arm720t modnet50 1321 1322evb4510_config : unconfig 1323 @./mkconfig $(@:_config=) arm arm720t evb4510 1324 1325######################################################################### 1326## AT91RM9200 Systems 1327######################################################################### 1328 1329at91rm9200dk_config : unconfig 1330 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk 1331 1332cmc_pu2_config : unconfig 1333 @./mkconfig $(@:_config=) arm at91rm9200 cmc_pu2 1334 1335######################################################################### 1336## XScale Systems 1337######################################################################### 1338 1339cerf250_config : unconfig 1340 @./mkconfig $(@:_config=) arm pxa cerf250 1341 1342cradle_config : unconfig 1343 @./mkconfig $(@:_config=) arm pxa cradle 1344 1345csb226_config : unconfig 1346 @./mkconfig $(@:_config=) arm pxa csb226 1347 1348innokom_config : unconfig 1349 @./mkconfig $(@:_config=) arm pxa innokom 1350 1351ixdp425_config : unconfig 1352 @./mkconfig $(@:_config=) arm ixp ixdp425 1353 1354lubbock_config : unconfig 1355 @./mkconfig $(@:_config=) arm pxa lubbock 1356 1357logodl_config : unconfig 1358 @./mkconfig $(@:_config=) arm pxa logodl 1359 1360wepep250_config : unconfig 1361 @./mkconfig $(@:_config=) arm pxa wepep250 1362 1363xaeniax_config : unconfig 1364 @./mkconfig $(@:_config=) arm pxa xaeniax 1365 1366xm250_config : unconfig 1367 @./mkconfig $(@:_config=) arm pxa xm250 1368 1369xsengine_config : unconfig 1370 @./mkconfig $(@:_config=) arm pxa xsengine 1371 1372#======================================================================== 1373# i386 1374#======================================================================== 1375######################################################################### 1376## AMD SC520 CDP 1377######################################################################### 1378sc520_cdp_config : unconfig 1379 @./mkconfig $(@:_config=) i386 i386 sc520_cdp 1380 1381sc520_spunk_config : unconfig 1382 @./mkconfig $(@:_config=) i386 i386 sc520_spunk 1383 1384sc520_spunk_rel_config : unconfig 1385 @./mkconfig $(@:_config=) i386 i386 sc520_spunk 1386 1387#======================================================================== 1388# MIPS 1389#======================================================================== 1390######################################################################### 1391## MIPS32 4Kc 1392######################################################################### 1393 1394xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 1395 1396incaip_100MHz_config \ 1397incaip_133MHz_config \ 1398incaip_150MHz_config \ 1399incaip_config: unconfig 1400 @ >include/config.h 1401 @[ -z "$(findstring _100MHz,$@)" ] || \ 1402 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 1403 echo "... with 100MHz system clock" ; \ 1404 } 1405 @[ -z "$(findstring _133MHz,$@)" ] || \ 1406 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 1407 echo "... with 133MHz system clock" ; \ 1408 } 1409 @[ -z "$(findstring _150MHz,$@)" ] || \ 1410 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 1411 echo "... with 150MHz system clock" ; \ 1412 } 1413 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 1414 1415tb0229_config: unconfig 1416 @./mkconfig $(@:_config=) mips mips tb0229 1417 1418######################################################################### 1419## MIPS32 AU1X00 1420######################################################################### 1421dbau1000_config : unconfig 1422 @ >include/config.h 1423 @echo "#define CONFIG_DBAU1000 1" >>include/config.h 1424 @./mkconfig -a dbau1x00 mips mips dbau1x00 1425 1426dbau1100_config : unconfig 1427 @ >include/config.h 1428 @echo "#define CONFIG_DBAU1100 1" >>include/config.h 1429 @./mkconfig -a dbau1x00 mips mips dbau1x00 1430 1431dbau1500_config : unconfig 1432 @ >include/config.h 1433 @echo "#define CONFIG_DBAU1500 1" >>include/config.h 1434 @./mkconfig -a dbau1x00 mips mips dbau1x00 1435 1436######################################################################### 1437## MIPS64 5Kc 1438######################################################################### 1439 1440purple_config : unconfig 1441 @./mkconfig $(@:_config=) mips mips purple 1442 1443#======================================================================== 1444# Nios 1445#======================================================================== 1446######################################################################### 1447## Nios32 1448######################################################################### 1449 1450DK1C20_safe_32_config \ 1451DK1C20_standard_32_config \ 1452DK1C20_config: unconfig 1453 @ >include/config.h 1454 @[ -z "$(findstring _safe_32,$@)" ] || \ 1455 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1456 echo "... NIOS 'safe_32' configuration" ; \ 1457 } 1458 @[ -z "$(findstring _standard_32,$@)" ] || \ 1459 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1460 echo "... NIOS 'standard_32' configuration" ; \ 1461 } 1462 @[ -z "$(findstring DK1C20_config,$@)" ] || \ 1463 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1464 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1465 } 1466 @./mkconfig -a DK1C20 nios nios dk1c20 altera 1467 1468DK1S10_safe_32_config \ 1469DK1S10_standard_32_config \ 1470DK1S10_mtx_ldk_20_config \ 1471DK1S10_config: unconfig 1472 @ >include/config.h 1473 @[ -z "$(findstring _safe_32,$@)" ] || \ 1474 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1475 echo "... NIOS 'safe_32' configuration" ; \ 1476 } 1477 @[ -z "$(findstring _standard_32,$@)" ] || \ 1478 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1479 echo "... NIOS 'standard_32' configuration" ; \ 1480 } 1481 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 1482 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \ 1483 echo "... NIOS 'mtx_ldk_20' configuration" ; \ 1484 } 1485 @[ -z "$(findstring DK1S10_config,$@)" ] || \ 1486 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1487 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1488 } 1489 @./mkconfig -a DK1S10 nios nios dk1s10 altera 1490 1491ADNPESC1_DNPEVA2_base_32_config \ 1492ADNPESC1_base_32_config \ 1493ADNPESC1_config: unconfig 1494 @ >include/config.h 1495 @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 1496 { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \ 1497 echo "... DNP/EVA2 configuration" ; \ 1498 } 1499 @[ -z "$(findstring _base_32,$@)" ] || \ 1500 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1501 echo "... NIOS 'base_32' configuration" ; \ 1502 } 1503 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 1504 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1505 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ 1506 } 1507 @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv 1508 1509######################################################################### 1510## Nios-II 1511######################################################################### 1512 1513PK1C20_config : unconfig 1514 @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent 1515 1516PCI5441_config : unconfig 1517 @./mkconfig PCI5441 nios2 nios2 pci5441 psyent 1518 1519#======================================================================== 1520# MicroBlaze 1521#======================================================================== 1522######################################################################### 1523## Microblaze 1524######################################################################### 1525suzaku_config: unconfig 1526 @ >include/config.h 1527 @echo "#define CONFIG_SUZAKU 1" >> include/config.h 1528 @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 1529 1530######################################################################### 1531######################################################################### 1532 1533clean: 1534 find . -type f \ 1535 \( -name 'core' -o -name '*.bak' -o -name '*~' \ 1536 -o -name '*.o' -o -name '*.a' \) -print \ 1537 | xargs rm -f 1538 rm -f examples/hello_world examples/timer \ 1539 examples/eepro100_eeprom examples/sched \ 1540 examples/mem_to_mem_idma2intr examples/82559_eeprom 1541 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 1542 rm -f tools/mpc86x_clk tools/ncb 1543 rm -f tools/easylogo/easylogo tools/bmp_logo 1544 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 1545 rm -f tools/env/fw_printenv tools/env/fw_setenv 1546 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 1547 rm -f board/trab/trab_fkt 1548 1549clobber: clean 1550 find . -type f \( -name .depend \ 1551 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 1552 -print0 \ 1553 | xargs -0 rm -f 1554 rm -f $(OBJS) *.bak tags TAGS 1555 rm -fr *.*~ 1556 rm -f u-boot u-boot.map $(ALL) 1557 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 1558 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 1559 rm -f include/asm/proc include/asm/arch include/asm 1560 1561mrproper \ 1562distclean: clobber unconfig 1563 1564backup: 1565 F=`basename $(TOPDIR)` ; cd .. ; \ 1566 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 1567 1568######################################################################### 1569