]> code.ossystems Code Review - openembedded-core.git/commit
sstatesig: Add processing for full build paths in sysroot files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Sep 2021 14:02:08 +0000 (15:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Oct 2021 12:55:43 +0000 (13:55 +0100)
commitd9852ffbbe728dac33dc081538a08af98f52fd4a
treef213f2fddb9487d082da34d2f970436e1f091aca
parente82095c02881410035ca23dc12692f074d8ed39b
sstatesig: Add processing for full build paths in sysroot files

Some files in the populate_sysroot tasks have hardcoded paths in them,
particularly if they are postinst-useradd- files or crossscripts.

Add some filtering logic to remove these paths.

This means that the hashequiv "outhash" matches correcting in more
cases allowing for better build artefact reuse.

To make this work a new variable is added SSTATE_HASHEQUIV_FILEMAP
which maps file globbing to replacement patterns (paths or regex)
on a per sstate task basis. It is hoped this shouldn't be needed
in many cases. We are in the process to developing QA tests which
will better detect issues in this area to allow optimal sstate
reuse.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass
meta/lib/oe/sstatesig.py
meta/recipes-devtools/perl/perl_5.34.0.bb
meta/recipes-devtools/python/python3_3.9.6.bb
meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
meta/recipes-devtools/rpm/rpm_4.16.1.3.bb