From 518efae890f78f7f446b743c3860fb4f84fb6052 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 27 Nov 2012 09:50:38 -0600 Subject: [PATCH] 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 (From yocto-docs rev: 209d6205b4fc6a4010f440ba7e0e2018217a0a0b) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../yocto-project-qs/yocto-project-qs.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/documentation/yocto-project-qs/yocto-project-qs.xml b/documentation/yocto-project-qs/yocto-project-qs.xml index 30b93c7a03..b1e5df0ecd 100644 --- a/documentation/yocto-project-qs/yocto-project-qs.xml +++ b/documentation/yocto-project-qs/yocto-project-qs.xml @@ -812,20 +812,20 @@ A good deal that goes into a Yocto Project build is simply downloading all of the source 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. Or perhaps someone else has such a directory for which you have read access. If so, you can save time by adding the PREMIRRORS - statement to your configuration file so that local directories are first checked for existing - tarballs before running out to the net: + statement to your configuration file so that the build process checks + local directories first for existing tarballs before checking the + Internet. + Here is an efficient way to set it up in your local.conf + file: - PREMIRRORS_prepend = "\ - git://.*/.* file:///home/you/dl/ \n \ - svn://.*/.* file:///home/you/dl/ \n \ - cvs://.*/.* file:///home/you/dl/ \n \ - ftp://.*/.* file:///home/you/dl/ \n \ - http://.*/.* file:///home/you/dl/ \n \ - https://.*/.* file:///home/you/dl/ \n" + SOURCE_MIRROR_URL ?= "file:///home/you/your-download-dir/" + INHERIT += "own-mirrors" + BB_GENERATE_MIRROR_TARBALLS = "1" + # BB_NO_NETWORK = "1"