[bitbake-devel] [PATCH 2/2] bitbake: implement checksums for local files in SRC_URI

Paul Eggleton paul.eggleton at linux.intel.com
Tue May 22 23:55:45 UTC 2012


On Wednesday 23 May 2012 00:50:48 Paul Eggleton wrote:
> On Tuesday 22 May 2012 18:45:23 you wrote:
> > On 5/22/12 6:23 PM, Paul Eggleton wrote:
> > > Gathers a list of paths to have checksums calculated at parse time, and
> > > processes these when calculating task hashes. Checksums are cached with
> > > the file's current mtime. Thus, changing any local file in SRC_URI will
> > > now cause the do_fetch taskhash to change, thus forcing a rebuild.
> > 
> > Does the mtime change invalidate the checksum, or just cause the checksum
> > to be re-interpreted?
> 
> The latter.

Er, I think I may have misread your question. To be totally clear - the mtime 
is not a component of the checksum; we merely store it next to the checksum in 
a cache so that we don't have to re-compute the checksum if the file hasn't 
been modified. If mtime changes but the file content does not, the checksum will 
be re-computed but will not change.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the bitbake-devel mailing list