编译Openwrt源码,提示git依赖错误,意思是需要安装1.6.5以上版本的git,而系统中已安装2.17.1版本的git。
Build dependency: Please install Git (git-core) >= 1.6.5
/home/gooday/openwrt/include/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/gooday/openwrt/include/toplevel.mk:140: recipe for target 'staging_dir/host/.prereq-build' failed
make: *** [staging_dir/host/.prereq-build] Error 1
解决方法:
方法一:
找到文件 openwrt/include/prereq-build.mk 的第148行,修改 git clone 2>&1 | grep -- --recursive 为 git verison
感谢网友【逸云飞扬】https://bbs.csdn.net/topics/392261336
方法二:
-
将文件复制到/home/gooday/openwrt/include路径下
-
在当前路径下执行命令
patch < git-version-check-fix.patch
发表评论