linux内核编译时的错误

来源:互联网 发布:大屏幕控制软件 供应商 编辑:程序博客网 时间:2024/04/30 11:00

内核编译时的错误

cc1: error: invalid option `abi=aapcs-linux'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
  

解决方法有两种:

(1)执行make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-    命令后,在出现的menu中,

把Kernel  Features-->Use the ARM  EABI to compile the kernel 选项去掉,重新编译,则解决问题!

(2)找到安装交叉工具链时的目录,把解压的交叉工具链的另外的一个目录也配置到环境变量里,执行vi  /etc/profile,在#path maniputation下面添加pathmunge  /opt/EmbedSky/4.3.3/bin,然后,执行source   /etc/profile,是该文件生效。你的可能是另外一个目录,把路径写对就行,重新启动虚拟机,重新编译即可!

原创粉丝点击