summaryrefslogtreecommitdiff
path: root/morphlib/buildenvironment.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-01-28 14:57:39 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-03-13 15:20:02 +0000
commitb7f69986034afef8a792839fac601caa0f20d55a (patch)
tree1ff1f9b9b02ee0e68f54ab91dbf6203cc31ebd8c /morphlib/buildenvironment.py
parent79a6f05bbf70a4fa10b1b426ef9f223d5cbaf3ee (diff)
downloadmorph-b7f69986034afef8a792839fac601caa0f20d55a.tar.gz
Remove features used by old bootstrap method
That means that bootstrapping Baserock is currently not possible with this branch of Morph, but there's no reason it cannot be bootstrapped using an older version of Morph instead.
Diffstat (limited to 'morphlib/buildenvironment.py')
-rw-r--r--morphlib/buildenvironment.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/morphlib/buildenvironment.py b/morphlib/buildenvironment.py
index d9e3210f..57270414 100644
--- a/morphlib/buildenvironment.py
+++ b/morphlib/buildenvironment.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Codethink Limited
+# Copyright (C) 2012-2013 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -44,7 +44,6 @@ class BuildEnvironment():
# copy a set of white-listed variables from the original env
copied_vars = dict.fromkeys([
- 'BOOTSTRAP_TOOLS',
'DISTCC_HOSTS',
'LD_PRELOAD',
'LD_LIBRARY_PATH',
@@ -62,10 +61,6 @@ class BuildEnvironment():
if copied_vars[name] is not None:
env[name] = copied_vars[name]
- if settings['bootstrap'] or not settings['staging-chroot']:
- if 'TMPDIR' in self._osenv:
- env['TMPDIR'] = self._osenv['TMPDIR']
-
env['TERM'] = self._override_term
env['SHELL'] = self._override_shell
env['USER'] = \
@@ -74,15 +69,12 @@ class BuildEnvironment():
env['LC_ALL'] = self._override_locale
env['HOME'] = self._override_home
- if settings['keep-path'] or settings['bootstrap']:
- env['PATH'] = path
- else:
- env['PATH'] = self._default_path
+ env['PATH'] = self._default_path
env['TOOLCHAIN_TARGET'] = settings['toolchain-target']
env['CFLAGS'] = settings['target-cflags']
env['PREFIX'] = settings['prefix']
- env['BOOTSTRAP'] = 'true' if settings['bootstrap'] else 'false'
+ env['BOOTSTRAP'] = 'false'
if not settings['no-ccache']:
env['PATH'] = ('%s:%s' % (self._ccache_path, env['PATH']))
# FIXME: we should set CCACHE_BASEDIR so any objects that refer to their