linux編譯kernel和svn版本沖突的解決辦法
現(xiàn)象
系統(tǒng)本來(lái)可以正常編譯linux系統(tǒng)kernel,但在安裝svn后,kernel編譯出錯(cuò)。
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] 錯(cuò)誤 1 make[3]: *** [drivers/gpu/mali/mali] 錯(cuò)誤 2 make[2]: *** [drivers/gpu/mali] 錯(cuò)誤 2 make[1]: *** [drivers/gpu] 錯(cuò)誤 2 make: *** [drivers] 錯(cuò)誤 2 make: *** 正在等待未完成的任務(wù)....
原因分析
定位到drivers/gpu/mali/ump/Makefile.common 和drivers/gpu/mali/mali/Makefile 兩個(gè)文件中都有關(guān)于SVN_REV:=xxxx 的語(yǔ)句,正常情況下SVN_REV:= 為空,當(dāng)檢查到svn版本后,SVN_REV:= 有了值,導(dǎo)致腳本中判斷走入錯(cuò)誤分支。
解決方法
將兩個(gè)文件中的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)容請(qǐng)搜索本站以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持本站!
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。