documentation: yocto-project-qs - Modified PREMIRRORS example

I updated the example to match the more elegant solution
provided in Robert P. J. Day's wiki.

Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
(From yocto-docs rev: 209d6205b4fc6a4010f440ba7e0e2018217a0a0b)

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 2012-11-27 09:50:38 -06:00 committed by Richard Purdie
parent 5b41087b3e
commit 518efae890
1 changed files with 10 additions and 10 deletions

View File

@ -812,20 +812,20 @@
<para> <para>
A good deal that goes into a Yocto Project build is simply downloading all of the source A good deal that goes into a Yocto Project build is simply downloading all of the source
tarballs. tarballs.
Maybe you have been working with another build system (OpenEmbedded, Angstrom, etc) for which Maybe you have been working with another build system (OpenEmbedded or Angstrom) for which
you've built up a sizable directory of source tarballs. you've built up a sizable directory of source tarballs.
Or perhaps someone else has such a directory for which you have read access. Or perhaps someone else has such a directory for which you have read access.
If so, you can save time by adding the <filename>PREMIRRORS</filename> If so, you can save time by adding the <filename>PREMIRRORS</filename>
statement to your configuration file so that local directories are first checked for existing statement to your configuration file so that the build process checks
tarballs before running out to the net: local directories first for existing tarballs before checking the
Internet.
Here is an efficient way to set it up in your <filename>local.conf</filename>
file:
<literallayout class='monospaced'> <literallayout class='monospaced'>
PREMIRRORS_prepend = "\ SOURCE_MIRROR_URL ?= "file:///home/you/your-download-dir/"
git://.*/.* file:///home/you/dl/ \n \ INHERIT += "own-mirrors"
svn://.*/.* file:///home/you/dl/ \n \ BB_GENERATE_MIRROR_TARBALLS = "1"
cvs://.*/.* file:///home/you/dl/ \n \ # BB_NO_NETWORK = "1"
ftp://.*/.* file:///home/you/dl/ \n \
http://.*/.* file:///home/you/dl/ \n \
https://.*/.* file:///home/you/dl/ \n"
</literallayout> </literallayout>
</para> </para>
</section> </section>