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 () {
31 31
32 # ${libdir} is not applicable here, perl-native files are always 32 # ${libdir} is not applicable here, perl-native files are always
33 # installed to /usr/lib on both 32/64 bits targets. 33 # installed to /usr/lib on both 32/64 bits targets.
34 rm -rf ${D}/usr/lib/perl-native 34 rm -rf ${D}${exec_prefix}/lib/perl-native
35 rmdir ${D}/usr/lib || true 35 rmdir ${D}${exec_prefix}/lib || true
36} 36}
37 37
38do_install_append_class-native() { 38do_install_append_class-native() {
@@ -41,6 +41,12 @@ do_install_append_class-native() {
41 GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates 41 GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
42} 42}
43 43
44do_install_append_class-nativesdk() {
45 create_wrapper ${D}/${bindir}/git \
46 GIT_EXEC_PATH=${libexecdir}/git-core \
47 GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
48}
49
44FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/" 50FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/"
45FILES_${PN}-dbg += "${libexecdir}/git-core/.debug" 51FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
46 52
@@ -78,4 +84,4 @@ PACKAGES =+ "gitweb"
78FILES_gitweb = "${datadir}/gitweb/" 84FILES_gitweb = "${datadir}/gitweb/"
79 85
80 86
81BBCLASSEXTEND = "native" 87BBCLASSEXTEND = "native nativesdk"