]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sstatesig/populate_sdk_ext: Improve unihash cache handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 May 2024 16:17:30 +0000 (17:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Jun 2024 11:04:36 +0000 (12:04 +0100)
commit11373def3171e75b3b74ef694da213dd21f3064c
treee4a055772e6bb483b254a93535d82621603ceeb0
parent903cc51746262be4b71261e0ad66cf5a49af2186
sstatesig/populate_sdk_ext: Improve unihash cache handling

Copying in the bb_unihashes cache file was at best a hack and creates a number of
challenges. One is staying in sync with bitbake since it may not have saved the
most recent version of the file. A second is a determinism problem since there may
be more entries in the file than the SDK should have had access to.

To improve the situation, add code to write the data into the locked-sigs.inc file
such that even when locked-sigs aren't used, the right hash mappings are injected
by the get_cached_unihash call.

The functions in copy_buildsystem need to be updated to preserve data they're not
editting.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/populate_sdk_ext.bbclass
meta/lib/oe/copy_buildsystem.py
meta/lib/oe/sstatesig.py