generic-poky/bitbake/lib
Richard Purdie 80336270f3 bitbake: siggen: Add checksum recalculation/checking code
In theory all the information to recalcuate the task signatures was written
into the siginfo/sigdata files. In reality, some of the information was
written into the filename.

Firstly this patch duplicates that info into the file itself just for easy
of use since its small.

Secondly, we abstract out the existing "calculate the checksum" code for
the taskhash, and add a function to calculate the bashhash based on the
informaiton within the file.

Finally, we call these functions when we're writing out the data to check
that the data we're writing is consistent. I've found a couple of places
it wasn't and its good to know about these in advance, rather than having
a siginfo/sigdata file which a given hash in its filename but a contents
which give a different result.

This should all combine to avoid a certain class of checksum bugs making
it into world, and identifying problems in advance.

(Bitbake rev: 0f50a18d7a0ea0d68edd8e5217e29111f4b1ea0b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-03 22:50:17 +01:00
..
bb bitbake: siggen: Add checksum recalculation/checking code 2016-04-03 22:50:17 +01:00
bs4 bitbake: bs4: Add beautifulsoup 4.3.2 to assist the fetcher 2014-11-06 16:45:23 +00:00
ply Add pysh, ply, and codegen to lib/ to prepare for future work 2010-08-03 14:06:07 +01:00
prserv bitbake: prserv: Add dump_db() 2016-02-26 17:20:31 +00:00
toaster bitbake: toaster: orm better detect requires during CustomImageRecipe generation 2016-04-03 15:53:44 +01:00
codegen.py Add pysh, ply, and codegen to lib/ to prepare for future work 2010-08-03 14:06:07 +01:00
progressbar.py bitbake: progressbar: use '/usr/bin/env' in shebangs with python 2014-11-12 15:25:17 +00:00
pyinotify.py bitbake: bitbake: Add pyinotify to lib/ 2015-01-14 11:32:02 +00:00