#
# (C) Copyright 2000-2006 版权所有:2000~2006
# Wolfgang Denk, DENX Software Engineering, ******@. Wolfgang Denk一个开发人员的名字DENX Software Engineering公司名称******@
#
# See file CREDITS for list of people who contributed to this 可以看看CREDITS,里面有为uboot做出贡献的所有开发人员
# project.
#
# This program is free software; you can redistribute it and/or 这个程序是一个自由软件,你可以重新发布它,或者在自由软件基金组织所颁布的
# modify it under the terms of the GNU General Public License as GNU GPL(GNU 公共许可协议)的前提下修改它;注意,不论是第二版的GPL还是
# published by the Free Software Foundatio; either version 2 of 任何更新的版本,都可以,这由你选择。
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, 我们之所以发布这个程序,是希望它能够对你有用,但是我们不做任何担保;
# but WITHOUT ANY WARRANTY; without even the implied warranty of 不保证任何的可销售性和任何给予特殊目的的合适性。想要了解详细内容,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 你可以参考GNU GPL。
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License 你应该已经得到了GNU General Public License的一个拷贝,因为它就包含在
# along with this program; if not, write to the Free Software 这个工程的源代码包中。如果没有,你可以写信给自由软件基金组织,以获取一份。
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
VERSION = 1
PATCHLEVEL = 1
SUBLEVEL = 6
EXTRAVERSION =
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) #
VERSION_FILE = $(obj)include/ #版本文件
# uname 命令将正在使用的操作系统名写到标准输出中
# -m 显示硬件运行系统的机器 ID 号
# 定义变量,HOSTARCH里面存储的是机器ID号,即主机架构类型
HOSTARCH := $(shell uname -m | \ #可以把shell脚本写到makefile里面,这是make中的shell function,相当于shell中的命令替换。
sed -e s// \ #shell uname -m 获得机器硬件名称
-e s/sun4u/sparc64/ \ #sed -e s/arm.*/arm/ 的意思是把前缀为arm的所有模式替换为arm。结合前面的uname命令来理解就是:
-e s/arm.*/arm/ \ #把uname -m的结果(主机架构类型或者称为机器ID号)通过管道传递给sed命令,然后把前缀为arm的所有模式替换为arm。
-e s/sa110/arm/ \ #sed的语法: sed [ -n ] Script [ File ... ]
-e s/powerpc/ppc/ \ # sed [ -n ] [ -e Script ] ... [ -f Script
uboot顶层makefile详解2 来自淘豆网m.daumloan.com转载请标明出处.