efi: clean up Kconfig dependencies on CONFIG_EFI
Ard Biesheuvel
maintainerPATCH 1/1 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)
--- drivers/firmware/Makefile | 3 +- drivers/firmware/efi/Kconfig | 52 +++++++++----------- 2 files changed, 25 insertions(+), 30 deletions(-)
drivers/firmware/Makefile +1 -2
@@ -31,8 +31,7 @@ obj-y += broadcom/ obj-y += cirrus/ obj-y += meson/ obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ -obj-$(CONFIG_EFI) += efi/ -obj-$(CONFIG_UEFI_CPER) += efi/ +obj-y += efi/ obj-y += imx/ obj-y += psci/ obj-y += smccc/
drivers/firmware/efi/Kconfig +24 -28
80 lines not on this page · raw message
Signature · 1 line
2.30.2
Hello Ard,
Quoted 13 lines · Ard Biesheuvel
Geert reports that the new option
CONFIG_EFI_DISABLE_RUNTIMEis user visible even when EFI support is disabled, which is unnecessary and clutters theKconfiginterface.So let's move this option into the existing
Kconfigsubmenu that already depends onCONFIG_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_CPERbased pieces will be built independently (the latter only depends on the former on !X86)
Quoted 5 lines
Cc Geert Uytterhoeven <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Ard Biesheuvel <[email protected]>---
This makes sense to me.
Signature · 5 lines
Best regards, Javier Martinez Canillas Linux Engineering Red Hat