dev-manual: Added more detail for using an external SCM.
Provided more information based on an IRC conversation that Richard Purdies saw on #yocto. Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org> (From yocto-docs rev: ec28d9f8f01a6e58ade2954e4e6f2ff1c11aa198) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4a40d730bd
commit
20a17fd0f9
|
@ -5384,11 +5384,18 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To enable this behavior, simply add the following to the <filename>local.conf</filename>
|
To enable this behavior, the
|
||||||
configuration file found in the
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink>
|
||||||
<ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>:
|
of the recipe needs to reference
|
||||||
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRCPV'><filename>SRCPV</filename></ulink>.
|
||||||
|
Here is an example:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
SRCREV_pn-<PN> = "${AUTOREV}"
|
PV = "1.2.3+git${SRCPV}
|
||||||
|
</literallayout>
|
||||||
|
Then, you can add the following to your
|
||||||
|
<filename>local.conf</filename>:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
SRCREV_pn-<PN> = "${AUTOREF}"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
<ulink url='&YOCTO_DOCS_REF_URL;#var-PN'><filename>PN</filename></ulink>
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-PN'><filename>PN</filename></ulink>
|
||||||
is the name of the recipe for which you want to enable automatic source
|
is the name of the recipe for which you want to enable automatic source
|
||||||
|
@ -5396,7 +5403,16 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In fact, the Yocto Project provides a distribution named
|
If you do not want to update your local configuration file, you can
|
||||||
|
add the following directly to the recipe to finish enabling
|
||||||
|
the feature:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
SRCREV = "${AUTOREV}"
|
||||||
|
</literallayout>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The Yocto Project provides a distribution named
|
||||||
<filename>poky-bleeding</filename>, whose configuration
|
<filename>poky-bleeding</filename>, whose configuration
|
||||||
file contains the line:
|
file contains the line:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
|
|
Loading…
Reference in New Issue