summaryrefslogtreecommitdiffstats
path: root/bin/bitbake-diffsigs
AgeCommit message (Collapse)Author
2014-04-27bitbake-diffsigs: Fix runtime error when no arguments are givenJacob Kroon
If bitbake-diffsigs is run without arguments it will error: Traceback (most recent call last): File "./bin/bitbake-diffsigs", line 121, in <module> if output: NameError: name 'output' is not defined Fix this by moving the check for output into the inner else-clause. Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-04bitbake-diffsigs: improve error handlingPaul Eggleton
* Set up a logger independent of BitBake so we can log errors ourselves * Handle common errors without printing a traceback Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-04bitbake-diffsigs: refactor argument parsing slightlyPaul Eggleton
* Use OptionParser to parse the two options to -t rather than trying to pick them out ourselves. * Add a description shown with --help output Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-04bitbake-diffsigs: handle if task name is specified without do_ prefixPaul Eggleton
Adjust the task name automatically if the -t option is specified with a task name that doesn't start with do_ (e.g. "configure" instead of "do_configure"). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-01-25bitbake-diffigs: Don't pull in tinfoil unless we really need/plan to use itRichard Purdie
This means we can run in parallel with other bitbake processed we're not in task mode. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-07bitbake-diffsigs: allow specifying task & follow deps recursivelyPaul Eggleton
Add the ability to compare the two most recent runs of a specified task, and follow dependent hash changes recursively. This enables you to trace back and find exactly why a task was re-run after the fact. Note that this relies on the metadata providing a function, hooked in as bb.siggen.find_siginfo, which allows searching in the appropriate places to find signature data files. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-07lib/bb/siggen.py: make signature dump/compare functions return a listPaul Eggleton
These functions become a little bit more reusable if they return a list containing the output rather than just printing it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-29Implement task signaturesRichard Purdie
Includes functionality to find out what changes between two different signature data dumps. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>