From: Tomas Frydrych <tf+lists.yocto@r-finger.com>
Cc: yocto@yoctoproject.org
Subject: Re: RaspberryPi Kernel - sometimes it works, sometimes it doesn't
Date: Tue, 12 Jun 2012 08:23:54 +0100 [thread overview]
Message-ID: <4FD6EE8A.2040101@r-finger.com> (raw)
In-Reply-To: <26798960.m4OGCU6P52@helios>
On 11/06/12 17:29, Paul Eggleton wrote:
> On Monday 11 June 2012 06:53:32 Khem Raj wrote:
>> On 6/11/2012 12:29 AM, Tomas Frydrych wrote:
>>> I find that -c clean does not work very well, afterward the package
>>> gets recompiled but instead of the actual package packages being
>>> rebuilt, an earlier version of the packages gets pulled out of
>>> sstate into the image. I definitely saw this behaviour with Yocto
>>> kernels, but I think happens with other packages as well; I always
>>> do -c cleansstate now to avoid this.
>>
>> yes thats the intended behavior if nothing changed that ensues a
>> recompile then it will use precompiled sstate for the package
>
> To clarify, it's designed to be able to determine when the recipe has changed
> in such a way that it needs to be rebuilt (by building up dependencies between
> variables and computing a checksum of the value of each one, which ends up in
> a checksum for each task); if it sees no change then the previous task output
> will be used from the sstate cache. It's worth noting however that until
> recently (post-1.2) we did not handle when local files referred to in SRC_URI
> changed. There also still may be other circumstances under which changes to
> the recipe or variables which it refers to will not change the sstate
> checksums; if you come across a situation where you made a change and sstate
> was re-used when you expected it to be rebuilt, please raise it.
Over years of working with Poky I have developed this sort of a normal
work flow:
bitbake -c devshell <package>
< do some tweaking >
bitbake -c compile -f <package>
bitbake <package> <---- this pulls package from sstate!!!
scp ...
< test, repeat>
This no longer works, even after a forced recompile, Poky just pulls a
package out of sstate. It seems the only reliable way to force a package
rebuild is either to cleansstate or bump the PR, neither of which is
viable an option in the above scenario. What am I missing? Is this
really intended?
Tomas
next prev parent reply other threads:[~2012-06-12 7:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 11:30 RaspberryPi Kernel - sometimes it works, sometimes it doesn't Chris Tapp
2012-06-11 7:29 ` Tomas Frydrych
2012-06-11 7:58 ` Chris Tapp
2012-06-11 13:53 ` Khem Raj
2012-06-11 16:29 ` Paul Eggleton
2012-06-12 7:23 ` Tomas Frydrych [this message]
2012-06-12 11:26 ` Paul Eggleton
2012-06-12 11:30 ` Gary Thomas
2012-06-13 13:17 ` Paul Eggleton
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=4FD6EE8A.2040101@r-finger.com \
--to=tf+lists.yocto@r-finger.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.