编译内核 报错 -mlittle-endian

交叉编译内核出现

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

解决办法:

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

export CROSS_COMPILE="arm-linux-"

export ARCH=arm

make zImage

你可能感兴趣的:(职场,内核,编译,休闲,-mlittle-endian)