[OE-core] Rebuilding STAGING_KERNEL_DIR from sstate cache

Gamma.Dean at Emerson.com Gamma.Dean at Emerson.com
Thu Jul 23 17:50:19 UTC 2015


I have a user space application that needs to reference a header file from STAGING_KERNEL_DIR.  If I do a fresh build using an already populated sstate cache STAGING_KERNEL_DIR doesn't get populated so if I then try to rebuild my application the build fails.  Looking through module-base.bbclass I found the following line which fixes the problem:

  do_configure[depends] += "virtual/kernel:do_shared_workdir"

This forces STAGING_KERNEL_DIR to get built but it requires the kernel to completely rebuild which can take a while.  I mostly just wanted to write this down for anyone that finds themselves in the same situation but I was also wondering if there is another way to get STAGING_KERNEL_DIR assembled from sstate cache that wouldn't require a kernel rebuild.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150723/d211c135/attachment-0002.html>


More information about the Openembedded-core mailing list