diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-12-03 10:03:46 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-11 14:18:46 +0000 |
commit | ccca482412dcba9a408188f5d0127801ac167e61 (patch) | |
tree | 4ca185e316d518c08d9248b80564e9b74aa77648 /documentation | |
parent | 5c63b7af0540a65b73e288db40503c5d2bad14ec (diff) | |
download | poky-ccca482412dcba9a408188f5d0127801ac167e61.tar.gz |
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>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/ref-classes.xml | 26 | ||||
-rw-r--r-- | documentation/ref-manual/ref-variables.xml | 27 |
2 files changed, 53 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index d5445d6a8f..3be247a7dc 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml | |||
@@ -1243,6 +1243,32 @@ | |||
1243 | </para> | 1243 | </para> |
1244 | </section> | 1244 | </section> |
1245 | 1245 | ||
1246 | <section id='ref-classes-ownmirrors'> | ||
1247 | <title><filename>ownmirrors.bbclass</filename></title> | ||
1248 | |||
1249 | <para> | ||
1250 | The own mirrors (<filename>ownmirrors</filename>) class makes it | ||
1251 | easier to set up your own | ||
1252 | <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link> | ||
1253 | from which to first fetch source before attempting to fetch it from the | ||
1254 | upstream specified in | ||
1255 | <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link> | ||
1256 | within each recipe. | ||
1257 | </para> | ||
1258 | |||
1259 | <para> | ||
1260 | To use this class, inherit it globally and specify | ||
1261 | <link linkend='var-SOURCE_MIRROR_URL'><filename>SOURCE_MIRROR_URL</filename></link>. | ||
1262 | Here is an example: | ||
1263 | <literallayout class='monospaced'> | ||
1264 | INHERIT += "own-mirrors" | ||
1265 | SOURCE_MIRROR_URL = "http://example.com/my-source-mirror" | ||
1266 | </literallayout> | ||
1267 | You can specify only a single URL in | ||
1268 | <filename>SOURCE_MIRROR_URL</filename>. | ||
1269 | </para> | ||
1270 | </section> | ||
1271 | |||
1246 | <section id='ref-classes-pkgconfig'> | 1272 | <section id='ref-classes-pkgconfig'> |
1247 | <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title> | 1273 | <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title> |
1248 | 1274 | ||
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index a33595cd6f..5e3edcd937 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml | |||
@@ -5664,6 +5664,33 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
5664 | </glossdef> | 5664 | </glossdef> |
5665 | </glossentry> | 5665 | </glossentry> |
5666 | 5666 | ||
5667 | <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm> | ||
5668 | <glossdef> | ||
5669 | <para> | ||
5670 | Defines your own | ||
5671 | <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link> | ||
5672 | from which to first fetch source before attempting to fetch | ||
5673 | from the upstream specified in | ||
5674 | <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>. | ||
5675 | </para> | ||
5676 | |||
5677 | <para> | ||
5678 | To use this variable, you must globally inherit the | ||
5679 | <link linkend='ref-classes-ownmirrors'><filename>ownmirrors</filename></link> | ||
5680 | class and then provide the URL to your mirrors. | ||
5681 | Here is an example: | ||
5682 | <literallayout class='monospaced'> | ||
5683 | INHERIT += "own-mirrors" | ||
5684 | SOURCE_MIRROR_URL = "http://example.com/my-source-mirror" | ||
5685 | </literallayout> | ||
5686 | <note> | ||
5687 | You can specify only a single URL in | ||
5688 | <filename>SOURCE_MIRROR_URL</filename>. | ||
5689 | </note> | ||
5690 | </para> | ||
5691 | </glossdef> | ||
5692 | </glossentry> | ||
5693 | |||
5667 | <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm> | 5694 | <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm> |
5668 | <glossdef> | 5695 | <glossdef> |
5669 | <para> | 5696 | <para> |