您的位置:首页 > 其它

内核编译错误解决方法

2013-04-21 17:40 369 查看
  CHK     include/generated/uapi/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: “include/generated/mach-types.h”是最新的。

  CC      kernel/bounds.s

cc1: error: unrecognized command line option "-mlittle-endian"

cc1: error: unrecognized command line option "-mapcs"

cc1: error: unrecognized command line option "-mno-sched-prolog"

kernel/bounds.c:1: error: unknown ABI (apcs-gnu) for -mabi= switch

kernel/bounds.c:1: error: bad value (armv5t) for -march= switch

kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch

make[1]: *** [kernel/bounds.s] 错误 1

make: *** [prepare0] 错误 2

内核编译时出现上述错误时,采用如下方法:

命令行加入 ARCH=arm CROSS_COMPILE="arm-linux-"或

export CROSS_COMPILE="arm-linux-"
export ARCH=arm

make zImage
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐