mkconfig

来自「ATMEL公司的AT91RM9200芯片在嵌入式系统中应用非常多」· 代码 · 共 63 行

TXT
63
字号
#!/bin/sh -e# Script to create header files and links to configure# U-Boot for a specific board.## Parameters:  Target  Architecture  CPU  Board## (C) 2002 DENX Software Engineering, Wolfgang Denk <wd@denx.de>#APPEND=no	# Default: Create new config filewhile [ $# -gt 0 ] ; do	case "$1" in	--) shift ; break ;;	-a) shift ; APPEND=yes ;;	*)  break ;;	esacdone[ $# -lt 4 ] && exit 1[ $# -gt 5 ] && exit 1echo "Configuring for $1 board..."cd ./include## Create link to architecture specific headers#rm -f asmln -s asm-$2 asmrm -f asm-$2/archln -s arch-$3 asm-$2/archif [ "$2" = "arm" ] ; then	rm -f asm-$2/proc	ln -s proc-armv asm-$2/procfi## Create include file for Make#echo "ARCH  = $2" >  config.mkecho "CPU   = $3" >> config.mkecho "BOARD = $4" >> config.mk[ "$5" ] && echo "VENDOR = $5" >> config.mk## Create board specific header file#if [ "$APPEND" = "yes" ]	# Append to existing config filethen	echo >> config.helse	> config.h		# Create new config filefiecho "/* Automatically generated - do not edit */" >>config.hecho "#include <configs/$1.h>" >>config.hexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?