[OE-core] [PATCH 0/1] Import own-mirrors class from OE

Gary Thomas gary at mlbassoc.com
Sun Mar 13 15:56:58 UTC 2011


On 03/12/2011 08:04 AM, Khem Raj wrote:
> Hi Richard
>
>
>
> Pull URL: git://git.openembedded.org/openembedded-core-contrib.git
>    Branch: kraj/own-mirror
>    Browse: http://git.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/own-mirror
>
> Thanks,
>      Khem Raj<raj.khem at gmail.com>
> ---
>
>
> Khem Raj (1):
>    own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit
>      0ef914b250df46a41348479446214575668943fb
>
>   meta/classes/own-mirrors.bbclass |   12 ++++++++++++
>   1 files changed, 12 insertions(+), 0 deletions(-)
>   create mode 100644 meta/classes/own-mirrors.bbclass
>

Poky/Yocto already has a mechanism for this by overriding PREMIRRORS
I would think sticking with one extension method would be better.

Here's what I have in my [Poky] DISTRO.conf:

SOURCE_DIR ?= "/opt/poky/sources"
PREMIRRORS = "\
http://.*/.*   file://${SOURCE_DIR}/ \n \
https://.*/.*  file://${SOURCE_DIR}/ \n \
ftp://.*/.*    file://${SOURCE_DIR}/ \n \
bzr://.*/.*    file://${SOURCE_DIR}/ \n \
cvs://.*/.*    file://${SOURCE_DIR}/ \n \
git://.*/.*    file://${SOURCE_DIR}/ \n \
hg://.*/.*     file://${SOURCE_DIR}/ \n \
osc://.*/.*    file://${SOURCE_DIR}/ \n \
p4://.*/.*     file://${SOURCE_DIR}/ \n \
svk://.*/.*    file://${SOURCE_DIR}/ \n \
svn://.*/.*    file://${SOURCE_DIR}/ \n"

Users can have their own mirror by defining SOURCE_DIR in local.conf

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------




More information about the Openembedded-core mailing list