]> code.ossystems Code Review - openembedded-core.git/commit
siteinfo/autotools: Ensure task checksums reflect site files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Sep 2021 11:47:02 +0000 (12:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Sep 2021 12:49:07 +0000 (13:49 +0100)
commit29daffc2410f06f36b779d5bf1fd1ef6e900ca8f
tree4a37778fcba82324114abd2f9bd9e08fd424f0ec
parent55623420208bc4c77a61492d2bbcbc71d3123acd
siteinfo/autotools: Ensure task checksums reflect site files

Currently, if you change the site files, nothing rebuilds since they are
not accounted for in task checksums. They could/should be through the
file-checksums task flag. We need to cache all the files looked for,
whether the exist or not so that if they do exist and didn't,
the checksum also changes.

This gets complicated by the need to clean out hardcoded build
paths from the variable and that other layers can have site files.

This patch adds this functionality. A new variable, SITEINFO_PATHVARS
is added which controls which substitutions to make on the file-checksum
values to remove the hardcoded paths. Layers adding site files will need
to set this to a variable that has the layer path in it and is excluded
from task hashes (COREBASE is the one the core layer uses).

This patch will cause yocto-check-layer to fail for some layers
where site files are added yet the layer isn't a machine specific layer.
This is arguable correct since these additional site files apply to
all recipes and things from a layer like core could be changed by such
changes so it is right they should rebuild. There is a determinism issue
potentially there if not. meta-openembedded does have some such references
but looking at them they should move to core or likely just be removed as
most look obsolete anyway.

[YOCTO #13729]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass
meta/classes/siteinfo.bbclass
meta/classes/toolchain-scripts.bbclass
meta/recipes-core/meta/meta-environment.bb
meta/recipes-core/meta/meta-ide-support.bb