efi: clean up Kconfig dependencies on CONFIG_EFI
authorArd Biesheuvel <ardb@kernel.org>
Sat, 28 May 2022 09:49:54 +0000 (11:49 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 1 Jun 2022 12:08:13 +0000 (14:08 +0200)
commit75ed63d919400b803691a0c757ee23c6f767a625
tree5b6aee9cb2a5e32fcb1624fb7300378630a757c2
parent31f1a0edff78c43e8a3bd3692af0db1b25c21b17
efi: clean up Kconfig dependencies on CONFIG_EFI

Geert reports that the new option CONFIG_EFI_DISABLE_RUNTIME is user
visible even when EFI support is disabled, which is unnecessary and
clutters the Kconfig interface.

So let's move this option into the existing Kconfig submenu that already
depends on CONFIG_EFI, and while at it, give some other options the same
treatment.

Also clean up a small wart where the efi/ subdirectory is listed twice.
Let's just list it unconditionally so that both EFI and UEFI_CPER based
pieces will be built independently (the latter only depends on the
former on !X86)

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/Makefile
drivers/firmware/efi/Kconfig