1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

ref-manual: Added the ownmirrors class and the SOURCE_MIRROR_URL variable.

(From yocto-docs rev: 32c1d7aeecb6face0030def431b10277974f30d5)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2013-12-03 10:03:46 -06:00
committed by Richard Purdie
parent 5c63b7af05
commit ccca482412
2 changed files with 53 additions and 0 deletions
+26
View File
@@ -1243,6 +1243,32 @@
</para>
</section>
<section id='ref-classes-ownmirrors'>
<title><filename>ownmirrors.bbclass</filename></title>
<para>
The own mirrors (<filename>ownmirrors</filename>) class makes it
easier to set up your own
<link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
from which to first fetch source before attempting to fetch it from the
upstream specified in
<link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
within each recipe.
</para>
<para>
To use this class, inherit it globally and specify
<link linkend='var-SOURCE_MIRROR_URL'><filename>SOURCE_MIRROR_URL</filename></link>.
Here is an example:
<literallayout class='monospaced'>
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "http://example.com/my-source-mirror"
</literallayout>
You can specify only a single URL in
<filename>SOURCE_MIRROR_URL</filename>.
</para>
</section>
<section id='ref-classes-pkgconfig'>
<title>Pkg-config - <filename>pkgconfig.bbclass</filename></title>