diff options
author | Julien Stephan <jstephan@baylibre.com> | 2024-11-06 14:54:46 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-11 06:19:19 -0800 |
commit | 51bd4260cb9592af4b63059a30f4f977e0a2fad6 (patch) | |
tree | a84afee054e709e30a8bc778525effcf353a8821 /documentation | |
parent | b7940698957f816332e8e583a904115373a07724 (diff) | |
download | poky-51bd4260cb9592af4b63059a30f4f977e0a2fad6.tar.gz |
ref-manual: variables: add SIGGEN_LOCKEDSIGS* variables
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.
(From yocto-docs rev: 1f61cd4a3e9c5bf75910559ddf2372f921c2a4ef)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Reviewed-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 32e3995bed2836f549866ec3b8ad254bdda37dbf)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/variables.rst | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index b644a0a787..e63a749950 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -7373,6 +7373,50 @@ system and gives an overview of their function and contents. | |||
7373 | might break at runtime if the interface of the recipe was changed | 7373 | might break at runtime if the interface of the recipe was changed |
7374 | after the other had been built. | 7374 | after the other had been built. |
7375 | 7375 | ||
7376 | :term:`SIGGEN_LOCKEDSIGS` | ||
7377 | The list of locked tasks, with the form:: | ||
7378 | |||
7379 | SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>" | ||
7380 | |||
7381 | If ``<signature>`` exists for the specified ``<task>`` and ``<package>`` | ||
7382 | in the sstate cache, BitBake will use the cached output instead of | ||
7383 | rebuilding the ``<task>``. If it does not exist, BitBake will build the | ||
7384 | ``<task>`` and the sstate cache will be used next time. | ||
7385 | |||
7386 | Example:: | ||
7387 | |||
7388 | SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0" | ||
7389 | |||
7390 | You can obtain the signature of all the tasks for the recipe ``bc`` using:: | ||
7391 | |||
7392 | bitbake -S none bc | ||
7393 | |||
7394 | Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for | ||
7395 | files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``. | ||
7396 | |||
7397 | :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK` | ||
7398 | Specifies the debug level of task signature check. 3 levels are supported: | ||
7399 | |||
7400 | * ``info``: displays a "Note" message to remind the user that a task is locked | ||
7401 | and the current signature matches the locked one. | ||
7402 | * ``warn``: displays a "Warning" message if a task is locked and the current | ||
7403 | signature does not match the locked one. | ||
7404 | * ``error``: same as warn but displays an "Error" message and aborts. | ||
7405 | |||
7406 | :term:`SIGGEN_LOCKEDSIGS_TYPES` | ||
7407 | Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used | ||
7408 | for architecture specific locks. A common value for | ||
7409 | :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``:: | ||
7410 | |||
7411 | SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}" | ||
7412 | |||
7413 | SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0" | ||
7414 | SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61" | ||
7415 | |||
7416 | Here, the ``do_compile`` task from ``bc`` will be locked only for | ||
7417 | ``core2-64`` and ``cortexa57`` but not for other architectures such as | ||
7418 | ``mips32r2``. | ||
7419 | |||
7376 | :term:`SITEINFO_BITS` | 7420 | :term:`SITEINFO_BITS` |
7377 | Specifies the number of bits for the target system CPU. The value | 7421 | Specifies the number of bits for the target system CPU. The value |
7378 | should be either "32" or "64". | 7422 | should be either "32" or "64". |