]> code.ossystems Code Review - openembedded-core.git/commit
image: Fix instability of do_image_* checksums
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Jan 2016 10:33:18 +0000 (10:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 16:35:37 +0000 (16:35 +0000)
commitecbc1db7ed1f9848dee69507de8eb289b8ddeba0
tree1f35b1f18f32614921b43bb732ce2862649f3ab9
parent606f9e2d7d8d389c8d4f5c3090139d3bb780e09c
image: Fix instability of do_image_* checksums

The do_image_* tasks contained the expanded version of DATETIME. Due
to the expansion, we couldn't exclude the value from the task checksum
which meant the task would rerun.

We fix this by deleting the DATETIME value during expansion so we don't
expand any references to at that time. This means the task's hash can be
stable rather than having hardcoded date/time values. It will get expanded
at execution time.

This also fixes errors shown by -S:

NOTE: Reparsing files to collect dependency data
Writing locked sigs to /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/locked-sigs.inc
ERROR: Bitbake's cached basehash does not match the one we just generated (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/recipes-sato/images/core-image-sato.bb.do_image_tar)!
ERROR: The mismatched hashes were 77872792556367f1dde49a1425caf1a0 and 9bb0aca6286ab7dd22d3c69964beb665

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass