(1)然后就出现如图所示的错误,
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
解决办法
编译器的问题,更换交叉编译链即可 另外编译内核推荐使用使用make bzImage ARCH=arm CROSS_COMPILE=arm-linux- 在编译之前请先配置内核make menuconfig ARCH=arm