Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1479797
  • 博文数量: 204
  • 博客积分: 4013
  • 博客等级: 中校
  • 技术积分: 4030
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-29 06:34
文章分类

全部博文(204)

文章存档

2012年(204)

分类: LINUX

2012-11-10 17:29:02

#!/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
#

# mkconfig 100ask24x0 arm arm920t 100ask24x0  NULL  s3c24x0
#   $0        $1       $2    $3      $4        $5      $6

APPEND=no # Default: Create new config file
BOARD_NAME="" # Name to print in make output


BOARD_NAME="$1"  # BOARD_NAME = 100ask24x0


echo "Configuring for ${BOARD_NAME} board..."

#
# Create link to architecture specific headers
#
cd ./include
rm -f asm
ln -s asm-$2 asm    #ln -s asm-arm asm

rm -f asm-$2/arch           # rm -f asm-arm/arm

ln -s ${LNPREFIX}arch-$6 asm-$2/arch  # ln -s arch-s3c24x0 asm-arm/arch

rm -f asm-$2/proc
ln -s ${LNPREFIX}proc-armv asm-$2/proc  # ln -s proc-armv asm-arm/proc

#
# Create include file for Make  生成一个配置文件
#

echo "ARCH   = $2" >  config.mk  # > 新建立
echo "CPU    = $3" >> config.mk  # >> 追加
echo "BOARD  = $4" >> config.mk  # >> 追加

#内容:
#ARCH  = arm
#CPU   = arm920t
#BOARD = 100ask24x0
#SOC   = s3c24x0

[ "$6" ] && [ "$6" != "NULL" ] && echo "SOC    = $6" >> config.mk

#
# Create board specific header file  创建单板相关的头文件
#
> config.h # Create new config file

echo "/* Automatically generated - do not edit */" >>config.h
echo "#include " >>config.h

exit 0


config.h的内容:

/* Automatically generated - do not edit */"
#include

100ask24x0.h是配置文件,是否支持什么命令
阅读(2678) | 评论(0) | 转发(1) |
0

上一篇:/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc

下一篇:没有了

给主人留下些什么吧!~~