summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git/git.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-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 9829eec6ec..183a93cde6 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"