On 2011-08-22 14:55, Gary Thomas wrote:
On 2011-08-22 14:27, Saul Wold wrote:
On 08/22/2011 04:12 AM, Gary Thomas wrote:
On 2011-08-22 01:56, Ni Qingliang wrote:
Do we can assign all package be downloaded from the same path?
I want setup one internal server to store the files in upstreamsources,
and all developer's PC use it but not the original package address.
Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/"
INHERIT += "own-mirrors"
Simply point SOURCE_MIRROR_URL at your file cache.
You could also use PREMIRRORS in the developer's local.conf, point
PREMIRRORS for packages to your internal server (could be ftp, http or file
when mounted via NFS).
But then you end up typing all the patterns for the various file types, etc.
own-mirrors does all that for you by creating a PREMIRRORS variable based
on the single SOURCE_MIRROR_URL
Also, to be used as a complete cache, SOURCE_MIRROR_URL should point
to the same cache directory as DL_DIR does. So I really should have
said
# Provide pre-staged sources
DL_DIR = "/opt/amltd/poky/sources"
SOURCE_MIRROR_URL = "file://${DL_DIR}/"
INHERIT += "own-mirrors"
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core