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