summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/help.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-02 17:11:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-03 22:50:17 +0100
commit80336270f3ccecd8504590714428db68dd68f651 (patch)
tree9eb3b09d1cbabd94c4a7c6126b4bb072f506a1bd /scripts/lib/bsp/help.py
parent3e1b5e0685eba0f56ad82f49e28cf8a173affad8 (diff)
downloadpoky-80336270f3ccecd8504590714428db68dd68f651.tar.gz
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>
Diffstat (limited to 'scripts/lib/bsp/help.py')
0 files changed, 0 insertions, 0 deletions