bitbake: include varflags in checksums
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 30 May 2012 16:17:18 +0000 (17:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 May 2012 16:23:32 +0000 (17:23 +0100)
commitbd4119860c6a8f588fb3b7ea474ee85d7042cb53
treea2409c0d1d041849d78d58fd2cd1de0931f18d94
parent97b227a7a53b8fcb8bfa963debb9482c15d3d908
bitbake: include varflags in checksums

Add a dependency to each variable on a filtered list of its varflags.
This is intended to catch things such as SRC_URI checksums, varflags
controlling extra functionality from classes (e.g. the recently updated
update-alternatives class in OE-Core), etc. and ensure their values
influence the sstate checksums.

There is an exclusion list which needs to be set via bitbake.conf
(BB_SIGNATURE_EXCLUDE_FLAGS), if this is not set then the functionality
is disabled. The existing vardepsexclude mechanism can also be used to
exclude undesired varflags, but they must be fully specified, e.g.:

do_patch[vardepsexclude] += "do_patch[someflag]"

Implements [YOCTO #2517].

(Bitbake rev: 56c1ab18fcaf4ac245dcb412ed55e8e0af07883b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/data.py
bitbake/lib/bb/siggen.py