efi/libstub: Move efi_relocate_kernel() into separate source file
authorArd Biesheuvel <ardb@kernel.org>
Mon, 13 Apr 2020 12:23:57 +0000 (14:23 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Apr 2020 12:52:16 +0000 (14:52 +0200)
commit685d8164b5da3aeb75b0320fd3a3bf75e4f9c51e
tree1c4df329ba5d31dfea986a6fb9570eebc3a77bb9
parente71356fe29e7bd5cd5e07800d4940a7481fb0854
efi/libstub: Move efi_relocate_kernel() into separate source file

Move efi_relocate_kernel() into a separate source file, so that it
only gets pulled into builds for architectures that use it. Since
efi_relocate_kernel() is the only user of efi_low_alloc(), let's
move that over as well.

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