summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-03-18 16:02:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-19 15:22:27 +0000
commit27e72a5f13ab8c9d09f9e88a95bf3316a937045f (patch)
treec4fce1bebff47475a73448d3a233e8e24674f44b /documentation
parentbc06390947e560bbd999fc09b789cee93a324c7d (diff)
downloadpoky-27e72a5f13ab8c9d09f9e88a95bf3316a937045f.tar.gz
dev-manual: improve descriptions of 'bitbake -S printdiff'
Try to particularly emphasize that it can be used to find out why something rebuilds when it shouldn't. (From yocto-docs rev: cfaf2707b4a77888316d5eb24bf41ccc21e2c12b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/building.rst7
-rw-r--r--documentation/dev-manual/debugging.rst13
2 files changed, 13 insertions, 7 deletions
diff --git a/documentation/dev-manual/building.rst b/documentation/dev-manual/building.rst
index 7fcac33b75..fe502690dd 100644
--- a/documentation/dev-manual/building.rst
+++ b/documentation/dev-manual/building.rst
@@ -775,10 +775,9 @@ your tunings to best consider build times and package feed maintenance.
775 in the script for information on how to use the tool. 775 in the script for information on how to use the tool.
776 776
777 - *BitBake's "-S printdiff" Option:* Using this option causes 777 - *BitBake's "-S printdiff" Option:* Using this option causes
778 BitBake to try to establish the closest signature match it can 778 BitBake to try to establish the most recent signature match
779 (e.g. in the shared state cache) and then run ``bitbake-diffsigs`` 779 (e.g. in the shared state cache) and then compare matched signatures
780 over the matches to determine the stamps and delta where these two 780 to determine the stamps and delta where these two stamp trees diverge.
781 stamp trees diverge.
782 781
783Building Software from an External Source 782Building Software from an External Source
784========================================= 783=========================================
diff --git a/documentation/dev-manual/debugging.rst b/documentation/dev-manual/debugging.rst
index ce29815e9f..e20637e1c6 100644
--- a/documentation/dev-manual/debugging.rst
+++ b/documentation/dev-manual/debugging.rst
@@ -339,7 +339,10 @@ BitBake has determined by doing the following:
339 :term:`BB_BASEHASH_IGNORE_VARS` 339 :term:`BB_BASEHASH_IGNORE_VARS`
340 information. 340 information.
341 341
342There is also a ``bitbake-diffsigs`` command for comparing two 342Debugging signature construction and unexpected task executions
343===============================================================
344
345There is a ``bitbake-diffsigs`` command for comparing two
343``siginfo`` or ``sigdata`` files. This command can be helpful when 346``siginfo`` or ``sigdata`` files. This command can be helpful when
344trying to figure out what changed between two versions of a task. If you 347trying to figure out what changed between two versions of a task. If you
345call ``bitbake-diffsigs`` with just one file, the command behaves like 348call ``bitbake-diffsigs`` with just one file, the command behaves like
@@ -356,8 +359,12 @@ BitBake command-line options::
356.. note:: 359.. note::
357 360
358 Two common values for `SIGNATURE_HANDLER` are "none" and "printdiff", which 361 Two common values for `SIGNATURE_HANDLER` are "none" and "printdiff", which
359 dump only the signature or compare the dumped signature with the cached one, 362 dump only the signature or compare the dumped signature with the most recent one,
360 respectively. 363 respectively. "printdiff" will try to establish the most recent
364 signature match (e.g. in the sstate cache) and then
365 compare the matched signatures to determine the stamps and delta
366 where these two stamp trees diverge. This can be used to determine why
367 tasks need to be re-run in situations where that is not expected.
361 368
362Using BitBake with either of these options causes BitBake to dump out 369Using BitBake with either of these options causes BitBake to dump out
363``sigdata`` files in the ``stamps`` directory for every task it would 370``sigdata`` files in the ``stamps`` directory for every task it would