[OE-core] Using SSTATE_MIRRORS with sstate subdirectories

McClintock Matthew-B29882 B29882 at freescale.com
Fri Oct 19 18:24:37 UTC 2012


On Fri, Oct 19, 2012 at 11:57 AM, Mike Crowe <mac at mcrowe.com> wrote:
> On Fri, Oct 19, 2012 at 08:46:23AM -0700, Chris Larson wrote:
>> On Fri, Oct 19, 2012 at 8:38 AM, Mike Crowe <mac at mcrowe.com> wrote:
>> > I'm having trouble using SSTATE_MIRRORS as suggested at
>> > https://wiki.yoctoproject.org/wiki/Enable_sstate_cache :
>> >
>> > SSTATE_MIRRORS ?= "file://.* file:///private/sstate-cache/"
>>
>> SSTATE_MIRRORS ?= "file://.* file:///private/sstate-cache/PATH"
>
> Thanks for your reply.
>
> Although that works for the simple case, if I try and do something
> more adventurous like:
>
> SSTATE_MIRRORS = "\
> file://Debian-testing/.* file:///private/sstate-cache/Debian-6.0.6/PATH \n \
> file://.* file:///private/sstate-cache/PATH \n \
> "
>
> Then I get paths like:
>
> DEBUG: For url file://Debian-testing/8c/sstate-tar-replacement-native-x86_64-linux-1.26-r3-x86_64-2-8cc4342260b064ace38e0aa1acf2f618_populate-sysroot.tgz returning file:///private/sstate-cache/Debian-6.0.6/Debian-testing/8c/sstate-tar-replacement-native-x86_64-linux-1.26-r3-x86_64-2-8cc4342260b064ace38e0aa1acf2f618_populate-sysroot.tgz
>
> so I really would like to be able to say:
>
> "file://Debian-testing/(.*) file:///private/sstate-cache/Debian-6.0.6/\1"

Something like this might be what you are looking for:

SSTATE_MIRRORS = "file://.*/(.*)/(.*)
http://linux.freescale.net/yocto/sstate-cache/CentOS-5.8/\1/\2 \n"

This maps all native sstate-cache to my CentOS-5 box.

-M




More information about the Openembedded-core mailing list