diff options
author | Chris Johns <chrisj@rtems.org> | 2013-09-03 08:29:36 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-09-03 08:29:36 +1000 |
commit | 72f89c5fc970d62592910e40d2a8df5506fa2b01 (patch) | |
tree | f4accd0105a256d1786e323f59f8bb7fe8a8247f /source-builder/sb/setbuilder.py | |
parent | sb: Add options log_info. (diff) | |
download | rtems-source-builder-72f89c5fc970d62592910e40d2a8df5506fa2b01.tar.bz2 |
sb: Output the new info message.
With the set builder add nesting count support.
Diffstat (limited to 'source-builder/sb/setbuilder.py')
-rw-r--r-- | source-builder/sb/setbuilder.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index efb8da5..7ea9f4d 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -278,7 +278,9 @@ class buildset: configs = self.parse(bset) return configs - def build(self, deps = None): + def build(self, deps = None, nesting_count = 0): + + nesting_count += 1 log.trace('_bset: %s: make' % (self.bset)) log.notice('Build Set: %s' % (self.bset)) @@ -309,13 +311,13 @@ class buildset: opts = copy.copy(self.opts) macros = copy.copy(self.macros) if configs[s].endswith('.bset'): - log.trace('_bset: %s' % ('=' * 80)) + log.trace('_bset: == %2d %s' % (nesting_count + 1, '=' * 75)) bs = buildset(configs[s], self.configs, opts, macros) - bs.build(deps) + bs.build(deps, nesting_count) del bs elif configs[s].endswith('.cfg'): mail_report = self.opts.get_arg('--mail') - log.trace('_bset: %s' % ('-' * 80)) + log.trace('_bset: -- %2d %s' % (nesting_count + 1, '-' * 75)) b = build.build(configs[s], self.opts.get_arg('--pkg-tar-files'), opts, macros) if b.macros.get('%{_disable_reporting}'): @@ -422,6 +424,7 @@ def run(): mailer.append_options(optargs) opts = options.load(sys.argv, optargs) log.notice('RTEMS Source Builder - Set Builder, v%s' % (version.str())) + opts.log_info() if not check.host_setup(opts): raise error.general('host build environment is not set up correctly') configs = build.get_configs(opts) |