xref: /openbmc/u-boot/lib/efi_loader/Kconfig (revision 503e04fa)
1ed980b8cSAlexander Grafconfig EFI_LOADER
2ed980b8cSAlexander Graf	bool "Support running EFI Applications in U-Boot"
36836adbeSRick Chen	depends on (ARM || X86 || RISCV) && OF_LIBFDT
4c524997aSHeinrich Schuchardt	# We do not support bootefi booting ARMv7 in non-secure mode
5c524997aSHeinrich Schuchardt	depends on !ARMV7_NONSEC
66698bb34SAlexander Graf	# We need EFI_STUB_64BIT to be set on x86_64 with EFI_STUB
76698bb34SAlexander Graf	depends on !EFI_STUB || !X86_64 || EFI_STUB_64BIT
86698bb34SAlexander Graf	# We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
96698bb34SAlexander Graf	depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
10ed980b8cSAlexander Graf	default y
11a451bc27SAdam Ford	select LIB_UUID
121811a928SAdam Ford	select HAVE_BLOCK_DEVICE
13*503e04faSHeinrich Schuchardt	imply CFB_CONSOLE_ANSI
14ed980b8cSAlexander Graf	help
15ed980b8cSAlexander Graf	  Select this option if you want to run EFI applications (like grub2)
16ed980b8cSAlexander Graf	  on top of U-Boot. If this option is enabled, U-Boot will expose EFI
17ed980b8cSAlexander Graf	  interfaces to a loaded EFI application, enabling it to reuse U-Boot's
18ed980b8cSAlexander Graf	  device drivers.
1951735ae0SAlexander Graf
2051735ae0SAlexander Grafconfig EFI_LOADER_BOUNCE_BUFFER
2151735ae0SAlexander Graf	bool "EFI Applications use bounce buffers for DMA operations"
2251735ae0SAlexander Graf	depends on EFI_LOADER && ARM64
2351735ae0SAlexander Graf	default n
2451735ae0SAlexander Graf	help
2551735ae0SAlexander Graf	  Some hardware does not support DMA to full 64bit addresses. For this
2651735ae0SAlexander Graf	  hardware we can create a bounce buffer so that payloads don't have to
2751735ae0SAlexander Graf	  worry about platform details.
28