summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-06 12:05:59 +0000
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-06 12:05:59 +0000
commitb4f26d0124f3464bd48ce621ffaff4e47b0b8cbc (patch)
tree58c23591607bedd50b1a215baa3b4cf3af6116f9 /include
parent54eef89c33341b16ead9ff7617aad06fb93828dd (diff)
[include] Add git version check to prerequisite check (#11229)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31214 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/prereq-build.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index c80e004c0..2391e098c 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