aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git/git.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 12:59:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-18 14:28:44 +0100
commit269f3b3cfacaf229d5e45177ee01b16561370ee3 (patch)
tree2a900aa6920e0288ae452f9a17dd828d1d1954ee /meta/recipes-devtools/git/git.inc
parent11711d5d040e6456ac43f8800b535fe5946144cf (diff)
downloadopenembedded-core-contrib-269f3b3cfacaf229d5e45177ee01b16561370ee3.tar.gz
scripts/bitbake: Check the git-native version and build it if necessary
We require git version 1.7.5 or later for the git remote --mirror=xxx syntax. If we have an older version of git, this patch ensure we build git-replacement-native. We add an alternative PROVIDES in the same way as tar-native to allow this script to trigger the build whilst still allowing git-native in ASSUME_PROVIDED. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-rw-r--r--meta/recipes-devtools/git/git.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index ce2f5742f1..6748b70d24 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -3,6 +3,8 @@ SECTION = "console/utils"
LICENSE = "GPLv2"
DEPENDS = "openssl curl zlib expat"
+PROVIDES_append_virtclass-native = " git-replacement-native"
+
SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.bz2 "
S = "${WORKDIR}/git-${PV}"