summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-dumpsig8
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
70parser.add_option("-D", "--debug",
71 help = "enable debug",
72 action = "store_true", dest="debug", default = False)
73
70parser.add_option("-t", "--task", 74parser.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
74options, args = parser.parse_args(sys.argv) 78options, args = parser.parse_args(sys.argv)
75 79
80if options.debug:
81 logger.setLevel(logging.DEBUG)
82
76if options.taskargs: 83if 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)
80elif len(args) == 1: 88elif len(args) == 1:
81 parser.print_help() 89 parser.print_help()
82 sys.exit(0) 90 sys.exit(0)