⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkconfig

📁 ATMEL公司的AT91RM9200芯片在嵌入式系统中应用非常多
💻
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -