[yocto] using shared state cache from other machine

Andre McCurdy armccurdy at gmail.com
Tue Jul 7 14:59:37 PDT 2015


Hi Kurt,

On Tue, Jul 7, 2015 at 6:07 AM, Kurt Van Dijck
<dev.kurt at vandijck-laurijssen.be> wrote:
> Hey,
>
> I started to re-use the shared state cache from a build machine.
> If I clean everything locally, I still spend time building.
> So, can everything be re-used, or only the target packages.
> How different may the build machine & may host be.
> The build machine is a (recent) ubuntu. My machine is debian squeeze+sid
> mixed version. Is that a problem?

You can try it, but no guarantees.

I have a build machine running Ubuntu 14.04 and a laptop running Linux
Mint 17.1 and I regularly rsync sstate from the build server to the
laptop without any issues (as expected, since Linux Mint uses Ubuntu
packages). The trick to avoid rebuilding all native packages is to
rename sstate-cache/Ubuntu-14.04 -> sstate-cache/LinuxMint-17.1 after
each rsync.

Digging around a little in oe-core, it looks like the directory under
sstate-cache for native packages is controlled by NATIVELSBSTRING,
which is set by lsb_distro_identifier(), which accepts an option
"adjustment hook" via LSB_DISTRO_ADJUST. You can find an example
lsb_distro_adjust hook here:

  http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/meta-mel/conf/distro/include/sstate.inc


> Kind regards,
> Kurt
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list