[bitbake-devel] [PATCH 1/1] command: Add command to invalidate parse cache

Paul Eggleton paul.eggleton at linux.intel.com
Tue Sep 12 11:05:50 UTC 2017


On Tuesday, 12 September 2017 10:41:36 PM NZST Richard Purdie wrote:
> On Tue, 2017-09-12 at 22:10 +1200, Paul Eggleton wrote:
> > If we make a change to the metadata within a tinfoil-using script
> > and then attempt to run tasks using build_targets(), the change won't
> > get noticed. Add an explicit command that will set the internal flag
> > to
> > force reloading the cache and thus pick up the changes. This will be
> > used in OE by the devtool source extraction rework.
> > 
> > Part of the fix for [YOCTO #11198].
> > 
> > Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> > ---
> >  lib/bb/command.py | 3 +++
> >  1 file changed, 3 insertions(+)
> 
> Just a quick sanity check. Why won't the change get noticed? Any file
> writes should be seen by the inotify code which would invalidate the
> cache? This could mean we're not watching some dependency we should be?
> or is it that the commands aren't triggering a reparse due to ordering
> somehow? I'd like to understand this more before we add this...

That's a good question, and you may well be right. I can look into it more 
closely.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the bitbake-devel mailing list