diff options
author | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2012-04-06 12:05:59 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2012-04-06 12:05:59 +0000 |
commit | c56da13854769330651b790d9c9f933ca5ffebbd (patch) | |
tree | eb95701065ecc77bff16c29883bc36878febf6a1 | |
parent | f37ce3fad3639c7edc2617f6d169cd42c5f9b099 (diff) | |
download | mtk-20170518-c56da13854769330651b790d9c9f933ca5ffebbd.zip mtk-20170518-c56da13854769330651b790d9c9f933ca5ffebbd.tar.gz mtk-20170518-c56da13854769330651b790d9c9f933ca5ffebbd.tar.bz2 |
Add git version check to prerequisite check (#11229)
SVN-Revision: 31214
-rw-r--r-- | include/prereq-build.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk index c80e004..2391e09 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -121,8 +121,12 @@ $(eval $(call RequireCommand,wget, \ Please install wget. \ )) -$(eval $(call RequireCommand,git, \ - Please install git (git-core). \ +define Require/git + git --version | awk '($$$$1 == "git") && ($$$$2 == "version") && ($$$$3 >= "1.6.5") { print "ok" }' | grep ok > /dev/null +endef + +$(eval $(call Require,git, \ + Please install git (git-core) v1.6.5 or later. \ )) define Require/gnutar |