主题 : 光盘上的u-boot-1.1.6就是不能编译 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 696
精华: 1
发帖: 7
金钱: 90 两
威望: 27 点
贡献值: 10 点
综合积分: 34 分
注册时间: 2008-05-14
最后登录: 2008-05-20
楼主  发表于: 2008-05-20 11:38

 光盘上的u-boot-1.1.6就是不能编译

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
 


#[root@friendlyarm u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/tools'
make[1]: Entering directory `/opt/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/examples'
make[1]: Entering directory `/opt/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/post'
make[1]: Entering directory `/opt/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/u-boot-1.1.6/tools'
make[1]: *** No rule to make target `/home/yf/arm-linux/u-boot-1.1.6/include/image.h', needed by `mkimage.o'.  Stop.
make[1]: Leaving directory `/opt/u-boot-1.1.6/tools'
make: *** [tools] Error 2

光盘上提供的u-boot-1.1.6就是不能编译  总出现上面的错误 
那位朋友帮忙看看撒 谢谢  我用的是arm-linux-gcc -3.3.2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-05-20 12:13
这是光盘上的u-boot-1.1.6源代码包的问题,友善之臂在发布的时候留了一大堆垃圾在里面:)

清理垃圾以及build u-boot的步骤应该是:
1.make distclean
2. make <board_type>_config
3. make all
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2010-02-02 22:26

 回 7楼(zxuse) 的帖子

u-boot 1.1.6根本不知道什么叫EABI,不要用EABI的arm-linux-gcc 4.3.2来编译。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."