diff options
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 |