mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
bitbake: doc: bitbake-user-manual: style and completeness corrections
Fix encountered style issues in the fetching section. Mention that "subdir" and fetcher specific parameters can stack-up. (Bitbake rev: 5cb35734c7056aa183bc15d454e125b75267449b) Signed-off-by: Adam Blank <adam.blank.g@gmail.com> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b03a897c2c
commit
36034f846a
@@ -159,21 +159,22 @@ URLs except Git URLs, BitBake uses the common ``unpack`` method.
|
|||||||
A number of parameters exist that you can specify within the URL to
|
A number of parameters exist that you can specify within the URL to
|
||||||
govern the behavior of the unpack stage:
|
govern the behavior of the unpack stage:
|
||||||
|
|
||||||
- *unpack:* Controls whether the URL components are unpacked. If set to
|
- *"unpack":* Controls whether the URL components are unpacked. If set to
|
||||||
"1", which is the default, the components are unpacked. If set to
|
"1", which is the default, the components are unpacked. If set to
|
||||||
"0", the unpack stage leaves the file alone. This parameter is useful
|
"0", the unpack stage leaves the file alone. This parameter is useful
|
||||||
when you want an archive to be copied in and not be unpacked.
|
when you want an archive to be copied in and not be unpacked.
|
||||||
|
|
||||||
- *dos:* Applies to ``.zip`` and ``.jar`` files and specifies whether
|
- *"dos":* Applies to ``.zip`` and ``.jar`` files and specifies whether
|
||||||
to use DOS line ending conversion on text files.
|
to use DOS line ending conversion on text files.
|
||||||
|
|
||||||
- *striplevel:* Strip specified number of leading components (levels)
|
- *"striplevel":* Strip specified number of leading components (levels)
|
||||||
from file names on extraction
|
from file names on extraction.
|
||||||
|
|
||||||
- *subdir:* Unpacks the specific URL to the specified subdirectory
|
- *"subdir":* Unpacks the specific URL to the specified subdirectory
|
||||||
within the root directory.
|
within the specified root directory. This path can be further modified
|
||||||
|
by fetcher specific parameters.
|
||||||
|
|
||||||
- *name:* Assigns a name to a given component of the :term:`SRC_URI`.
|
- *"name":* Assigns a name to a given component of the :term:`SRC_URI`.
|
||||||
This component is later referenced by this name when specifying its
|
This component is later referenced by this name when specifying its
|
||||||
:term:`SRCREV` or :term:`SRC_URI` checksum, or to correctly place its
|
:term:`SRCREV` or :term:`SRC_URI` checksum, or to correctly place its
|
||||||
revision in the package version string with aid of :term:`SRCREV_FORMAT`.
|
revision in the package version string with aid of :term:`SRCREV_FORMAT`.
|
||||||
@@ -251,21 +252,19 @@ Some example URLs are as follows::
|
|||||||
introduce ambiguity when parsing URLs that also contain semi-colons,
|
introduce ambiguity when parsing URLs that also contain semi-colons,
|
||||||
for example::
|
for example::
|
||||||
|
|
||||||
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
|
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
|
||||||
|
|
||||||
|
|
||||||
Such URLs should should be modified by replacing semi-colons with '&'
|
Such URLs should should be modified by replacing semi-colons with '&'
|
||||||
characters::
|
characters::
|
||||||
|
|
||||||
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47"
|
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47"
|
||||||
|
|
||||||
|
|
||||||
In most cases this should work. Treating semi-colons and '&' in
|
In most cases this should work. Treating semi-colons and '&' in
|
||||||
queries identically is recommended by the World Wide Web Consortium
|
queries identically is recommended by the World Wide Web Consortium
|
||||||
(W3C). Note that due to the nature of the URL, you may have to
|
(W3C). Note that due to the nature of the URL, you may have to
|
||||||
specify the name of the downloaded file as well::
|
specify the name of the downloaded file as well::
|
||||||
|
|
||||||
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2"
|
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2"
|
||||||
|
|
||||||
|
|
||||||
.. _cvs-fetcher:
|
.. _cvs-fetcher:
|
||||||
@@ -403,16 +402,16 @@ This fetcher supports the following parameters:
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
When ``protocol`` is "ssh", the URL expected in :term:`SRC_URI` differs
|
When ``protocol`` is "ssh", the URL expected in :term:`SRC_URI` differs
|
||||||
from the one that is typically passed to ``git clone`` command and provided
|
from the one that is typically passed to ``git clone`` command and provided
|
||||||
by the Git server to fetch from. For example, the URL returned by GitLab
|
by the Git server to fetch from. For example, the URL returned by GitLab
|
||||||
server for ``mesa`` when cloning over SSH is
|
server for ``mesa`` when cloning over SSH is
|
||||||
``git@gitlab.freedesktop.org:mesa/mesa.git``, however the expected URL in
|
``git@gitlab.freedesktop.org:mesa/mesa.git``, however the expected URL in
|
||||||
:term:`SRC_URI` is the following::
|
:term:`SRC_URI` is the following::
|
||||||
|
|
||||||
SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;branch=main;protocol=ssh;..."
|
SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;branch=main;protocol=ssh;..."
|
||||||
|
|
||||||
Note the ``:`` character changed for a ``/`` before the path to the project.
|
Note the ``:`` character changed for a ``/`` before the path to the project.
|
||||||
|
|
||||||
- *"nocheckout":* Tells the fetcher to not checkout source code when
|
- *"nocheckout":* Tells the fetcher to not checkout source code when
|
||||||
unpacking when set to "1". Set this option for the URL where there is
|
unpacking when set to "1". Set this option for the URL where there is
|
||||||
@@ -530,10 +529,10 @@ The fetcher uses the ``rcleartool`` or
|
|||||||
|
|
||||||
Following are options for the :term:`SRC_URI` statement:
|
Following are options for the :term:`SRC_URI` statement:
|
||||||
|
|
||||||
- *vob*: The name, which must include the prepending "/" character,
|
- *"vob":* The name, which must include the prepending "/" character,
|
||||||
of the ClearCase VOB. This option is required.
|
of the ClearCase VOB. This option is required.
|
||||||
|
|
||||||
- *module*: The module, which must include the prepending "/"
|
- *"module":* The module, which must include the prepending "/"
|
||||||
character, in the selected VOB.
|
character, in the selected VOB.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
@@ -545,7 +544,7 @@ Following are options for the :term:`SRC_URI` statement:
|
|||||||
|
|
||||||
load /example_vob/example_module
|
load /example_vob/example_module
|
||||||
|
|
||||||
- *proto*: The protocol, which can be either ``http`` or ``https``.
|
- *"proto":* The protocol, which can be either ``http`` or ``https``.
|
||||||
|
|
||||||
By default, the fetcher creates a configuration specification. If you
|
By default, the fetcher creates a configuration specification. If you
|
||||||
want this specification written to an area other than the default, use
|
want this specification written to an area other than the default, use
|
||||||
@@ -554,9 +553,9 @@ the specification is written.
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
the SRCREV loses its functionality if you specify this variable. However,
|
the :term:`SRCREV` loses its functionality if you specify this variable.
|
||||||
SRCREV is still used to label the archive after a fetch even though it does
|
However, :term:`SRCREV` is still used to label the archive after a fetch even
|
||||||
not define what is fetched.
|
though it does not define what is fetched.
|
||||||
|
|
||||||
Here are a couple of other behaviors worth mentioning:
|
Here are a couple of other behaviors worth mentioning:
|
||||||
|
|
||||||
@@ -618,14 +617,14 @@ the above example, the content of ``example-depot/main/source/`` will be placed
|
|||||||
in ``${UNPACKDIR}/p4``. For situations where preserving parts of the remote depot
|
in ``${UNPACKDIR}/p4``. For situations where preserving parts of the remote depot
|
||||||
paths locally is desirable, the fetcher supports two parameters:
|
paths locally is desirable, the fetcher supports two parameters:
|
||||||
|
|
||||||
- *"module":*
|
- *"module":*
|
||||||
The top-level depot location or directory to fetch. The value of this
|
The top-level depot location or directory to fetch. The value of this
|
||||||
parameter can also point to a single file within the depot, in which case
|
parameter can also point to a single file within the depot, in which case
|
||||||
the local file path will include the module path.
|
the local file path will include the module path.
|
||||||
- *"remotepath":*
|
- *"remotepath":*
|
||||||
When used with the value "``keep``", the fetcher will mirror the full depot
|
When used with the value "``keep``", the fetcher will mirror the full depot
|
||||||
paths locally for the specified location, even in combination with the
|
paths locally for the specified location, even in combination with the
|
||||||
``module`` parameter.
|
``module`` parameter.
|
||||||
|
|
||||||
Here is an example use of the the ``module`` parameter::
|
Here is an example use of the the ``module`` parameter::
|
||||||
|
|
||||||
|
|||||||
@@ -1644,7 +1644,8 @@ overview of their function and contents.
|
|||||||
- ``subdir``: Places the file (or extracts its contents) into the
|
- ``subdir``: Places the file (or extracts its contents) into the
|
||||||
specified subdirectory. This option is useful for unusual tarballs
|
specified subdirectory. This option is useful for unusual tarballs
|
||||||
or other archives that do not have their files already in a
|
or other archives that do not have their files already in a
|
||||||
subdirectory within the archive.
|
subdirectory within the archive. This path can be further modified
|
||||||
|
by fetcher specific parameters.
|
||||||
|
|
||||||
- ``subpath``: Limits the checkout to a specific subpath of the
|
- ``subpath``: Limits the checkout to a specific subpath of the
|
||||||
tree when using the Git fetcher is used.
|
tree when using the Git fetcher is used.
|
||||||
|
|||||||
Reference in New Issue
Block a user