Changeset 7ed2835 in rtems-source-builder


Ignore:
Timestamp:
Apr 13, 2013, 12:41:40 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
9384fba
Parents:
51b4061
Message:

Hack in sources and print the macros when tracing.

File:
1 edited

Legend:

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

    r51b4061 r7ed2835  
    236236        #
    237237        # Scan the sources found in the config file for the one we are
    238         # after. Infos or tags are lists.
     238        # after. Infos or tags are lists. Merge in any macro defined
     239        # sources as these may be overridden by user loaded macros.
    239240        #
    240241        sources = package.sources()
     242        for sm in self.macros.find('source[0-9]*'):
     243            sources[sm] = [self.macros[sm]]
    241244        url = None
    242245        for s in sources:
     
    465468        else:
    466469            _notice(self.opts, 'package: %s' % (name))
     470        if self.opts.trace():
     471            print '---- macro maps', '-' * 55
     472            print self.config.macros
     473            print '-' * 70
    467474        self.script.reset()
    468475        self.script.append(self.config.expand('%{___build_template}'))
Note: See TracChangeset for help on using the changeset viewer.