#!/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是配置文件,是否支持什么命令
阅读(2772) | 评论(0) | 转发(1) |