summaryrefslogtreecommitdiffstats
path: root/bitbake/doc
diff options
context:
space:
mode:
authorAdam Blank <adam.blank.g@gmail.com>2025-10-22 19:59:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-03 17:43:31 +0000
commit36034f846a59b1fd09f07e839282e938866fc008 (patch)
treef75a31ddc6eb2134bd5887da89b168058abf0774 /bitbake/doc
parentb03a897c2c91776d97e801a228d0e92e14cddd32 (diff)
downloadpoky-36034f846a59b1fd09f07e839282e938866fc008.tar.gz
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>
Diffstat (limited to 'bitbake/doc')
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst67
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst3
2 files changed, 35 insertions, 35 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
index 73cb1aafd2..2b06c1d471 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
@@ -159,21 +159,22 @@ URLs except Git URLs, BitBake uses the common ``unpack`` method.
159A number of parameters exist that you can specify within the URL to 159A number of parameters exist that you can specify within the URL to
160govern the behavior of the unpack stage: 160govern the behavior of the unpack stage:
161 161
162- *unpack:* Controls whether the URL components are unpacked. If set to 162- *"unpack":* Controls whether the URL components are unpacked. If set to
163 "1", which is the default, the components are unpacked. If set to 163 "1", which is the default, the components are unpacked. If set to
164 "0", the unpack stage leaves the file alone. This parameter is useful 164 "0", the unpack stage leaves the file alone. This parameter is useful
165 when you want an archive to be copied in and not be unpacked. 165 when you want an archive to be copied in and not be unpacked.
166 166
167- *dos:* Applies to ``.zip`` and ``.jar`` files and specifies whether 167- *"dos":* Applies to ``.zip`` and ``.jar`` files and specifies whether
168 to use DOS line ending conversion on text files. 168 to use DOS line ending conversion on text files.
169 169
170- *striplevel:* Strip specified number of leading components (levels) 170- *"striplevel":* Strip specified number of leading components (levels)
171 from file names on extraction 171 from file names on extraction.
172 172
173- *subdir:* Unpacks the specific URL to the specified subdirectory 173- *"subdir":* Unpacks the specific URL to the specified subdirectory
174 within the root directory. 174 within the specified root directory. This path can be further modified
175 by fetcher specific parameters.
175 176
176- *name:* Assigns a name to a given component of the :term:`SRC_URI`. 177- *"name":* Assigns a name to a given component of the :term:`SRC_URI`.
177 This component is later referenced by this name when specifying its 178 This component is later referenced by this name when specifying its
178 :term:`SRCREV` or :term:`SRC_URI` checksum, or to correctly place its 179 :term:`SRCREV` or :term:`SRC_URI` checksum, or to correctly place its
179 revision in the package version string with aid of :term:`SRCREV_FORMAT`. 180 revision in the package version string with aid of :term:`SRCREV_FORMAT`.
@@ -251,21 +252,19 @@ Some example URLs are as follows::
251 introduce ambiguity when parsing URLs that also contain semi-colons, 252 introduce ambiguity when parsing URLs that also contain semi-colons,
252 for example:: 253 for example::
253 254
254 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47" 255 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
255
256 256
257 Such URLs should should be modified by replacing semi-colons with '&' 257 Such URLs should should be modified by replacing semi-colons with '&'
258 characters:: 258 characters::
259 259
260 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47" 260 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47"
261
262 261
263 In most cases this should work. Treating semi-colons and '&' in 262 In most cases this should work. Treating semi-colons and '&' in
264 queries identically is recommended by the World Wide Web Consortium 263 queries identically is recommended by the World Wide Web Consortium
265 (W3C). Note that due to the nature of the URL, you may have to 264 (W3C). Note that due to the nature of the URL, you may have to
266 specify the name of the downloaded file as well:: 265 specify the name of the downloaded file as well::
267 266
268 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2" 267 SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2"
269 268
270 269
271.. _cvs-fetcher: 270.. _cvs-fetcher:
@@ -403,16 +402,16 @@ This fetcher supports the following parameters:
403 402
404 .. note:: 403 .. note::
405 404
406 When ``protocol`` is "ssh", the URL expected in :term:`SRC_URI` differs 405 When ``protocol`` is "ssh", the URL expected in :term:`SRC_URI` differs
407 from the one that is typically passed to ``git clone`` command and provided 406 from the one that is typically passed to ``git clone`` command and provided
408 by the Git server to fetch from. For example, the URL returned by GitLab 407 by the Git server to fetch from. For example, the URL returned by GitLab
409 server for ``mesa`` when cloning over SSH is 408 server for ``mesa`` when cloning over SSH is
410 ``git@gitlab.freedesktop.org:mesa/mesa.git``, however the expected URL in 409 ``git@gitlab.freedesktop.org:mesa/mesa.git``, however the expected URL in
411 :term:`SRC_URI` is the following:: 410 :term:`SRC_URI` is the following::
412 411
413 SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;branch=main;protocol=ssh;..." 412 SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;branch=main;protocol=ssh;..."
414 413
415 Note the ``:`` character changed for a ``/`` before the path to the project. 414 Note the ``:`` character changed for a ``/`` before the path to the project.
416 415
417- *"nocheckout":* Tells the fetcher to not checkout source code when 416- *"nocheckout":* Tells the fetcher to not checkout source code when
418 unpacking when set to "1". Set this option for the URL where there is 417 unpacking when set to "1". Set this option for the URL where there is
@@ -530,10 +529,10 @@ The fetcher uses the ``rcleartool`` or
530 529
531Following are options for the :term:`SRC_URI` statement: 530Following are options for the :term:`SRC_URI` statement:
532 531
533- *vob*: The name, which must include the prepending "/" character, 532- *"vob":* The name, which must include the prepending "/" character,
534 of the ClearCase VOB. This option is required. 533 of the ClearCase VOB. This option is required.
535 534
536- *module*: The module, which must include the prepending "/" 535- *"module":* The module, which must include the prepending "/"
537 character, in the selected VOB. 536 character, in the selected VOB.
538 537
539 .. note:: 538 .. note::
@@ -545,7 +544,7 @@ Following are options for the :term:`SRC_URI` statement:
545 544
546 load /example_vob/example_module 545 load /example_vob/example_module
547 546
548- *proto*: The protocol, which can be either ``http`` or ``https``. 547- *"proto":* The protocol, which can be either ``http`` or ``https``.
549 548
550By default, the fetcher creates a configuration specification. If you 549By default, the fetcher creates a configuration specification. If you
551want this specification written to an area other than the default, use 550want this specification written to an area other than the default, use
@@ -554,9 +553,9 @@ the specification is written.
554 553
555.. note:: 554.. note::
556 555
557 the SRCREV loses its functionality if you specify this variable. However, 556 the :term:`SRCREV` loses its functionality if you specify this variable.
558 SRCREV is still used to label the archive after a fetch even though it does 557 However, :term:`SRCREV` is still used to label the archive after a fetch even
559 not define what is fetched. 558 though it does not define what is fetched.
560 559
561Here are a couple of other behaviors worth mentioning: 560Here are a couple of other behaviors worth mentioning:
562 561
@@ -618,14 +617,14 @@ the above example, the content of ``example-depot/main/source/`` will be placed
618in ``${UNPACKDIR}/p4``. For situations where preserving parts of the remote depot 617in ``${UNPACKDIR}/p4``. For situations where preserving parts of the remote depot
619paths locally is desirable, the fetcher supports two parameters: 618paths locally is desirable, the fetcher supports two parameters:
620 619
621- *"module":* 620- *"module":*
622 The top-level depot location or directory to fetch. The value of this 621 The top-level depot location or directory to fetch. The value of this
623 parameter can also point to a single file within the depot, in which case 622 parameter can also point to a single file within the depot, in which case
624 the local file path will include the module path. 623 the local file path will include the module path.
625- *"remotepath":* 624- *"remotepath":*
626 When used with the value "``keep``", the fetcher will mirror the full depot 625 When used with the value "``keep``", the fetcher will mirror the full depot
627 paths locally for the specified location, even in combination with the 626 paths locally for the specified location, even in combination with the
628 ``module`` parameter. 627 ``module`` parameter.
629 628
630Here is an example use of the the ``module`` parameter:: 629Here is an example use of the the ``module`` parameter::
631 630
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
index e112aced1b..d47a99210a 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
@@ -1644,7 +1644,8 @@ overview of their function and contents.
1644 - ``subdir``: Places the file (or extracts its contents) into the 1644 - ``subdir``: Places the file (or extracts its contents) into the
1645 specified subdirectory. This option is useful for unusual tarballs 1645 specified subdirectory. This option is useful for unusual tarballs
1646 or other archives that do not have their files already in a 1646 or other archives that do not have their files already in a
1647 subdirectory within the archive. 1647 subdirectory within the archive. This path can be further modified
1648 by fetcher specific parameters.
1648 1649
1649 - ``subpath``: Limits the checkout to a specific subpath of the 1650 - ``subpath``: Limits the checkout to a specific subpath of the
1650 tree when using the Git fetcher is used. 1651 tree when using the Git fetcher is used.