Skip to contentSkip to conversation

efi: imply FS_FAT for the loader and selftests

PATCH New Pengpeng Hou 1 participant 1 message Oct 14

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 efi: imply FS_FAT for the loader and selftests

EFI_LOADER and CMD_BOOTEFI_SELFTEST imply FAT, but FAT has no Kconfig definition. The FAT filesystem option is FS_FAT. FAT_WRITE depends on FS_FAT, so implying FAT_WRITE does not repair the missing implication.

Imply FS_FAT in both locations, restoring the intended default FAT support for the EFI loader and its selftests. Keep imply rather than select so the user's configuration choices remain respected.

The loader issue was found by our static-analysis tool and manually reviewed. Ilias pointed out the identical selftest reference.

Fixes 93f6201af71d ("efi_loader: imply FAT, FAT_WRITE")
Fixes 03fb2691cb26 ("efi_selftest: imply FAT, FAT_WRITE")
Assisted-by gpt 5

---
Changes since v1:
- fix lib/efi_selftest/Kconfig as well, as requested by Ilias
- add the Fixes tag for the selftest implication
- rebase on current U-Boot master

Previous version:
https://lore.kernel.org/all/[email protected]/

 lib/efi_loader/Kconfig   |    2 +-
 lib/efi_selftest/Kconfig |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
lib/efi_loader/Kconfig +1 -1
index 4cb13ae7c8a8..c4b0c2137b87 100644
@@ -28,7 +28,7 @@
 	select OF_LIBFDT
 	imply PARTITION_UUIDS
 	select REGEX
-	imply FAT
+	imply FS_FAT
 	imply FAT_WRITE
 	imply FAT_RENAME
 	imply USB_KEYBOARD_FN_KEYS
lib/efi_selftest/Kconfig +1 -1
index ca6243610804..7af8ddaca57b 100644
@@ -3,7 +3,7 @@
 	depends on CMD_BOOTEFI
 	imply PARTITIONS
 	imply DOS_PARTITION
-	imply FAT
+	imply FS_FAT
 	imply FAT_WRITE
 	imply CMD_POWEROFF if PSCI_RESET || SYSRESET_PSCI
 	help

base-commit: ece349ade2973e220f524ce59e59711cc919263f