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/classes.rst | |
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/classes.rst')
-rw-r--r-- | documentation/ref-manual/classes.rst | 5 |
1 files changed, 2 insertions, 3 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 |