kernel 放Ubuntu下编译不过

scripts/kconfig/conf --silentoldconfig Kconfig
CC scripts/mod/empty.o
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
make[2]: *** [scripts/mod/empty.o] Error 1

麻烦求教一下 很多天了

解决了吗??

我感觉这个是本机的gcc比较旧了,所以提示说不认识‘-mlittle-endian’/ ‘-mgeneral-regs-only’

感觉是没有指定ARCH CROSS_COMPILE导致