]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: checksum all modifications to available kernel fragments directories
authorBruce Ashfield <bruce.ashfield@gmail.com>
Thu, 27 Aug 2020 20:04:47 +0000 (16:04 -0400)
committerSteve Sakoman <steve@sakoman.com>
Tue, 1 Sep 2020 15:45:54 +0000 (05:45 -1000)
commite397859ceac42d926134d5cb7828526d8d649c95
tree7d42ead19b0671aa5c37afee9a50f042521e9f26
parent2de84e6e767d4c3e517d7413a37700bf1991a460
kernel-yocto: checksum all modifications to available kernel fragments directories

This is based on the patch from Zhaolong Zhang <zhangzl2013@126.com>
[kernel-yocto: checksum indirect cfg and scc files]

While the recommended manner to share/reuse feature fragments is to
maintain them in a kernel-meta repository and track the changes via the
standard SRCREV fetcher mechanism, that method is not always practical
for small sets of features or for quick testing of changes.

These other flows use .scc files on the SRC_URI. It has been noted that
config fragments or other features indirectly included by those .scc
files will not trigger the kernel meta-data to be re-run and hence a
build can continue with stale data (or not be triggered at all).

To solve this issue, we can collect the directories that are searchable
via FILESEXTRAPATHS and add them to the do_kernel_metadata task
checksum.

This allows modifications, additions and removals from the potential
kernel feature directories to trigger a re-execution of the meta data
task.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 09f4db415fb6a1398e9e9b359630043c833f6118)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel-yocto.bbclass