From e89716836f0f9670ea2587a7bc73fb39385b9b87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nahuel=20G=C3=B3mez?= <nahuelgomez329@gmail.com>
Date: Sun, 29 Dec 2024 02:46:52 -0300
Subject: [PATCH] configs: disable EFI support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

We don't use it.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
---
 arch/arm64/configs/a53x-ksu_defconfig | 24 ++----------------------
 arch/arm64/configs/a53x_defconfig     | 24 ++----------------------
 2 files changed, 4 insertions(+), 44 deletions(-)

diff --git a/arch/arm64/configs/a53x-ksu_defconfig b/arch/arm64/configs/a53x-ksu_defconfig
index 8b454cd60..1ecfacb1a 100644
--- a/arch/arm64/configs/a53x-ksu_defconfig
+++ b/arch/arm64/configs/a53x-ksu_defconfig
@@ -530,8 +530,8 @@ CONFIG_CMDLINE="stack_depot_disable=on kasan.stacktrace=off kvm-arm.mode=protect
 # CONFIG_CMDLINE_FROM_BOOTLOADER is not set
 CONFIG_CMDLINE_EXTEND=y
 # CONFIG_CMDLINE_FORCE is not set
-CONFIG_EFI_STUB=y
-CONFIG_EFI=y
+# CONFIG_EFI_STUB is not set
+# CONFIG_EFI is not set
 # CONFIG_DMI is not set
 # end of Boot options
 
@@ -647,26 +647,6 @@ CONFIG_ARM_SCPI_PROTOCOL=y
 # CONFIG_FW_CFG_SYSFS is not set
 # CONFIG_QCOM_SCM is not set
 # CONFIG_GOOGLE_FIRMWARE is not set
-
-#
-# EFI (Extensible Firmware Interface) Support
-#
-CONFIG_EFI_ESRT=y
-CONFIG_EFI_VARS_PSTORE=y
-# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set
-CONFIG_EFI_PARAMS_FROM_FDT=y
-CONFIG_EFI_RUNTIME_WRAPPERS=y
-CONFIG_EFI_GENERIC_STUB=y
-# CONFIG_EFI_ARMSTUB_DTB_LOADER is not set
-CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
-# CONFIG_EFI_BOOTLOADER_CONTROL is not set
-# CONFIG_EFI_CAPSULE_LOADER is not set
-# CONFIG_EFI_TEST is not set
-# CONFIG_RESET_ATTACK_MITIGATION is not set
-# CONFIG_EFI_DISABLE_PCI_DMA is not set
-# end of EFI (Extensible Firmware Interface) Support
-
-CONFIG_EFI_EARLYCON=y
 CONFIG_ARM_PSCI_FW=y
 # CONFIG_ARM_PSCI_CHECKER is not set
 CONFIG_HAVE_ARM_SMCCC=y
diff --git a/arch/arm64/configs/a53x_defconfig b/arch/arm64/configs/a53x_defconfig
index 5e0f197b8..52ff82294 100644
--- a/arch/arm64/configs/a53x_defconfig
+++ b/arch/arm64/configs/a53x_defconfig
@@ -530,8 +530,8 @@ CONFIG_CMDLINE="stack_depot_disable=on kasan.stacktrace=off kvm-arm.mode=protect
 # CONFIG_CMDLINE_FROM_BOOTLOADER is not set
 CONFIG_CMDLINE_EXTEND=y
 # CONFIG_CMDLINE_FORCE is not set
-CONFIG_EFI_STUB=y
-CONFIG_EFI=y
+# CONFIG_EFI_STUB is not set
+# CONFIG_EFI is not set
 # CONFIG_DMI is not set
 # end of Boot options
 
@@ -647,26 +647,6 @@ CONFIG_ARM_SCPI_PROTOCOL=y
 # CONFIG_FW_CFG_SYSFS is not set
 # CONFIG_QCOM_SCM is not set
 # CONFIG_GOOGLE_FIRMWARE is not set
-
-#
-# EFI (Extensible Firmware Interface) Support
-#
-CONFIG_EFI_ESRT=y
-CONFIG_EFI_VARS_PSTORE=y
-# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set
-CONFIG_EFI_PARAMS_FROM_FDT=y
-CONFIG_EFI_RUNTIME_WRAPPERS=y
-CONFIG_EFI_GENERIC_STUB=y
-# CONFIG_EFI_ARMSTUB_DTB_LOADER is not set
-CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
-# CONFIG_EFI_BOOTLOADER_CONTROL is not set
-# CONFIG_EFI_CAPSULE_LOADER is not set
-# CONFIG_EFI_TEST is not set
-# CONFIG_RESET_ATTACK_MITIGATION is not set
-# CONFIG_EFI_DISABLE_PCI_DMA is not set
-# end of EFI (Extensible Firmware Interface) Support
-
-CONFIG_EFI_EARLYCON=y
 CONFIG_ARM_PSCI_FW=y
 # CONFIG_ARM_PSCI_CHECKER is not set
 CONFIG_HAVE_ARM_SMCCC=y