diff options
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index aca750fd47..deeb358e0b 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -1941,9 +1941,9 @@ | |||
1941 | <para> | 1941 | <para> |
1942 | The <filename>SRC_URI</filename> variable in your recipe must | 1942 | The <filename>SRC_URI</filename> variable in your recipe must |
1943 | define each unique location for your source files. | 1943 | define each unique location for your source files. |
1944 | It is good practice to not hard-code pathnames in an URL used | 1944 | It is good practice to not hard-code version numbers in a URL used |
1945 | in <filename>SRC_URI</filename>. | 1945 | in <filename>SRC_URI</filename>. |
1946 | Rather than hard-code these paths, use | 1946 | Rather than hard-code these values, use |
1947 | <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink><filename>}</filename>, | 1947 | <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink><filename>}</filename>, |
1948 | which causes the fetch process to use the version specified in | 1948 | which causes the fetch process to use the version specified in |
1949 | the recipe filename. | 1949 | the recipe filename. |
@@ -1954,13 +1954,13 @@ | |||
1954 | 1954 | ||
1955 | <para> | 1955 | <para> |
1956 | Here is a simple example from the | 1956 | Here is a simple example from the |
1957 | <filename>meta/recipes-devtools/cdrtools/cdrtools-native_3.01a20.bb</filename> | 1957 | <filename>meta/recipes-devtools/strace/strace_5.5.bb</filename> |
1958 | recipe where the source comes from a single tarball. | 1958 | recipe where the source comes from a single tarball. |
1959 | Notice the use of the | 1959 | Notice the use of the |
1960 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink> | 1960 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink> |
1961 | variable: | 1961 | variable: |
1962 | <literallayout class='monospaced'> | 1962 | <literallayout class='monospaced'> |
1963 | SRC_URI = "ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-${PV}.tar.bz2" | 1963 | SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ |
1964 | </literallayout> | 1964 | </literallayout> |
1965 | </para> | 1965 | </para> |
1966 | 1966 | ||