efi/libstub: Make initrd file loader configurable
authorArd Biesheuvel <ardb@kernel.org>
Tue, 21 Apr 2020 07:17:35 +0000 (09:17 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 18:15:06 +0000 (20:15 +0200)
commitcf6b83664895a5c7e97710df282e220bd047f0f5
treeafece1a6ef522a2a6079a1858d665b86b5bdbc47
parent2e0eb483c058dd013be8e3d0ec1767be531485a2
efi/libstub: Make initrd file loader configurable

Loading an initrd passed via the kernel command line is deprecated: it
is limited to files that reside in the same volume as the one the kernel
itself was loaded from, and we have more flexible ways to achieve the
same. So make it configurable so new architectures can decide not to
enable it.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Kconfig
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/file.c