summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-05-10 10:41:19 +1000
committerChris Johns <chrisj@rtems.org>2017-05-10 10:41:19 +1000
commitf99c37eb0ad77676bf866961ffb784113b4743f6 (patch)
tree22978195e8691e301a95795449c41280230e025c
parent2074bd1168ee72e6d1262a0c31bafd3338f62b80 (diff)
downloadrtems-source-builder-f99c37eb0ad77676bf866961ffb784113b4743f6.tar.bz2
bootstrap: Do not create a log file by default.
-rw-r--r--source-builder/sb/bootstrap.py2
-rw-r--r--source-builder/sb/options.py12
2 files changed, 9 insertions, 5 deletions
diff --git a/source-builder/sb/bootstrap.py b/source-builder/sb/bootstrap.py
index c9acf5c..9095f3c 100644
--- a/source-builder/sb/bootstrap.py
+++ b/source-builder/sb/bootstrap.py
@@ -268,7 +268,7 @@ def run(args):
optargs = { '--rtems': 'The RTEMS source directory',
'--preinstall': 'Preinstall AM generation' }
log.notice('RTEMS Source Builder - RTEMS Bootstrap, %s' % (version.str()))
- opts = options.load(sys.argv, optargs)
+ opts = options.load(sys.argv, optargs, logfile = False)
if opts.get_arg('--rtems'):
topdir = opts.get_arg('--rtems')
else:
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py
index 089d5a7..51407a4 100644
--- a/source-builder/sb/options.py
+++ b/source-builder/sb/options.py
@@ -265,9 +265,13 @@ class command_line:
self.opts['params'].append(a)
arg += 1
- def post_process(self):
+ def post_process(self, logfile = True):
# Handle the log first.
- log.default = log.log(self.logfiles())
+ if logfile:
+ logfiles = self.logfiles()
+ else:
+ logfiles = None
+ log.default = log.log(streams = logfiles)
if self.trace():
log.tracing = True
if self.quiet():
@@ -561,7 +565,7 @@ class command_line:
self.args.append('--target=%s-rtems%s' % (ab[0], rtems_version))
self.args.append('--with-rtems-bsp=%s' % (ab[1]))
-def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
+def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc', logfile = True):
"""
Copy the defaults, get the host specific values and merge them overriding
any matching defaults, then create an options object to handle the command
@@ -638,7 +642,7 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
o.sb_git()
o.rtems_options()
o.process()
- o.post_process()
+ o.post_process(logfile)
#
# Load the release settings