13 Commits
Author SHA1 Message Date
William Douglas 7dfbf641ad elf-move: Include filepath in hash
Because miltiple binaries might share the same exact contents, include
the filepath as part of the hash.

Signed-off-by: William Douglas <william.douglas@intel.com>
2021-10-14 12:30:27 -07:00
William Douglas 7c60cf719a elf-move: Fix --path behavior and crash
If --path was not passed previously elf-move would crash, it also was
incorrectly handling the filepath instead of the virtpath (only care
about the path after the DESTDIR for --path, makes handling easier
too).

Finally make --path override the --skip behavior so they can work
together to append new content to a file.
2021-10-12 15:45:35 -07:00
William Douglas bbb7ff5e70 elf-move: Add option to always process a given path 2021-10-12 15:20:55 -07:00
William Douglas 4dccdcf2f5 Fixup whitespace, cleanup wording+typos 2021-10-12 15:04:29 -07:00
Arjan van de Ven 669f9fc54c add installed tests as a subset 2021-10-12 15:06:35 +00:00
Patrick McCarty 0bdb80f76b Make sure first 4096 bytes factor into the sha256
The first 4096 bytes were not being accounted for, resulting in any ELF
content with size <= 4096 having the same sha256.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-10-11 12:40:04 -07:00
Arjan van de Ven 5f2fa9bf1c add an other bucket 2021-10-10 23:35:38 +00:00
Arjan van de Ven 9a9122555d fix indent 2021-10-08 14:37:11 +00:00
Arjan van de Ven 0bc5cbc31d flag lib 2021-10-08 14:24:02 +00:00
Arjan van de Ven bcaaa0c300 also libexec 2021-10-08 14:12:45 +00:00
Arjan van de Ven 3853f800ac prefix files from /usr/bin with "bin" in the target file to help autospec 2021-10-08 13:56:37 +00:00
William Douglas e808020407 elf-move: Only create folders when there is content
Only create the filemap when there is elf binary content and create
the path to the filemap file as needed.
2021-10-07 22:49:44 -07:00
William Douglas f3bec7a82a Add elf binary handling utility
Add a new utility that will moving elf binaries to an alternate
location (renamed to their sha256 hash) and create a mapping file of
the binaries moved.

Signed-off-by: William Douglas <william.douglas@intel.com>
2021-10-07 17:33:07 -07:00