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