dev-manual: improve descriptions of 'bitbake -S printdiff'
PATCH 1/3 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.
--- documentation/dev-manual/building.rst | 7 +++---- documentation/dev-manual/debugging.rst | 13 ++++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-)
documentation/dev-manual/building.rst +3 -4
@@ -775,10 +775,9 @@ your tunings to best consider build times and package feed maintenance. in the script for information on how to use the tool. - *BitBake's "-S printdiff" Option:* Using this option causes - BitBake to try to establish the closest signature match it can - (e.g. in the shared state cache) and then run ``bitbake-diffsigs`` - over the matches to determine the stamps and delta where these two - stamp trees diverge. + BitBake to try to establish the most recent signature match it can + (e.g. in the shared state cache) and then compare matched signatures + to determine the stamps and delta where these two stamp trees diverge. Building Software from an External Source =========================================
documentation/dev-manual/debugging.rst +10 -3
@@ -339,7 +339,10 @@ BitBake has determined by doing the following: :term:`BB_BASEHASH_IGNORE_VARS` information. -There is also a ``bitbake-diffsigs`` command for comparing two +Debugging signature construction and unexpected task executions +=============================================================== + +There is a ``bitbake-diffsigs`` command for comparing two ``siginfo`` or ``sigdata`` files. This command can be helpful when trying to figure out what changed between two versions of a task. If you call ``bitbake-diffsigs`` with just one file, the command behaves like
@@ -356,8 +359,12 @@ BitBake command-line options:: .. note:: Two common values for `SIGNATURE_HANDLER` are "none" and "printdiff", which - dump only the signature or compare the dumped signature with the cached one, - respectively. + dump only the signature or compare the dumped signature with the most recent one, + respectively. "printdiff" will try to establish the most recent + signature match it can (e.g. in the sstate cache) and then + compare the matched signatures to determine the stamps and delta + where these two stamp trees diverge. This can be used to determine why + tasks need to be re-run in situations where that is not expected. Using BitBake with either of these options causes BitBake to dump out ``sigdata`` files in the ``stamps`` directory for every task it would
Signature · 1 line
2.39.2
PATCH 2/3 sdk-manual: correctly describe separate build-sysroots tasks in direct sdk workflows
They were separated in
https://git.yoctoproject.org/poky/commit/?id=63e53fb8b60d38315015844bd3357fa1649cd639
--- documentation/sdk-manual/extensible.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
documentation/sdk-manual/extensible.rst +6 -2
@@ -76,7 +76,7 @@ Setting up the Extensible SDK environment directly in a Yocto build $ bitbake meta-ide-support $ bitbake -c populate_sysroot gtk+3 # or any other target or native item that the application developer would need - $ bitbake build-sysroots + $ bitbake build-sysroots -c build_native_sysroot && bitbake build-sysroots -c build_target_sysroot Setting up the Extensible SDK from a standalone installer ---------------------------------------------------------
@@ -1507,8 +1507,12 @@ In this scenario, the Yocto build tooling, e.g. ``bitbake`` is directly accessible to build additional items, and it can simply be executed directly:: + $ bitbake curl-native + # Add newly built native items to native sysroot + $ bitbake build-sysroots -c build_native_sysroot $ bitbake mesa - $ bitbake build-sysroots + # Add newly built target items to target sysroot + $ bitbake build-sysroots -c build_target_sysroot When using a standalone installer for the Extensible SDK --------------------------------------------------------
Signature · 1 line
2.39.2
Re: [docs] [PATCH 2/3] sdk-manual: correctly describe separate build-sysroots tasks in direct sdk workflows
Hi Alex,
Quoted 25 lines · Alexander Kanavin
They were separated in
https://git.yoctoproject.org/poky/commit/?id=63e53fb8b60d38315015844bd3357fa1649cd639Signed-off-by Alexander Kanavin <[email protected]>--- documentation/sdk-manual/extensible.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)documentation/sdk-manual/extensible.rst +1
-1@@ -76,7 +76,7 @@ Setting up the Extensible SDK environment directly in a Yocto build $ bitbake meta-ide-support $ bitbake -c populate_sysroot gtk+3 # or any other target or native item that the application developer would need - $ bitbake build-sysroots + $ bitbake build-sysroots -c build_native_sysroot && bitbake build-sysroots -c build_target_sysroot Setting up the Extensible SDK from a standalone installer ---------------------------------------------------------@@ -1507,8 +1507,12 @@ In this scenario, the Yocto build tooling, e.g. ``bitbake`` is directly accessible to build additional items, and it can simply be executed directly::
documentation/sdk-manual/extensible.rst In this scenario, the Yocto build tooling, e.g. ``bitbake`` · line 1518
Quoted 10 lines
documentation/sdk-manual/extensible.rst +5
-1+ $ bitbake curl-native + # Add newly built native items to native sysroot + $ bitbake build-sysroots -c build_native_sysroot $ bitbake mesa - $ bitbake build-sysroots + # Add newly built target items to target sysroot + $ bitbake build-sysroots -c build_target_sysroot When using a standalone installer for the Extensible SDK --------------------------------------------------------
Thanks for the patch!
Merged into master-next.
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 3/3 dev/ref-manual: document conf-summary.txt together with conf-notes.txt
In reply to Alexander Kanavin--- .../dev-manual/custom-template-configuration-directory.rst | 6 +++--- documentation/ref-manual/structure.rst | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-)
documentation/dev-manual/custom-template-configuration-directory.rst +3 -3
@@ -42,11 +42,11 @@ would be:: TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf/templates/default} If you look at a configuration template directory, you will -see the ``bblayers.conf.sample``, ``local.conf.sample``, and +see the ``bblayers.conf.sample``, ``local.conf.sample``, ``conf-summary.txt`` and ``conf-notes.txt`` files. The build system uses these files to form the respective ``bblayers.conf`` file, ``local.conf`` file, and show -users a note about the build they're setting up +users usage information about the build they're setting up when running the ``oe-init-build-env`` setup script. These can be edited further if needed to improve or change the build configurations -available to the users. +available to the users, and provide useful summaries and detailed usage notes.
documentation/ref-manual/structure.rst +4 -3
@@ -172,10 +172,11 @@ targets to build. Here is an example:: You can also run generated QEMU images with a command like 'runqemu qemux86-64' The default output of the ``oe-init-build-env`` script is from the -``conf-notes.txt`` file, which is found in the ``meta-poky`` directory +``conf-summary.txt`` and ``conf-notes.txt`` files, which are found in the ``meta-poky`` directory within the :term:`Source Directory`. If you design a -custom distribution, you can include your own version of this -configuration file to mention the targets defined by your distribution. +custom distribution, you can include your own versions of these +configuration files where you can provide a brief summary and detailed useage +notes, such as a list of the targets defined by your distribution. See the ":ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`" section in the Yocto Project Development Tasks Manual for more
Signature · 1 line
2.39.2
Re: [docs] [PATCH 3/3] dev/ref-manual: document conf-summary.txt together with conf-notes.txt
Hi again Alex
Thanks for the update!
Quoted 30 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- .../dev-manual/custom-template-configuration-directory.rst | 6 +++--- documentation/ref-manual/structure.rst | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-)documentation/dev-manual/custom-template-configuration-directory.rst +3
-3@@ -42,11 +42,11 @@ would be:: TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf/templates/default} If you look at a configuration template directory, you will -see the ``bblayers.conf.sample``, ``local.conf.sample``, and +see the ``bblayers.conf.sample``, ``local.conf.sample``, ``conf-summary.txt`` and ``conf-notes.txt`` files. The build system uses these files to form the respective ``bblayers.conf`` file, ``local.conf`` file, and show -users a note about the build they're setting up +users usage information about the build they're setting up when running the ``oe-init-build-env`` setup script. These can be edited further if needed to improve or change the build configurations -available to the users. +available to the users, and provide useful summaries and detailed usage notes.documentation/ref-manual/structure.rst +0
-0
documentation/ref-manual/structure.rst targets to build. Here is an example:: · line 178
Quoted 10 lines
documentation/ref-manual/structure.rst +3
-3@@ -172,10 +172,11 @@ targets to build. Here is an example:: You can also run generated QEMU images with a command like 'runqemu qemux86-64' The default output of the ``oe-init-build-env`` script is from the -``conf-notes.txt`` file, which is found in the ``meta-poky`` directory +``conf-summary.txt`` and ``conf-notes.txt`` files, which are found in the ``meta-poky`` directory within the :term:`Source Directory`. If you design a -custom distribution, you can include your own version of this -configuration file to mention the targets defined by your distribution. +custom distribution, you can include your own versions of these +configuration files where you can provide a brief summary and detailed useage
s/useage/usage/
I fixed that.
Merged into "master-next"
Thanks again
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Alex
Many thanks for the patch!
Quoted 14 lines · Alexander Kanavin
Try to particularly emphasize that it can be used to find out why something rebuilds when it shouldn't.
Signed-off-by Alexander Kanavin <[email protected]>--- documentation/dev-manual/building.rst | 7 +++---- documentation/dev-manual/debugging.rst | 13 ++++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-)documentation/dev-manual/building.rst +0
-0
documentation/dev-manual/building.rst your tunings to best consider build times and package feed maintenance. · line 778
Quoted 8 lines
documentation/dev-manual/building.rst +1
-4@@ -775,10 +775,9 @@ your tunings to best consider build times and package feed maintenance. in the script for information on how to use the tool. - *BitBake's "-S printdiff" Option:* Using this option causes - BitBake to try to establish the closest signature match it can - (e.g. in the shared state cache) and then run ``bitbake-diffsigs`` - over the matches to determine the stamps and delta where these two - stamp trees diverge. + BitBake to try to establish the most recent signature match it can
s/it can/it can find/ ?
IMHO it would clarify the sentence.
If you agree, I can make the change directly, no need for a new submission. Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 9 lines · Michael Opdenacker
documentation/dev-manual/building.rst your tunings to best consider build times and package feed maintenance. · line 778
Quoted 4 lines
documentation/dev-manual/building.rst +1
-3- (e.g. in the shared state cache) and then run ``bitbake-diffsigs`` - over the matches to determine the stamps and delta where these two - stamp trees diverge. + BitBake to try to establish the most recent signature match it cans/it can/it can find/ ?
IMHO it would clarify the sentence.
If you agree, I can make the change directly, no need for a new submission.
I think 'it can' can simply be dropped from both paragraphs without loss of meaning?
Alex
Quoted 7 lines · Alexander Kanavin
Quoted 5 lines · Michael Opdenacker
Quoted 4 lines
documentation/dev-manual/building.rst +1
-3- (e.g. in the shared state cache) and then run ``bitbake-diffsigs`` - over the matches to determine the stamps and delta where these two - stamp trees diverge. + BitBake to try to establish the most recent signature match it can
Quoted 5 lines
Quoted 3 lines
s/it can/it can find/ ?
IMHO it would clarify the sentence.
If you agree, I can make the change directly, no need for a new submission.I think 'it can' can simply be dropped from both paragraphs without loss of meaning?
Oh right, that's the simplest solution indeed!
Done. Merged into "master-next". Thanks again.
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com