mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
ref-manual/variables.rst: improve the PKGV documentation
It may be confusing for users that source control information is not present in the BitBake environment. Document it as a warning block. (From yocto-docs rev: 39967b9cc87cf216c4658598806fd7a68db5053a) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
39cbc37918
commit
15a7d7b881
|
@ -7051,6 +7051,23 @@ system and gives an overview of their function and contents.
|
||||||
The version of the package(s) built by the recipe. By default,
|
The version of the package(s) built by the recipe. By default,
|
||||||
:term:`PKGV` is set to :term:`PV`.
|
:term:`PKGV` is set to :term:`PV`.
|
||||||
|
|
||||||
|
If :term:`PV` contains the ``+`` sign, source control information will be
|
||||||
|
included in :term:`PKGV` later in the packaging phase. For more
|
||||||
|
information, see the :doc:`/dev-manual/external-scm` section of the Yocto
|
||||||
|
Project Development Tasks Manual.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Since source control information is included in a late stage by the
|
||||||
|
:ref:`ref-classes-package` class, it cannot be seen from the BitBake
|
||||||
|
environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
|
||||||
|
the package is built, the version information can be retrieved with
|
||||||
|
``oe-pkgdata-util package-info <package name>``. See the
|
||||||
|
:ref:`dev-manual/debugging:Viewing Package Information with
|
||||||
|
\`\`oe-pkgdata-util\`\`` section of the Yocto Project Development Tasks
|
||||||
|
Manual for more information on ``oe-pkgdata-util``.
|
||||||
|
|
||||||
|
|
||||||
:term:`PN`
|
:term:`PN`
|
||||||
This variable can have two separate functions depending on the
|
This variable can have two separate functions depending on the
|
||||||
context: a recipe name or a resulting package name.
|
context: a recipe name or a resulting package name.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user