linux编译kernel和svn版本冲突的解决办法
程序员文章站
2022-09-06 22:26:47
现象系统本来可以正常编译linux系统kernel,但在安装svn后,kernel编译出错。chk include/linux/version.h chk include/generated/...
现象
系统本来可以正常编译linux系统kernel,但在安装svn后,kernel编译出错。
chk include/linux/version.h chk include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. call scripts/checksyscalls.sh chk include/generated/compile.h gcc: directory: no such file or directory gcc: directory": no such file or directory <command-line>:0: warning: missing terminating " character gcc: directory: no such file or directory gcc: directory": no such file or directory <command-line>:0: warning: missing terminating " character gcc: directory: no such file or directory gcc: directory": no such file or directory <command-line>:0: warning: missing terminating " character cc drivers/gpu/mali/mali/common/mali_kernel_core.o arm-eabi-gcc: error: ": no such file or directory make[4]: *** [drivers/gpu/mali/mali/common/mali_kernel_core.o] 错误 1 make[3]: *** [drivers/gpu/mali/mali] 错误 2 make[2]: *** [drivers/gpu/mali] 错误 2 make[1]: *** [drivers/gpu] 错误 2 make: *** [drivers] 错误 2 make: *** 正在等待未完成的任务....
原因分析
定位到 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 # get subversion revision number, fall back to 0000 if no svn info is available 17 #svn_rev:=$(shell ((svnversion | grep -qv exported && echo -n 'revision: ' && svnversion) || git svn info | sed -e 's/$$$$/m/' | grep '^revision: ' || echo ${mali_release_name}) 2>/dev/null | sed -e 's/^revision: //') 19 svn_rev:=""
drivers/gpu/mali/mali/makefile:
117 #svn_rev := $(shell (cd $(driver_dir); (svnversion | grep -qv exported && svnversion) || git svn info | grep '^revision: '| sed -e 's/ ^revision: //' ) 2>/dev/null ) 119 svn_rev := ""
总结
到此这篇关于linux编译kernel和svn版本冲突解决的文章就介绍到这了,更多相关linux编译kernel和svn版本冲突内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!