3.1 编译zImage
出现错误:
CHK include/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’
make[1]: *** [/home/jianghao/linux-3.5/./Kbuild:36:kernel/bounds.s] 错误 1
make: *** [Makefile:816:prepare0] 错误 2
正确写法:make CROSS_COMPILE=(交叉编译器安装位置)/arm-linux- ARCH=arm zImage -j4
我的编译器安装目录为 /opt/FriendlyARM/toolschain/4.5.1/bin
上述指令改为 :
make CROSS_COMPILE=/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux- ARCH=arm zImage -j4