diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-03-09 15:10:26 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-16 14:25:01 +0000 |
| commit | bafbbd53c4591b420bc9f15aa1fe1bd4e1df88bb (patch) | |
| tree | 9c9c805b7725159947dc2ccbc60ca8edbf1ed1cd /documentation/ref-manual | |
| parent | 16831cd62b393fde5b52f52371c46af38c0e6520 (diff) | |
| download | poky-bafbbd53c4591b420bc9f15aa1fe1bd4e1df88bb.tar.gz | |
docs: update examples to add branch info to git URIs
Branch information is now mandatory for git:// and gitsm:// URIs
(From yocto-docs rev: b862655d812e358dd15b06c0548a276a90666423)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
| -rw-r--r-- | documentation/ref-manual/classes.rst | 5 | ||||
| -rw-r--r-- | documentation/ref-manual/variables.rst | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index d7d86ebc46..e1e61c9c9f 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
| @@ -170,8 +170,7 @@ example use for this class. | |||
| 170 | are extracted into the subdirectory expected by the default value of | 170 | are extracted into the subdirectory expected by the default value of |
| 171 | :term:`S`:: | 171 | :term:`S`:: |
| 172 | 172 | ||
| 173 | SRC_URI = "git://example.com/downloads/somepackage.rpm;subpath=${BP}" | 173 | SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}" |
| 174 | |||
| 175 | 174 | ||
| 176 | See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for | 175 | See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for |
| 177 | more information on supported BitBake Fetchers. | 176 | more information on supported BitBake Fetchers. |
| @@ -460,7 +459,7 @@ recipe that fetches from an alternative URI (e.g. Git) instead of a | |||
| 460 | tarball. Following is an example:: | 459 | tarball. Following is an example:: |
| 461 | 460 | ||
| 462 | BBCLASSEXTEND = "devupstream:target" | 461 | BBCLASSEXTEND = "devupstream:target" |
| 463 | SRC_URI:class-devupstream = "git://git.example.com/example" | 462 | SRC_URI:class-devupstream = "git://git.example.com/example;branch=main" |
| 464 | SRCREV:class-devupstream = "abcd1234" | 463 | SRCREV:class-devupstream = "abcd1234" |
| 465 | 464 | ||
| 466 | Adding the above statements to your recipe creates a variant that has | 465 | Adding the above statements to your recipe creates a variant that has |
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index cd9eae7af2..ee77ee27af 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
| @@ -6443,7 +6443,7 @@ system and gives an overview of their function and contents. | |||
| 6443 | from the default value of :term:`S`, you must set it specifically so the | 6443 | from the default value of :term:`S`, you must set it specifically so the |
| 6444 | source can be located:: | 6444 | source can be located:: |
| 6445 | 6445 | ||
| 6446 | SRC_URI = "git://path/to/repo.git" | 6446 | SRC_URI = "git://path/to/repo.git;branch=main" |
| 6447 | S = "${WORKDIR}/git" | 6447 | S = "${WORKDIR}/git" |
| 6448 | 6448 | ||
| 6449 | :term:`SANITY_REQUIRED_UTILITIES` | 6449 | :term:`SANITY_REQUIRED_UTILITIES` |
