aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2013-02-08 14:27:21 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-11 22:52:46 +0000
commitc485322fa2b89eb90efd88969d0c73575f128af7 (patch)
tree6837307c6506ffcd126b98e9b74ef8e550cbfddf /meta/classes/base.bbclass
parent684c6512850ceb108e52af634be98eaacb8351e1 (diff)
downloadopenembedded-core-c485322fa2b89eb90efd88969d0c73575f128af7.tar.gz
base.bbclass: Remove generate_git_config()
git no longer supports the use of GIT_CONFIG which defeats the purpose of GIT_CORE_CONFIG and the generate_git_config() function. Remove it. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass21
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1c284b750c..4d69cafbcd 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -132,26 +132,6 @@ python base_do_unpack() {
raise bb.build.FuncFailed(e)
}
-GIT_CONFIG_PATH = "${STAGING_DIR_NATIVE}/etc"
-GIT_CONFIG = "${GIT_CONFIG_PATH}/gitconfig"
-
-def generate_git_config(e):
- if e.data.getVar('GIT_CORE_CONFIG', True):
- gitconfig_path = e.data.getVar('GIT_CONFIG', True)
- proxy_command = " gitProxy = %s\n" % e.data.getVar('OE_GIT_PROXY_COMMAND', True)
-
- bb.mkdirhier(e.data.expand("${GIT_CONFIG_PATH}"))
- if (os.path.exists(gitconfig_path)):
- os.remove(gitconfig_path)
-
- f = open(gitconfig_path, 'w')
- f.write("[core]\n")
- ignore_hosts = e.data.getVar('GIT_PROXY_IGNORE', True).split()
- for ignore_host in ignore_hosts:
- f.write(" gitProxy = none for %s\n" % ignore_host)
- f.write(proxy_command)
- f.close
-
def pkgarch_mapping(d):
# Compatibility mappings of TUNE_PKGARCH (opt in)
if d.getVar("PKGARCHCOMPAT_ARMV7A", True):
@@ -310,7 +290,6 @@ addhandler base_eventhandler
python base_eventhandler() {
if isinstance(e, bb.event.ConfigParsed):
e.data.setVar('BB_VERSION', bb.__version__)
- generate_git_config(e)
pkgarch_mapping(e.data)
preferred_ml_updates(e.data)
e.data.appendVar('DISTRO_FEATURES', oe.utils.features_backfill("DISTRO_FEATURES", e.data))