generic-poky/bitbake/lib/bb
Paul Eggleton 8b8be74ed2 bitbake: implement checksums for local files in SRC_URI
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.

This change adds very roughly about an 8% increase in parse time (a few
seconds) and maybe a few seconds during runqueue generation, so a fairly
moderate performance hit.

Note that since paths are resolved at parse time, this will not force
a rebuild when files are introduced which would cause that resolved path
to be different - for example, where a machine-specific version of a file
was added without otherwise changing the recipe. This will need to be
handled in a future update.

Code to hook this into the signature generator was courtesy of
Richard Purdie <richard.purdie@linuxfoundation.org>.

Implements [YOCTO #2044].

(Bitbake rev: c993b7c457f8b7776e8a5dff253bfa0724bc2cae)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-23 11:35:04 +01:00
..
fetch2 bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
parse ConfHandler.py: Add a hook for config parsing 2012-04-13 12:04:18 +01:00
pysh make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
server bitbake: Add client socket info for BitBakeServerConnection 2012-02-23 22:52:16 +00:00
tests bitbake/tests: Add test of the git fetcher 2012-05-13 20:09:53 +01:00
ui Hob: fixed the issue about the 'run image' page should have the primary bug 2012-05-23 11:33:18 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py Update version to 1.15.2 (correspdoning to Yocto 1.2 release) 2012-05-01 20:50:41 +01:00
build.py bb.build: use relative log links, not absolute 2012-03-29 09:44:45 +01:00
cache.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
cache_extra.py bitbake: Add description into the cache and clean up cache duplication 2012-02-02 16:55:28 +00:00
checksum.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
codeparser.py bitbake: refactor out codeparser cache into a separate class 2012-05-23 11:33:18 +01:00
command.py ConfHandler.py: Add a hook for config parsing 2012-04-13 12:04:18 +01:00
compat.py bitbake: Add missing file 2011-05-07 08:49:28 +01:00
cooker.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
daemonize.py Apply some 2to3 transforms that don't cause issues in 2.6 2010-07-02 15:41:33 +01:00
data.py data/runqueue.py: Fix commented out test code after variable name changes 2012-01-27 09:40:05 +00:00
data_smart.py data_smart: Improve the calculation of config hash 2012-04-17 11:41:31 +01:00
event.py event.py: Add SanityCheck and SanityCheckPassed events 2012-04-24 10:14:47 +01:00
exceptions.py bb.exceptions: don't choke on frames without arguments 2011-06-08 20:38:25 +01:00
methodpool.py Consolidate the exec/eval bits, switch anonfunc to better_exec, etc 2010-07-02 15:41:31 +01:00
monitordisk.py diskspace monitor: assign a default value when only of the interval is set 2012-04-11 00:04:40 +01:00
msg.py bitbake: implement BB_VERBOSE_LOGS 2012-02-28 13:47:10 +00:00
namedtuple_with_abc.py bb.namedtuple_with_abc: add useful util from activestate 2011-06-08 20:38:23 +01:00
persist_data.py persist_data: survive if sqlite3 couldn't enable the shared cache 2012-02-22 20:25:29 +00:00
process.py make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
providers.py meta/classes: Convert to use appendVar and appendVarFlags 2012-03-05 10:36:53 -08:00
runqueue.py bitbake/runqueue: Drop check_stamp_fn, it's obsolete and should not be used 2012-05-11 11:54:27 +01:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
taskdata.py taskdata: fix string formatting of an error message 2011-09-20 22:22:21 +01:00
utils.py bitbake/utils: Convert vercmp_string() to use vercmp internally 2012-05-04 16:44:57 +01:00