linux編譯kernel和svn版本沖突的解決辦法
現(xiàn)象
系統(tǒng)本來可以正常編譯linux系統(tǒng)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: *** 正在等待未完成的任務(wù)....
原因分析
定位到 drivers/gpu/mali/ump/Makefile.common 和 drivers/gpu/mali/mali/Makefile 兩個文件中都有關(guān)于 SVN_REV:=xxxx 的語句,正常情況下 SVN_REV:= 為空,當(dāng)檢查到svn版本后, SVN_REV:= 有了值,導(dǎo)致腳本中判斷走入錯誤分支。
解決方法
將兩個文件中的 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 := ""
總結(jié)
到此這篇關(guān)于linux編譯kernel和svn版本沖突解決的文章就介紹到這了,更多相關(guān)linux編譯kernel和svn版本沖突內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- Linux系統(tǒng)中安裝gcc和kernel-devel的方法
- 利用kernel提供的接口打印進(jìn)程號(pid)
- 淺談在linux kernel中打印函數(shù)調(diào)用的堆棧的方法
- linux kernel 打印函數(shù)指針對應(yīng)的函數(shù)名方法
- 學(xué)習(xí)在kernel態(tài)下使用NEON對算法進(jìn)行加速的方法
- ubuntu下kvm 命令行安裝64位ubuntu報"Couldn''t find hvm kernel for Ubuntu tree."的問題分析
- CentOS7升級內(nèi)核kernel5.0版本
- 淺談linux kernel對于浮點(diǎn)運(yùn)算的支持
相關(guān)文章
通過 SSH 在遠(yuǎn)程 Linux 系統(tǒng)上運(yùn)行命令的方法
這篇文章主要介紹了通過 SSH 在遠(yuǎn)程 Linux 系統(tǒng)上運(yùn)行命令的方法,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價值,需要的朋友可以參考下2019-10-10解決Centos7下crontab+shell腳本定期自動刪除文件問題
小編最近遇到這樣的需求,就是rsync每次同步的數(shù)據(jù)量很多,但是需要保留的數(shù)據(jù)庫bak文件,保留7天就夠了,所以需要自動清理文件夾內(nèi)的bak文件。這篇文章主要介紹了解決Centos7下crontab+shell腳本定期自動刪除文件問題,需要的朋友可以參考下2018-11-11Linux運(yùn)維從初級進(jìn)階為高級知識點(diǎn)總結(jié)
在本篇文章里小編給大家整理了關(guān)于Linux運(yùn)維從初級進(jìn)階為高級知識點(diǎn)總結(jié)內(nèi)容,需要的為朋友們學(xué)習(xí)下。2019-06-06使用CDN之后APACHE日志記錄中IP地址不正確的解決方案
這篇文章主要介紹了使用CDN之后APACHE日志記錄中IP地址不正確的解決方案,需要的朋友可以參考下2014-12-12Linux之多線程以及多線程并發(fā)訪問同一塊內(nèi)存的處理問題
這篇文章主要介紹了Linux之多線程以及多線程并發(fā)訪問同一塊內(nèi)存的問題,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-03-03