Changeset f99c37e in rtems-source-builder


Ignore:
Timestamp:
May 10, 2017, 12:41:19 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
7ebd0e9
Parents:
2074bd1
Message:

bootstrap: Do not create a log file by default.

Location:
source-builder/sb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/bootstrap.py

    r2074bd1 rf99c37e  
    269269                    '--preinstall':  'Preinstall AM generation' }
    270270        log.notice('RTEMS Source Builder - RTEMS Bootstrap, %s' % (version.str()))
    271         opts = options.load(sys.argv, optargs)
     271        opts = options.load(sys.argv, optargs, logfile = False)
    272272        if opts.get_arg('--rtems'):
    273273            topdir = opts.get_arg('--rtems')
  • source-builder/sb/options.py

    r2074bd1 rf99c37e  
    266266            arg += 1
    267267
    268     def post_process(self):
     268    def post_process(self, logfile = True):
    269269        # Handle the log first.
    270         log.default = log.log(self.logfiles())
     270        if logfile:
     271            logfiles = self.logfiles()
     272        else:
     273            logfiles = None
     274        log.default = log.log(streams = logfiles)
    271275        if self.trace():
    272276            log.tracing = True
     
    562566            self.args.append('--with-rtems-bsp=%s' % (ab[1]))
    563567
    564 def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
     568def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc', logfile = True):
    565569    """
    566570    Copy the defaults, get the host specific values and merge them overriding
     
    639643    o.rtems_options()
    640644    o.process()
    641     o.post_process()
     645    o.post_process(logfile)
    642646
    643647    #
Note: See TracChangeset for help on using the changeset viewer.