[OE-core] Using SSTATE_MIRRORS with sstate subdirectories

Chris Larson clarson at kergoth.com
Fri Oct 19 17:41:17 UTC 2012


On Fri, Oct 19, 2012 at 9:57 AM, Mike Crowe <mac at mcrowe.com> wrote:
> 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

SSTATE_MIRRORS = "\
file://${LSBNATIVESTRING} file:///private/sstate-cache/Debian-6.0.6 \n \
file://.* file:///private/sstate-cache/PATH \n \
"

We do this at mentor with a class to simplify the setup. See
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/classes/sstate-reuse.bbclass.
Then you'd do this:

INHERIT += "sstate-reuse"
SSTATE_MIRROR_DISTROS = "Debian-testing"
SSTATE_MIRROR_SITES = "file:///private/sstate-cache"

We do most of our automated builds on 32 bit and 64 bit centos 5.4
hosts, then those native/cross sstates can then be reused just about
everywhere, since that distro is so old.
-- 
Christopher Larson




More information about the Openembedded-core mailing list