uboot配置分析之make100ask24x0_config分析
2017-03-04 16:54
381 查看
uboot配置分析之make100ask24x0_config分析
#!/bin/sh -e # Script to create header files and links to configure # U-Boot for a specific board. # # Parameters: Target Architecture CPU Board [VENDOR] [SOC] # # (C) 2002-2006 DENX Software Engineering, Wolfgang Denk <wd@denx.de> # APPEND=no # Default: Create new config file BOARD_NAME="" # Name to print in make output #mkconfig 100ask24x0 arm arm920t 100ask24x0 NULL s3c24x0 #判断输入mkconfig的参数有没有--,-a,-n,* while [ $# -gt 0 ] ; do case "$1" in --) shift ; break ;; -a) shift ; APPEND=yes ;; -n) shift ; BOARD_NAME="${1%%_config}" ; shift ;; *) break ;; esac done #如果BOARD_NAME没有定义,则执行BOARD_NAME=$1 [ "${BOARD_NAME}" ] || BOARD_NAME="$1" #如果输入的参数小于4个或者大于6个,则退出 [ $# -lt 4 ] && exit 1 [ $# -gt 6 ] && exit 1 #打印到控制台 echo "Configuring for ${BOARD_NAME} board..." # # Create link to architecture specific headers # #BUILD_DIR没有定义,$SRCTREE" != "$OBJTREE 执行else分支 if [ "$SRCTREE" != "$OBJTREE" ] ; then mkdir -p ${OBJTREE}/include mkdir -p ${OBJTREE}/include2 cd ${OBJTREE}/include2 rm -f asm ln -s ${SRCTREE}/include/asm-$2 asm LNPREFIX="../../include2/asm/" cd ../include rm -rf asm-$2 rm -f asm mkdir asm-$2 ln -s asm-$2 asm else #cd /include && ln -s asm-arm asm cd ./include rm -f asm ln -s asm-$2 asm fi rm -f asm-$2/arch if [ -z "$6" -o "$6" = "NULL" ] ; then #if $6 为空或者NULL,$6不为空或者NULL ln -s ${LNPREFIX}arch-$3 asm-$2/arch else ln -s ${LNPREFIX}arch-$6 asm-$2/arch #LNPREFIX 未定义,ln -s arch-s3c24x0 asm-arm/arch fi if [ "$2" = "arm" ] ; then rm -f asm-$2/proc ln -s ${LNPREFIX}proc-armv asm-$2/proc #ls -s proc-armv asm-arm/proc fi # # Create include file for Make # echo "ARCH = $2" > config.mk #creat file /include/config.mk echo "CPU = $3" >> config.mk echo "BOARD = $4" >> config.mk [ "$5" ] && [ "$5" != "NULL" ] && echo "VENDOR = $5" >> config.mk #$5 = NUll [ "$6" ] && [ "$6" != "NULL" ] && echo "SOC = $6" >> config.mk #echo SOC = s3c24x0 >>config.mk # #/include/config.mk 的内容如下 # #ARCH = arm #CPU = arm920t #BOARD = 100ask24x0 #SOC = s3c24x0 # # Create board specific header file # #APPEND = no if [ "$APPEND" = "yes" ] # Append to existing config file then echo >> config.h #creat file /include/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 exit 0 # #/include/config.h的内容如下 # #/* Automatically generated - do not edit */ #include <configs/100ask24x0.h>
相关文章推荐
- uboot makefile分析之 make xx_config
- uboot配置 #make smdkv210_config 出错:rm: cannot remove `asm/arch': Is a directory
- 分析make config、make menuconfig、make xconfig三个linux内核配置界面的区别
- 第1阶段——u-boot分析之make 100ask24x0_config指令(1)
- 移植uboot-1.1.6到勤研2440之二移植支持Nand Flash(和精智2440接近,仿照100ask24x0_config配置,重现韦东山的uboot-1.1.6_patch过程)
- uboot makefile分析之 make xx_config
- 移植uboot-1.1.6到勤研2440(和精智2440接近,仿照100ask24x0_config配置,重现韦东山的uboot-1.1.6_patch过程)
- uboot makefile分析之 make xx_config
- unbuntu10.04用make menuconfig配置出错解决
- Linux 内核编译 —— make localmodconfig 简化内核配置流程
- 内核_.config 内核配置[ZT]--make menuconfig
- Solr快速回顾3---配置文件schema.xml和solrconfig.xml分析
- 配置config.bib的注意事项以及错误分析
- 如何用make menuconfig配置kernel
- Uboot的配置过程分析
- uboot makefile分析之 make xx_config
- 配置config.bib的注意事项以及错误分析
- U-Boot编译过程完全分析-make ***_config 和mkconfig脚本,include/config.mk,include/config.h
- Linux内核配置--make menuconfig