Chinaunix首页 | 论坛 | 博客
  • 博客访问: 450477
  • 博文数量: 362
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-26 17:08
文章分类

全部博文(362)

文章存档

2015年(362)

我的朋友

分类: LINUX

2015-12-11 00:01:39

原文地址:mkconfig 作者:

#!/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是配置文件,是否支持什么命令
阅读(352) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~