Android 内核bash脚本编译错误
上次我尝试为运行android的设备编译内核时,我遇到了一些奇怪的问题,如下所示:Android 内核bash脚本编译错误,android,git,bash,linux-kernel,line-endings,Android,Git,Bash,Linux Kernel,Line Endings,上次我尝试为运行android的设备编译内核时,我遇到了一些奇怪的问题,如下所示: /cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 5: $'\r': command not found cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 12: $'\r': command not found /cmsource/kernel/samsu
/cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 5: $'\r': command not found
cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 12: $'\r': command not found
/cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 59: warning: here-document at line 24 delimited by end-of-file (wanted `EOF')
cmsource/kernel/samsung/msm7x30-common/scripts/mkmakefile: line 60: syntax error: unexpected end of file
正如您所知,mkmakefile
我试图解决编译错误,但我想不出来
我由此怀疑:我在一周前对git做了如下各种更改:
git config --global core.autocrlf input
git config --global core.whitespace trailing-space,space-before-tab,inden
git config --global core.autocrlf true
我在网上搜索时看到以下帖子:
我必须说,我使用git clone
所以在我看来,设置gitcrlf、行结束设置和脚本引起的内核编译错误之间存在着某种关系
有人能解释一下吗?git config--global core.autocrlf true的问题在于,它是一个全局设置,可能会影响所有文件,包括不应更改其eol(行尾)字符的文件
() 先试试:
git config --global core.autocrlf false
然后再次克隆您的回购协议,以查看问题是否仍然存在