错误内容:
echo "The UTS Release version in include/linux/version.h"; echo " /"/" "; echo "does not match current version:"; echo " /"2.6.35-custom/" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.35-custom"
Please correct this.
make: *** [install/linux-image-2.6.35-custom] 错误 2
可以看见是说include/linux/version.h中定义的与我自己定义的不同,导致编译失败,
修改所编译内核源码文件夹下的 debian/ruleset/misc/version_vars.mk 文件
在其中把
UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux /utsrelease.h ]; then /
echo include/linux /utsrelease.h; /
else /
echo include/linux/version.h ; /
fi)
改成
UTS_RELEASE_HEADER=$(call doit,if [ -f include/generated /utsrelease.h ]; then /
echo include/generated /utsrelease.h; /
else /
echo include/generated/version.h ; /
fi)
重新编译即可。