summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-10-16 15:31:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-04 10:55:01 +0000
commitb32c77e80781cd9202443733bf17de7896326668 (patch)
tree3b4a0d039e2cd4021abf1c653ceb978a93a25ecd /documentation
parenta2274632af8769d5d8e66b99c8085b661d4ebb64 (diff)
downloadpoky-b32c77e80781cd9202443733bf17de7896326668.tar.gz
ref-variables: Given example for naming sources
Adds an example to SRC_URI that explains how to name sources in SRC_URI and how to associate SRCREVs and checksums with the names (From yocto-docs rev: 15d16cced2cccfc120975e5687c45b5aab3dd6eb) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 900af0addab7d6ea465922957f881a13012429ed) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/ref-variables.rst14
1 files changed, 12 insertions, 2 deletions
diff --git a/documentation/ref-manual/ref-variables.rst b/documentation/ref-manual/ref-variables.rst
index 60ee1d819b..e9369b4777 100644
--- a/documentation/ref-manual/ref-variables.rst
+++ b/documentation/ref-manual/ref-variables.rst
@@ -7037,8 +7037,18 @@ system and gives an overview of their function and contents.
7037 tree when using the Git fetcher is used. 7037 tree when using the Git fetcher is used.
7038 7038
7039 - ``name`` - Specifies a name to be used for association with 7039 - ``name`` - Specifies a name to be used for association with
7040 ``SRC_URI`` checksums when you have more than one file specified 7040 ``SRC_URI`` checksums or :term:`SRCREV` when you have more than one
7041 in ``SRC_URI``. 7041 file or git repository specified in ``SRC_URI``. For example:
7042 ::
7043
7044 SRC_URI = "git://example.com/foo.git;name=first \
7045 git://example.com/bar.git;name=second \
7046 http://example.com/file.tar.gz;name=third"
7047
7048 SRCREV_first = "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
7049 SRCREV_second = "e242ed3bffccdf271b7fbaf34ed72d089537b42f"
7050 SRC_URI[third.sha256sum] = "13550350a8681c84c861aac2e5b440161c2b33a3e4f302ac680ca5b686de48de"
7051
7042 7052
7043 - ``downloadfilename`` - Specifies the filename used when storing 7053 - ``downloadfilename`` - Specifies the filename used when storing
7044 the downloaded file. 7054 the downloaded file.