aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-03-11 06:22:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 14:52:39 +0000
commit751b06c25d22eea8240f9429cb49874082245e52 (patch)
tree4940ebac4a52d9fce1ee85ce428d8d02d1f240f8 /bin
parent84533c6dbd175a51f4dd59735161adfd10056888 (diff)
downloadbitbake-751b06c25d22eea8240f9429cb49874082245e52.tar.gz
bitbake-diffsigs: Add debug support
Currently shows the name of the signature files that were found when --task is used. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-diffsigs9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 527d2c7a9..c087f99bc 100755
--- a/bin/bitbake-diffsigs
+++ b/bin/bitbake-diffsigs
@@ -94,6 +94,8 @@ def find_compare_task(bbhandler, pn, taskname):
return recout
# Recurse into signature comparison
+ logger.debug("Signature file (previous): %s" % latestfiles[0])
+ logger.debug("Signature file (latest): %s" % latestfiles[1])
output = bb.siggen.compare_sigfiles(latestfiles[0], latestfiles[1], recursecb)
if output:
print('\n'.join(output))
@@ -108,12 +110,19 @@ parser = optparse.OptionParser(
%prog sigdatafile1 sigdatafile2
%prog sigdatafile1""")
+parser.add_option("-D", "--debug",
+ help = "enable debug",
+ action = "store_true", dest="debug", default = False)
+
parser.add_option("-t", "--task",
help = "find the signature data files for last two runs of the specified task and compare them",
action="store", dest="taskargs", nargs=2, metavar='recipename taskname')
options, args = parser.parse_args(sys.argv)
+if options.debug:
+ logger.setLevel(logging.DEBUG)
+
if options.taskargs:
with bb.tinfoil.Tinfoil() as tinfoil:
tinfoil.prepare(config_only=True)