summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-10-16 15:31:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-20 11:12:07 +0100
commit9360f09e57e941e6ae5bf6f595d46529fb67220f (patch)
tree2987600eac819bed0844c3d923d1bb2413669219
parentce8ff73294afda3bc23d0a9ad96332a8034eaa8d (diff)
downloadpoky-9360f09e57e941e6ae5bf6f595d46529fb67220f.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: 900af0addab7d6ea465922957f881a13012429ed) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 c02364d08a..0603ba93c5 100644
--- a/documentation/ref-manual/ref-variables.rst
+++ b/documentation/ref-manual/ref-variables.rst
@@ -7096,8 +7096,18 @@ system and gives an overview of their function and contents.
7096 tree when using the Git fetcher is used. 7096 tree when using the Git fetcher is used.
7097 7097
7098 - ``name`` - Specifies a name to be used for association with 7098 - ``name`` - Specifies a name to be used for association with
7099 ``SRC_URI`` checksums when you have more than one file specified 7099 ``SRC_URI`` checksums or :term:`SRCREV` when you have more than one
7100 in ``SRC_URI``. 7100 file or git repository specified in ``SRC_URI``. For example:
7101 ::
7102
7103 SRC_URI = "git://example.com/foo.git;name=first \
7104 git://example.com/bar.git;name=second \
7105 http://example.com/file.tar.gz;name=third"
7106
7107 SRCREV_first = "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
7108 SRCREV_second = "e242ed3bffccdf271b7fbaf34ed72d089537b42f"
7109 SRC_URI[third.sha256sum] = "13550350a8681c84c861aac2e5b440161c2b33a3e4f302ac680ca5b686de48de"
7110
7101 7111
7102 - ``downloadfilename`` - Specifies the filename used when storing 7112 - ``downloadfilename`` - Specifies the filename used when storing
7103 the downloaded file. 7113 the downloaded file.