[Concept,7/7] efi-x86_app64: Enable environment in FAT filesystem

Message ID 20251029061657.1456910-8-sjg@u-boot.org
State New
Headers
Series efi: Minor improvements to QEMU and build scripts |

Commit Message

Simon Glass Oct. 29, 2025, 6:16 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

Enable CONFIG_ENV_IS_IN_FAT to automatically load the environment from
the uboot.env file on the FAT filesystem. This makes the build-efi
script's --bootcmd option work correctly.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
---

 configs/efi-x86_app64_defconfig | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/configs/efi-x86_app64_defconfig b/configs/efi-x86_app64_defconfig
index d50c8ac4f2c..6f038c102b4 100644
--- a/configs/efi-x86_app64_defconfig
+++ b/configs/efi-x86_app64_defconfig
@@ -30,6 +30,9 @@  CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MAC_PARTITION=y
 CONFIG_ENV_OVERWRITE=y
+CONFIG_ENV_IS_IN_FAT=y
+CONFIG_ENV_FAT_INTERFACE="efi"
+CONFIG_ENV_FAT_DEVICE_AND_PART="0:0"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
 CONFIG_BOOTFILE="bzImage"