diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-09-05 16:37:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:19:50 +0100 |
commit | 9a3e25b5a3aa5e3b6ba543c4f789f66b240b38a7 (patch) | |
tree | 2ff7beb9603aa7a730b5f56d759d3ca74b9504ab /meta/recipes-devtools/git/git.inc | |
parent | ce236234831ebc05ffdf1e0a368692ac2818a388 (diff) | |
download | openembedded-core-9a3e25b5a3aa5e3b6ba543c4f789f66b240b38a7.tar.gz openembedded-core-9a3e25b5a3aa5e3b6ba543c4f789f66b240b38a7.tar.bz2 openembedded-core-9a3e25b5a3aa5e3b6ba543c4f789f66b240b38a7.zip |
git: fix sstate relocation for git-native
Create a wrapper for git to set GIT_EXEC_PATH and GIT_TEMPLATE_DIR so
that git-native is relocatable.
Fixes specific example given in [YOCTO #1137]
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-rw-r--r-- | meta/recipes-devtools/git/git.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc index 56655f93be..ca13ffd704 100644 --- a/meta/recipes-devtools/git/git.inc +++ b/meta/recipes-devtools/git/git.inc @@ -18,6 +18,12 @@ do_install () { GIT_PYTHON_DIR=${D}${datadir}/git-core/python } +do_install_append_virtclass-native() { + create_wrapper ${D}/${bindir}/git \ + GIT_EXEC_PATH=${libexecdir}/git-core \ + GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates +} + FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/" FILES_${PN}-dbg += "${libexecdir}/git-core/.debug" |