From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Julien Stephan" <jstephan@baylibre.com>, <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH 4/5] ref-manual: variables: add SIGGEN_LOCKEDSIGS* variables
Date: Mon, 04 Nov 2024 14:32:35 +0100 [thread overview]
Message-ID: <D5DFKMTI5D6B.3I1ZUOVA7YSR3@bootlin.com> (raw)
In-Reply-To: <20241031-add-bblock-documentation-v1-4-32b89093bbda@baylibre.com>
Hi Julien,
On top of Ulrich's comments, here are my suggestions/corrections:
On Thu Oct 31, 2024 at 5:56 PM CET, Julien Stephan wrote:
> Variables SIGGEN_LOCKEDSIGS, SIGGEN_LOCKEDSIGS_TASKSIG_CHECK and
> SIGGEN_LOCKEDSIGS_TYPES are used to lock specific tasks to specific
> signatures. They are used by bitbake -S <lockedsigs> and bblock, so add
> documentation for them.
>
> Signed-off-by: Julien Stephan <jstephan@baylibre.com>
> ---
> documentation/ref-manual/variables.rst | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 07ed143ac5606617c720301ac6621355a341f90a..8cfb978e795e43e3ef25f3e18e11baf7c2a28d54 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7880,6 +7880,39 @@ system and gives an overview of their function and contents.
> might break at runtime if the interface of the recipe was changed
> after the other had been built.
>
> + :term:`SIGGEN_LOCKEDSIGS`
> + The list of locked taks, with the form::
> +
> + SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
> +
> + If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
How would I find such a signature by hand? Maybe worth explaining it here?
> + in sstate, BitBake will use the cached output instead of rebuilding the
> + ``<task>``. If it does not exist, BitBake will build the ``<task>`` and
> + the sstate will be used next time.
Could you give a real-life example of that at the end here?
> + :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
> + Specifies the debug level of task signature check. 3 levels are supported:
> +
> + * info: displays a "Note" message to remind user that a task is locked
> + and current signature matches the locked one.
> + * warn: displays a "Warning" message if a task is locked and current
> + signature does not match the locked one.
> + * error: same as warn but displays an “Error” message and abort.
For "info", "warn" and "error" could you enclose that in double ticks? ``info``
and so on.
> + :term:`SIGGEN_LOCKEDSIGS_TYPES`
> + Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
> + for achitecture specific lock. A common value for :term:`SIGGEN_LOCKEDSIGS_TYPES`
s/achitecture/architecture/
By "mainly", do you mean "only" or could there by anything other than
architectures covered by the variable?
> + is ``${PACKAGE_ARCHS}``::
> +
> + SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
> +
> + SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:abcd"
> + SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:efgh"
Maybe real hashes would be better here
> +
> + Here, the ``do_compile`` task from ``bc`` will be locked only for
> + ``x86-64`` and ``arm64`` but not for other architectures such as
Wouldn't it be locked for ``core2-64`` and ``cortexa57`` more specifically? I
might misunderstand something here. :)
> + ``qemumips``.
> +
> :term:`SITEINFO_BITS`
> Specifies the number of bits for the target system CPU. The value
> should be either "32" or "64".
Also I could suggest splitting the series in patches for sphinx-lint/vale and
patches for documentation of variables/bblock.
Thanks!
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-11-04 13:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 16:56 [PATCH 0/5] Add bblock documentation Julien Stephan
2024-10-31 16:56 ` [PATCH 1/5] README: add instruction to run Vale on a subset Julien Stephan
2024-11-04 11:30 ` [docs] " Antonin Godard
2024-10-31 16:56 ` [PATCH 2/5] documentation: Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lint Julien Stephan
2024-11-04 11:30 ` [docs] " Antonin Godard
2024-10-31 16:56 ` [PATCH 3/5] styles: vocabularies: Yocto: add sstate Julien Stephan
2024-10-31 16:56 ` [PATCH 4/5] ref-manual: variables: add SIGGEN_LOCKEDSIGS* variables Julien Stephan
2024-11-03 19:37 ` [docs] " Ulrich Ölmann
2024-11-04 13:32 ` Antonin Godard [this message]
2024-11-04 14:35 ` Julien Stephan
2024-10-31 16:56 ` [PATCH 5/5] dev-manual: add bblock documentation Julien Stephan
2024-11-03 18:49 ` [docs] " Ulrich Ölmann
2024-11-04 13:32 ` Antonin Godard
2024-11-04 15:44 ` Julien Stephan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D5DFKMTI5D6B.3I1ZUOVA7YSR3@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=jstephan@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox