u-boot :一个编译 hello_world.srec 的错误

来源:互联网 发布:邻里家人网络平台 编辑:程序博客网 时间:2024/06/07 07:18
u-boot 在Debian etch中的一个编译 hello_world.srec 的错误
  
今天在新安装的Debian etch中编译了一下u-boot-1.1.4。提示如下错误无法编译:
make[1]: *** 没有规则可以创建“all”需要的目标“hello_world.srec”。 停止。
make[1]: Leaving directory `/home/a-ki/at91rm9200/u-boot-1.1.4/examples'
make: *** [examples] 错误 2

以前在FC5编译运行都是没有问题的!在网上查了查,有人说是make 3.81的一个BUG!http://blackfin.uclinux.org/gf/project/u-boot/tracker/?action=TrackerItemEdit&tracker_item_id=1324
可以简单的改一个目录 examples下的Makefile来解决。
将原文件的第58行开始的内容:
SREC    = hello_world.srec
BIN     = hello_world.bin hello_world
改为:
SREC    = hello_world.o
BIN     = hello_world.o hello_world
即可重新编译通过了。
原创粉丝点击