From: Patrick Ohly <patrick.ohly@intel.com>
To: "Schmitt, Richard" <Richard.Schmitt@commscope.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: [sstate question] How does SSTATE_CACHE work when shared?
Date: Thu, 11 May 2017 18:12:07 +0200 [thread overview]
Message-ID: <1494519127.1179.191.camel@intel.com> (raw)
In-Reply-To: <CY4PR06MB26169AEB73B583DD03D6FF25E6ED0@CY4PR06MB2616.namprd06.prod.outlook.com>
On Thu, 2017-05-11 at 13:22 +0000, Schmitt, Richard wrote:
> 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?
Yes.
> 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?
A "setscene" task should unpack the build result that was previously
placed into the sstate cache.
This sounds like a bug in the BSP and/or it hasn't been updated for the
version or OE-core that you use.
If this was part of a normal image recipe, my guess would be that the
BSP still copies directly to DEPLOY_DIR_IMAGE (thus bypassing the sstate
machinery) instead of to IMGDEPLOYDIR, and you are using a recent
OE-core. See "image: Deploy images to IMGDEPLOYDIR" (rev 6d969bacc718e2
in OE-core).
But for a separate recipe, it must be using deploy.bbclass incorrectly.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
prev parent reply other threads:[~2017-05-11 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 13:22 [sstate question] How does SSTATE_CACHE work when shared? Schmitt, Richard
2017-05-11 16:12 ` Patrick Ohly [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494519127.1179.191.camel@intel.com \
--to=patrick.ohly@intel.com \
--cc=Richard.Schmitt@commscope.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.