efi/libstub: Move file I/O support code into separate file
authorArd Biesheuvel <ardb@kernel.org>
Mon, 10 Feb 2020 16:02:43 +0000 (17:02 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:57:15 +0000 (21:57 +0100)
commit5193a33d78ce8b4fdf880a754700bce21b3756b5
tree6d9f1bd27f7dc1b941ac454d8148e0fe658d9a85
parentb87174541abcad8d37ab799fa431ca225175ca19
efi/libstub: Move file I/O support code into separate file

Split off the file I/O support code into a separate source file so
it ends up in a separate object file in the static library, allowing
the linker to omit it if the routines are not used.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/file.c [new file with mode: 0644]