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-