Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751301AbdLIPxM (ORCPT ); Sat, 9 Dec 2017 10:53:12 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39700 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbdLIPxK (ORCPT ); Sat, 9 Dec 2017 10:53:10 -0500 X-Google-Smtp-Source: AGs4zMZncOAxDcvxPtX8/8jh4K+AYpq0mDpYU2JYSuwtaYhl7Y70fFCF4pmhOq+EMU8/UpEHoV9aEw== From: Vincent Legoll To: Matt Fleming , Ard Biesheuvel , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Legoll Subject: [PATCH] efi: make EFI a menuconfig to ease disabling it all Date: Sat, 9 Dec 2017 16:52:52 +0100 Message-Id: <20171209155252.6403-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 54 No need to get into the submenu to disable all related config entries. This makes it easier to disable all EFI config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu. This is only intended to change menuconfig UI, not change the config dependencies. Signed-off-by: Vincent Legoll --- drivers/firmware/efi/Kconfig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig index 2b4c39fdfa91..8727b1aa8ef6 100644 --- a/drivers/firmware/efi/Kconfig +++ b/drivers/firmware/efi/Kconfig @@ -1,6 +1,9 @@ -menu "EFI (Extensible Firmware Interface) Support" +menuconfig EFI_MENU + bool "EFI (Extensible Firmware Interface) Support" depends on EFI +if EFI_MENU + config EFI_VARS tristate "EFI Variable Support via sysfs" depends on EFI @@ -81,9 +84,6 @@ config EFI_PARAMS_FROM_FDT the EFI runtime support gets system table address, memory map address, and other parameters from the device tree. -config EFI_RUNTIME_WRAPPERS - bool - config EFI_ARMSTUB bool @@ -161,7 +161,10 @@ config RESET_ATTACK_MITIGATION still contains secrets in RAM, booting another OS and extracting the secrets. -endmenu +endif # EFI_MENU + +config EFI_RUNTIME_WRAPPERS + bool config UEFI_CPER bool -- 2.14.1