diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-07-19 13:58:17 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-22 16:53:06 +0100 |
commit | fa894486a99237b56469354c24ef913a96753aaf (patch) | |
tree | a63fcd70785348610d067aef0d367492b1d91b4e /scripts/lib/wic/plugins/source/bootimg-partition.py | |
parent | 15e5193e9f4790154890774a3326784a009dff68 (diff) | |
download | poky-fa894486a99237b56469354c24ef913a96753aaf.tar.gz |
package.py: Fix static library processing
When PACKAGE_STRIP_STATIC is enabled the system did not pay attention to
hardlinks. This could trigger a race condition during stripping of static
libraries where multiple strips (through hardlinks) could run at the same
time triggering a truncated or modified file error.
The hardlink breaking code is based on the existing code for elf files, but
due to the nature of the symlinks needed to be done in a separate block of
code.
Add support for static-library debugfs hardlinking through the existing
inode processing code.
Print a note to the logs if the link target can't be found. This isn't
strictly an error, but may be useful for debugging an issue where a file
isn't present.
(From OE-Core rev: ff371d69f60a1529ed456acb7d8e9305242e74bd)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-partition.py')
0 files changed, 0 insertions, 0 deletions