mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
bootstrap: Do not create a log file by default.
This commit is contained in:
parent
2074bd1168
commit
f99c37eb0a
@ -268,7 +268,7 @@ def run(args):
|
|||||||
optargs = { '--rtems': 'The RTEMS source directory',
|
optargs = { '--rtems': 'The RTEMS source directory',
|
||||||
'--preinstall': 'Preinstall AM generation' }
|
'--preinstall': 'Preinstall AM generation' }
|
||||||
log.notice('RTEMS Source Builder - RTEMS Bootstrap, %s' % (version.str()))
|
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'):
|
if opts.get_arg('--rtems'):
|
||||||
topdir = opts.get_arg('--rtems')
|
topdir = opts.get_arg('--rtems')
|
||||||
else:
|
else:
|
||||||
|
@ -265,9 +265,13 @@ class command_line:
|
|||||||
self.opts['params'].append(a)
|
self.opts['params'].append(a)
|
||||||
arg += 1
|
arg += 1
|
||||||
|
|
||||||
def post_process(self):
|
def post_process(self, logfile = True):
|
||||||
# Handle the log first.
|
# 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():
|
if self.trace():
|
||||||
log.tracing = True
|
log.tracing = True
|
||||||
if self.quiet():
|
if self.quiet():
|
||||||
@ -561,7 +565,7 @@ class command_line:
|
|||||||
self.args.append('--target=%s-rtems%s' % (ab[0], rtems_version))
|
self.args.append('--target=%s-rtems%s' % (ab[0], rtems_version))
|
||||||
self.args.append('--with-rtems-bsp=%s' % (ab[1]))
|
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
|
Copy the defaults, get the host specific values and merge them overriding
|
||||||
any matching defaults, then create an options object to handle the command
|
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.sb_git()
|
||||||
o.rtems_options()
|
o.rtems_options()
|
||||||
o.process()
|
o.process()
|
||||||
o.post_process()
|
o.post_process(logfile)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Load the release settings
|
# Load the release settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user