]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_loader: Setup default location for UEFI Variables storing
authorMichal Simek <michal.simek@amd.com>
Wed, 11 Feb 2026 15:56:22 +0000 (16:56 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 15 Feb 2026 08:15:45 +0000 (09:15 +0100)
EFI_VARIABLE_FILE_STORE is only available when FAT_WRITE is enabled but
that's not valid for all platforms and dependency should be covered.

Also Kconfig behavior is that if default option is not valid then Kconfig
selects the first presented valid option instead hence it is better to
record EFI_VARIABLE_NO_STORE as safe default option.

Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/Kconfig

index 13e44be1d06702e9a13b8ffb99e1e7a7b5c8f4ba..579eed65880144dad2f062a30d2de624bbb2fea8 100644 (file)
@@ -112,7 +112,8 @@ menu "UEFI Variables"
 
 choice
        prompt "Store for non-volatile UEFI variables"
-       default EFI_VARIABLE_FILE_STORE
+       default EFI_VARIABLE_FILE_STORE if FAT_WRITE
+       default EFI_VARIABLE_NO_STORE
        help
          Select where non-volatile UEFI variables shall be stored.