mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/track: Only output unreferenced configs with the option
This commit is contained in:
@@ -134,7 +134,7 @@ def run(args = sys.argv):
|
|||||||
argsp.add_argument('--trace', help = 'Enable trace logging for debugging.',
|
argsp.add_argument('--trace', help = 'Enable trace logging for debugging.',
|
||||||
action = 'store_true')
|
action = 'store_true')
|
||||||
argsp.add_argument('--not-referenced',
|
argsp.add_argument('--not-referenced',
|
||||||
help = 'Write out the list of not config files not referenced.',
|
help = 'Write out the list of config files not referenced.',
|
||||||
action = 'store_true')
|
action = 'store_true')
|
||||||
argsp.add_argument('bsets', nargs='*', help = 'Build sets.')
|
argsp.add_argument('bsets', nargs='*', help = 'Build sets.')
|
||||||
|
|
||||||
@@ -191,38 +191,35 @@ def run(args = sys.argv):
|
|||||||
if e not in bsets + configs:
|
if e not in bsets + configs:
|
||||||
errs += [e]
|
errs += [e]
|
||||||
errors = errs
|
errors = errs
|
||||||
if argopts.not_referenced:
|
output = ['RSB Dependency Tracker',
|
||||||
output = not_used_configs
|
'',
|
||||||
else:
|
'Total buildsets: %d' % (len(all_bsets)),
|
||||||
output = ['RSB Dependency Tracker',
|
'Total configs: %d' % (len(all_configs)),
|
||||||
'',
|
'']
|
||||||
'Total buildsets: %d' % (len(all_bsets)),
|
if len(errors) > 0:
|
||||||
'Total configs: %d' % (len(all_configs)),
|
output += ['Errored File Set (%d):' % (len(errors)),
|
||||||
'']
|
''] + \
|
||||||
if len(errors) > 0:
|
errors + \
|
||||||
output += ['Errored File Set (%d):' % (len(errors)),
|
['']
|
||||||
''] + \
|
if len(configs) > 0:
|
||||||
errors + \
|
output += ['Include Tree(s):',
|
||||||
['']
|
''] + \
|
||||||
if len(configs) > 0:
|
deps_tree + \
|
||||||
output += ['Include Tree(s):',
|
['']
|
||||||
''] + \
|
if len(bsets) > 0:
|
||||||
deps_tree + \
|
output += ['Buildsets (%d):' % (len(bsets)),
|
||||||
['']
|
''] + \
|
||||||
if len(bsets) > 0:
|
bsets + \
|
||||||
output += ['Buildsets (%d):' % (len(bsets)),
|
['']
|
||||||
''] + \
|
if len(configs) > 0:
|
||||||
bsets + \
|
output += ['Configurations (%d):' % (len(configs)),
|
||||||
['']
|
''] + \
|
||||||
if len(configs) > 0:
|
configs + \
|
||||||
output += ['Configurations (%d):' % (len(configs)),
|
['']
|
||||||
''] + \
|
if argopts.not_referenced and len(not_used_configs) > 0:
|
||||||
configs + \
|
output += ['Not referenced (%d): ' % (len(not_used_configs)),
|
||||||
['']
|
''] + \
|
||||||
if len(not_used_configs) > 0:
|
not_used_configs
|
||||||
output += ['Not referenced (%d): ' % (len(not_used_configs)),
|
|
||||||
''] + \
|
|
||||||
not_used_configs
|
|
||||||
output = os.linesep.join(output)
|
output = os.linesep.join(output)
|
||||||
if argopts.output:
|
if argopts.output:
|
||||||
o = open(argopts.output, "w")
|
o = open(argopts.output, "w")
|
||||||
|
Reference in New Issue
Block a user