All of lore.kernel.org
 help / color / mirror / Atom feed
* [sstate question] How does SSTATE_CACHE work when shared?
@ 2017-05-11 13:22 Schmitt, Richard
  2017-05-11 16:12 ` Patrick Ohly
  0 siblings, 1 reply; 2+ messages in thread
From: Schmitt, Richard @ 2017-05-11 13:22 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

The writeup in section 4.3.3 of the Yocto reference manual is quite good but I'm still left with a question that I'm hoping someone can shed some light into.

We have the SSTATE_CACHE set up as a shared directory on a build machine.  This means that multiple developers with their own workspaces will all share the same SSTATE_CACHE.  What is not clear is how, or whether the build artifacts are actually shared between developers.

An example of our problem.  We are using a Xilinx BSP.  There is a recipe, device-tree-generation, that will deploy dtb files to the DEPLOY_IMAGE_DIR.  We are running into a case where other developers builds will fail when they run a task (in u-boot-xlnx) which depends on the dtb file being available in DEPLOY_IMAGE_DIR.  My assumption is that the shared state cache indicated that the dtb file did not need to be rebuilt because none of the dependencies changed, hence its signature had not changed.  But, it doesn't actually exist in the users workspace (tmp/deploy/images).

Do I understand this correctly?  Is there some step or configuration that I'm missing?  What is supposed to happen?  Is some magic supposed to copy a previous version of the dtb to the local deploy directory?  Is there something that was supposed invalidate the cache for the local user?  We can work around this by forcing the developer to execute a cleansstate on device-tree-generation but what is going wrong.

Thanks,
Rich

[-- Attachment #2: Type: text/html, Size: 3557 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-11 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 13:22 [sstate question] How does SSTATE_CACHE work when shared? Schmitt, Richard
2017-05-11 16:12 ` Patrick Ohly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.