主頁 > 知識庫 > linux編譯kernel和svn版本沖突的解決辦法

linux編譯kernel和svn版本沖突的解決辦法

熱門標(biāo)簽:阿里云 美圖手機 百度競價點擊價格的計算公式 網(wǎng)站建設(shè) 智能手機 檢查注冊表項 硅谷的囚徒呼叫中心 使用U盤裝系統(tǒng)

現(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)文章希望大家以后多多支持腳本之家!

標(biāo)簽:賀州 山南 懷化 黃山 煙臺 湘潭 通遼 湖北

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《linux編譯kernel和svn版本沖突的解決辦法》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266