下载此文档

uboot顶层makefile详解2.docx


文档分类:IT计算机 | 页数:约23页 举报非法文档有奖
1/23
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/23 下载此文档
文档列表 文档介绍
#
# (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
EXTRA VERSION =
U_BOOT_VERSION = $(VERSION).$(PA TCHLEVEL).$(SUBLEVEL)$(EXTRA VERSION)
# 版
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 ... ]

uboot顶层makefile详解2 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数23
  • 收藏数0 收藏
  • 顶次数0
  • 上传人aisheng191
  • 文件大小56 KB
  • 时间2018-11-06
最近更新