ubuntu 18.04.6 编译linux内核make ARCH=arm LOCALVERSION= zImage提示

unrecognized argument in option. "-mabi=aapcs-linux

...

kernel/bounds.s failed

 

设置编译链的环境变量:

(每次terminal关闭, 设置的环境变量就失效了, 需要重新设置一次)

 最后zImage文件就出现了: