当前位置: 首页 > Linux

linux编译内核与svn版本冲突的解决方法

时间:2023-04-06 06:01:33 Linux

现象系统可以正常编译linux系统内核,但是安装svn后,内核编译出错。CHKinclude/linux/version.hCHKinclude/generated/utsrelease.hmake[1]:`include/generated/mach-types.h'是最新的。CALLscripts/checksyscalls.shCHKinclude/generated/compile.hgcc:directory:Nosuchfileordirectorygcc:directory":Nosuchfileordirectory:0:warning:missingterminating"charactergcc:directory:Nosuch文件或目录gcc:目录":没有这样的文件或目录<命令行>:0:警告:缺少终止符"charactergcc:目录:没有这样的文件或目录gcc:目录":没有这样的文件或目录<命令行>:0:警告:缺少终止“字符CCdrivers/gpu/mali/mali/common/mali_kernel_core.oarm-eabi-gcc:error:”:没有这样的文件或目录[4]:***[drivers/gpu/mali/mali/common/mali_kernel_core.o]错误1make[3]:***[drivers/gpu/mali/mali]错误2make[2]:***[drivers/gpu/mali]错误2make[1]:***[驱动程序/GPU]错误2make:***[drivers]Error2make:***Waitingforunfinishedtasks....原因分析定位到drivers/gpu/mali/ump/Makefile.common和drivers/gpu/mali/mali/Makefile都有语句关于每个文件中的SVN_REV:=xxxx。一般情况下,SVN_REV:=为空。检查svn版本后,SVN_REV:=有值,导致脚本中判断进入了错误的分支。解决办法是将两个文件中所有的SVN_REV值都赋值给空的“”。drivers/gpu/mali/ump/Makefile.common:16#获取subversion修订号,如果没有可用的svn信息则返回000017#SVN_REV:=$(shell((svnversion|grep-qvexported&&echo-n'修订:'&&svnversion)||gitsvninfo|sed-e's/$$$$/M/'|grep'^Revision:'||echo${MALI_RELEASE_NAME})2>/dev/null|sed-e's/^Revision://')19SVN_REV:=""drivers/gpu/mali/mali/Makefile:117#SVN_REV:=$(shell(cd$(DRIVER_DIR);(svnversion|grep-qvexported&&svnversion)||gitsvninfo|grep'^Revision:'|sed-e's/^Revision://')2>/dev/null)119SVN_REV:=""欢迎关注我的微信公众号【DatabaseKernel]:分享主流开源数据库和存储引擎的相关技术。标题网址GitHubhttps://dbkernel.github.io知乎https://www.zhihu.com/people/...SegmentFaulthttps://segmentfault.com/u/db...掘金https://juejin.im/user/5e9d3e...CSDNhttps://blog.csdn.net/dbkernel博客园(cnblogs)https://www.cnblogs.com/dbkernel