summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {
132 raise bb.build.FuncFailed(e) 132 raise bb.build.FuncFailed(e)
133} 133}
134 134
135GIT_CONFIG_PATH = "${STAGING_DIR_NATIVE}/etc"
136GIT_CONFIG = "${GIT_CONFIG_PATH}/gitconfig"
137
138def generate_git_config(e):
139 if e.data.getVar('GIT_CORE_CONFIG', True):
140 gitconfig_path = e.data.getVar('GIT_CONFIG', True)
141 proxy_command = " gitProxy = %s\n" % e.data.getVar('OE_GIT_PROXY_COMMAND', True)
142
143 bb.mkdirhier(e.data.expand("${GIT_CONFIG_PATH}"))
144 if (os.path.exists(gitconfig_path)):
145 os.remove(gitconfig_path)
146
147 f = open(gitconfig_path, 'w')
148 f.write("[core]\n")
149 ignore_hosts = e.data.getVar('GIT_PROXY_IGNORE', True).split()
150 for ignore_host in ignore_hosts:
151 f.write(" gitProxy = none for %s\n" % ignore_host)
152 f.write(proxy_command)
153 f.close
154
155def pkgarch_mapping(d): 135def pkgarch_mapping(d):
156 # Compatibility mappings of TUNE_PKGARCH (opt in) 136 # Compatibility mappings of TUNE_PKGARCH (opt in)
157 if d.getVar("PKGARCHCOMPAT_ARMV7A", True): 137 if d.getVar("PKGARCHCOMPAT_ARMV7A", True):
@@ -310,7 +290,6 @@ addhandler base_eventhandler
310python base_eventhandler() { 290python base_eventhandler() {
311 if isinstance(e, bb.event.ConfigParsed): 291 if isinstance(e, bb.event.ConfigParsed):
312 e.data.setVar('BB_VERSION', bb.__version__) 292 e.data.setVar('BB_VERSION', bb.__version__)
313 generate_git_config(e)
314 pkgarch_mapping(e.data) 293 pkgarch_mapping(e.data)
315 preferred_ml_updates(e.data) 294 preferred_ml_updates(e.data)
316 e.data.appendVar('DISTRO_FEATURES', oe.utils.features_backfill("DISTRO_FEATURES", e.data)) 295 e.data.appendVar('DISTRO_FEATURES', oe.utils.features_backfill("DISTRO_FEATURES", e.data))