本想把友善提供的linux内核编译成内核模块,以便再编译驱动模块时加载,但是运行make modules出现错误:
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
用make menuconfig 选中enable loadable module support选项后出现错误:
zhang@ubuntu:/work/linux-2.6.35.7$ sudo make modules
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
kernel/bounds.c:1: error: unknown ABI (apcs-gnu) for -mabi= switch
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
zhang@ubuntu:/work/linux-2.6.35.7$
是因为我ubuntu10.10版本低,还是什么情况,敬请解答.