今天尝试编译了motorola 的2.4 内核
编译器是
http://lsb.blogdns.com/ezx-crosstool 制作得到的
gcc-3.3.6-glibc-2.3.2加上了对iwmmxt指令的支持
解压开内核,发现有一个setup.sh脚本,它通过读当前文件夹下.hhl_cross_compile .hhl_target_cpu等文件来配置
修改 .hhl_cross_compile文件,改为自己的交叉编译器路径,执行脚本
./setup.sh PRODUCT=SUMATRA
make zImage
出错
wmmx.S: Assembler messages:
wmmx.S:168: Error: undefined symbol I_BIT used as an immediate value
wmmx.S:210: Error: undefined symbol I_BIT used as an immediate value
wmmx.S:247: Error: undefined symbol I_BIT used as an immediate value
wmmx.S:306: Error: undefined symbol I_BIT used as an immediate value
make[1]: *** [wmmx.o] Error 1
解决办法
you need to add an
#include
to the top of arch/arm/kernel/wmmx.S
and it will compile like a charm. 在
arch/arm/kernel/wmmx.S加上#include
就会很快编译完。
make modules
阅读(1969) | 评论(0) | 转发(0) |