您的位置:首页 > 其它

make[1]: *** 没有规则可以创建“all”需要的目标“hello_world.srec”。 停止。

2017-05-25 22:26 603 查看
在uboot1.1.4目录下#make后,出现错误:“make[1]: *** 没有规则可以创建“all”需要的目标“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
即可重新编译通过了。

-----------------------------------------------------------------------------------------------------------------------------------------

文章来源:http://linux.chinaunix.net/techdoc/system/2007/01/17/948429.shtml 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐