diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-03-11 06:22:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-23 13:19:49 +0000 |
commit | ea7faf7a05a652f169905ae983a3c3126a8f1c69 (patch) | |
tree | db4e72469fda2cfe173619d7d6969b0da6d60479 /bitbake | |
parent | 82982d3d974f70970f334925648c83423e57371b (diff) | |
download | poky-ea7faf7a05a652f169905ae983a3c3126a8f1c69.tar.gz |
bitbake: bitbake-dumpsig: Add debug support
Currently shows the name of the signature file that was found when
--task is used.
(Bitbake rev: 84533c6dbd175a51f4dd59735161adfd10056888)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-dumpsig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-dumpsig b/bitbake/bin/bitbake-dumpsig index b1fce2510d..38efd22864 100755 --- a/bitbake/bin/bitbake-dumpsig +++ b/bitbake/bin/bitbake-dumpsig | |||
@@ -67,16 +67,24 @@ parser = optparse.OptionParser( | |||
67 | %prog -t recipename taskname | 67 | %prog -t recipename taskname |
68 | %prog sigdatafile""") | 68 | %prog sigdatafile""") |
69 | 69 | ||
70 | parser.add_option("-D", "--debug", | ||
71 | help = "enable debug", | ||
72 | action = "store_true", dest="debug", default = False) | ||
73 | |||
70 | parser.add_option("-t", "--task", | 74 | parser.add_option("-t", "--task", |
71 | help = "find the signature data file for the specified task", | 75 | help = "find the signature data file for the specified task", |
72 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') | 76 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') |
73 | 77 | ||
74 | options, args = parser.parse_args(sys.argv) | 78 | options, args = parser.parse_args(sys.argv) |
75 | 79 | ||
80 | if options.debug: | ||
81 | logger.setLevel(logging.DEBUG) | ||
82 | |||
76 | if options.taskargs: | 83 | if options.taskargs: |
77 | tinfoil = bb.tinfoil.Tinfoil() | 84 | tinfoil = bb.tinfoil.Tinfoil() |
78 | tinfoil.prepare(config_only = True) | 85 | tinfoil.prepare(config_only = True) |
79 | file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1]) | 86 | file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1]) |
87 | logger.debug("Signature file: %s" % file) | ||
80 | elif len(args) == 1: | 88 | elif len(args) == 1: |
81 | parser.print_help() | 89 | parser.print_help() |
82 | sys.exit(0) | 90 | sys.exit(0) |