gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’

s@s:~/桌面/code/linux-4.0$ make dtbs
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”已是最新。
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=vfp’
make[1]: *** [Kbuild:43:kernel/bounds.s] 错误 1
make: *** [Makefile:990:prepare0] 错误 2

 

查看顶级的Makefile

将 CROSS_COMPILE 参数修改为工具链的路径 比如 /opt/gcc-5.4/bin/arm-linux-gnueabi-

posted @ 2021-03-30 16:14  蒲城小农  阅读(4039)  评论(0)    收藏  举报