mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
classes/package: Sort ELF file list
Sorts the list of detected ELF files by path before processing. This ensures that when multiple files are hardlinked together the first one found is always the same. This is required to have reproducible builds. (From OE-Core rev: de86bfeda6e3845336a0b56c883b49219967128f) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5eb1d8b63f
commit
0965f48949
@@ -1005,6 +1005,12 @@ python split_and_strip_files () {
|
||||
symlinks[file] = target
|
||||
|
||||
results = oe.utils.multiprocess_launch(oe.package.is_elf, checkelf.keys(), d)
|
||||
|
||||
# Sort results by file path. This ensures that the files are always
|
||||
# processed in the same order, which is important to make sure builds
|
||||
# are reproducible when dealing with hardlinks
|
||||
results.sort(key=lambda x: x[0])
|
||||
|
||||
for (file, elf_file) in results:
|
||||
# It's a file (or hardlink), not a link
|
||||
# ...but is it ELF, and is it already stripped?
|
||||
|
||||
Reference in New Issue
Block a user