今天在编译内核的时候出现了这样的错误:(2.6.30.4)
make: Warning: File `include/config/auto.conf.cmd' has modification time 3.5e+02 s in the future
CHK include/linux/version.h
make[1]: Warning: File `include/config/auto.conf' has modification time 3.6e+02 s in the future
make[1]: `include/asm-arm/mach-types.h' is up to date.
make[1]: warning: Clock skew detected. Your build may be incomplete.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
ln: creating symbolic link `include/asm' to `asm-arm': Operation not supported
make: *** [include/asm] Error 1
在网上查找原因得:
出现这类问题,主要是由于在编译的时候,要用ln去建立一些软链接,
而这些文件是从Windows中,通过VMWare虚拟机共享进Linux的,
而虽然此种操作在Linux系统中很常见,但Windows不支持,所以,
编译会报错。
解决问题的方法很多
我是把内核文件夹拷贝到了linux的/home/***目录下,我是把内核压缩包直接从windows拖到VM里面的,
之后再解压缩就可以了
tar -zjvxf linux-2.6.12-090915.tar
进到linux-2.6.12目录下就可以make zImage了
也可以用samba,感觉很麻烦!