xref: /openbmc/u-boot/lib/efi_loader/Kconfig (revision 5fbb2895)
1ed980b8cSAlexander Grafconfig EFI_LOADER
2ed980b8cSAlexander Graf	bool "Support running EFI Applications in U-Boot"
3a46714ffSSimon Glass	depends on (ARM || X86 || RISCV || SANDBOX) && OF_LIBFDT
46698bb34SAlexander Graf	# We need EFI_STUB_64BIT to be set on x86_64 with EFI_STUB
56698bb34SAlexander Graf	depends on !EFI_STUB || !X86_64 || EFI_STUB_64BIT
66698bb34SAlexander Graf	# We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
76698bb34SAlexander Graf	depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
8ed980b8cSAlexander Graf	default y
9a451bc27SAdam Ford	select LIB_UUID
101811a928SAdam Ford	select HAVE_BLOCK_DEVICE
11dba51480SHeinrich Schuchardt	select REGEX
12503e04faSHeinrich Schuchardt	imply CFB_CONSOLE_ANSI
13ed980b8cSAlexander Graf	help
14ed980b8cSAlexander Graf	  Select this option if you want to run EFI applications (like grub2)
15ed980b8cSAlexander Graf	  on top of U-Boot. If this option is enabled, U-Boot will expose EFI
16ed980b8cSAlexander Graf	  interfaces to a loaded EFI application, enabling it to reuse U-Boot's
17ed980b8cSAlexander Graf	  device drivers.
1851735ae0SAlexander Graf
19b5130a81SHeinrich Schuchardtconfig EFI_UNICODE_CAPITALIZATION
20b5130a81SHeinrich Schuchardt	bool "Support Unicode capitalization"
21b5130a81SHeinrich Schuchardt	depends on EFI_LOADER
22b5130a81SHeinrich Schuchardt	default y
23b5130a81SHeinrich Schuchardt	help
24b5130a81SHeinrich Schuchardt	  Select this option to enable correct handling of the capitalization of
25b5130a81SHeinrich Schuchardt	  Unicode codepoints in the range 0x0000-0xffff. If this option is not
26b5130a81SHeinrich Schuchardt	  set, only the the correct handling of the letters of the codepage
27b5130a81SHeinrich Schuchardt	  used by the FAT file system is ensured.
28b5130a81SHeinrich Schuchardt
2951735ae0SAlexander Grafconfig EFI_LOADER_BOUNCE_BUFFER
3051735ae0SAlexander Graf	bool "EFI Applications use bounce buffers for DMA operations"
3151735ae0SAlexander Graf	depends on EFI_LOADER && ARM64
3251735ae0SAlexander Graf	default n
3351735ae0SAlexander Graf	help
3451735ae0SAlexander Graf	  Some hardware does not support DMA to full 64bit addresses. For this
3551735ae0SAlexander Graf	  hardware we can create a bounce buffer so that payloads don't have to
3651735ae0SAlexander Graf	  worry about platform details.
37*5fbb2895SAlexander Graf
38*5fbb2895SAlexander Grafconfig EFI_LOADER_HII
39*5fbb2895SAlexander Graf	bool "Expose HII protocols to EFI applications"
40*5fbb2895SAlexander Graf	depends on EFI_LOADER
41*5fbb2895SAlexander Graf	default n
42*5fbb2895SAlexander Graf	help
43*5fbb2895SAlexander Graf	  The Human Interface Infrastructure is a complicated framework that
44*5fbb2895SAlexander Graf	  allows UEFI applications to draw fancy menus and hook strings using
45*5fbb2895SAlexander Graf	  a translation framework.
46*5fbb2895SAlexander Graf
47*5fbb2895SAlexander Graf	  U-Boot implements enough of its features to be able to run the UEFI
48*5fbb2895SAlexander Graf	  Shell, but not more than that. The code is experimental still, so
49*5fbb2895SAlexander Graf	  beware that your system might break with HII enabled.
50*5fbb2895SAlexander Graf
51*5fbb2895SAlexander Graf	  If unsure, say n.
52