summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2020-03-27 15:23:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-29 20:03:30 +0100
commit5e44fb4dd106e3c4b9f072b25a93e54fa7bb1bce (patch)
tree922a906a7e186aca666320cb85d6395935f74e16
parentb199a9dbc3440d7c4fad8d8baeea931a6b7381c1 (diff)
downloadopenembedded-core-contrib-5e44fb4dd106e3c4b9f072b25a93e54fa7bb1bce.tar.gz
openembedded-core-contrib-5e44fb4dd106e3c4b9f072b25a93e54fa7bb1bce.tar.bz2
openembedded-core-contrib-5e44fb4dd106e3c4b9f072b25a93e54fa7bb1bce.zip
nativesdk-git: point to system gitconfig
On a system with selinux turned on, trying to access a directory that is in a tree that doesn't exist returns the error permission denined rather then no such file or directory, which causes git to die. git clone git://git.yoctoproject.org/poky Cloning into 'poky'... fatal: unable to access '/opt/poky/3.0+snapshot/sysroots/x86_64-pokysdk-linux/etc/gitconfig': Permission denied Switch to using the system gitconfig of the host. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/git/git.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 95ab397f6a..4131c98977 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -22,6 +22,7 @@ PACKAGECONFIG[svn] = ""
EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
--without-tcltk \
"
+EXTRA_OECONF_append_class-nativesdk = " --with-gitconfig=/etc/gitconfig "
# Needs brokensep as this doesn't use automake
inherit autotools-brokensep perlnative bash-completion