summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 11:05:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 16:48:30 +0100
commit80d631657404669dbbf0ee88f68e5eb79a469bc6 (patch)
tree5f01504f02feca95665415d3016133ce48419fc0 /meta/recipes-devtools/git
parent551a996616cd1cd37eb5ec4ba03b6b816e9b6e0e (diff)
downloadast2050-yocto-poky-80d631657404669dbbf0ee88f68e5eb79a469bc6.zip
ast2050-yocto-poky-80d631657404669dbbf0ee88f68e5eb79a469bc6.tar.gz
git/tar/findutils: Add nativesdk versions
We need to be able to generate a standalone tarball containing tar/git so add nativesdk versions of the appropriate recipes to allow this to be possible. Tweak the git perl paths to avoid warnings when building the nativesdk version, ensure the binaries are wrapped correctly and avoid update-alternatives in nativesdk-tar. (From OE-Core rev: c91bb8c76e3bd45690e66f3de79cd3adfe45f600) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r--meta/recipes-devtools/git/git.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 9829eec..183a93c 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -31,8 +31,8 @@ do_install () {
# ${libdir} is not applicable here, perl-native files are always
# installed to /usr/lib on both 32/64 bits targets.
- rm -rf ${D}/usr/lib/perl-native
- rmdir ${D}/usr/lib || true
+ rm -rf ${D}${exec_prefix}/lib/perl-native
+ rmdir ${D}${exec_prefix}/lib || true
}
do_install_append_class-native() {
@@ -41,6 +41,12 @@ do_install_append_class-native() {
GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
}
+do_install_append_class-nativesdk() {
+ 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"
@@ -78,4 +84,4 @@ PACKAGES =+ "gitweb"
FILES_gitweb = "${datadir}/gitweb/"
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
OpenPOWER on IntegriCloud