xref: /openbmc/u-boot/lib/efi/Kconfig (revision 35546f6f2014282cc4f9772324b5588bd44a2938)
1 config EFI
2 	bool "Support running U-Boot from EFI"
3 	depends on X86
4 	help
5 	  U-Boot can be started from EFI on certain platforms. This allows
6 	  EFI to perform most of the system init and then jump to U-Boot for
7 	  final system boot. Another option is to run U-Boot as an EFI
8 	  application, with U-Boot using EFI's drivers instead of its own.
9 
10 choice
11 	prompt "Select EFI mode to use"
12 	depends on X86 && EFI
13 
14 config EFI_APP
15 	bool "Support running as an EFI application"
16 	help
17 	  Build U-Boot as an application which can be started from EFI. This
18 	  is useful for examining a platform in the early stages of porting
19 	  U-Boot to it. It allows only very basic functionality, such as a
20 	  command prompt and memory and I/O functions. Use 'reset' to return
21 	  to EFI.
22 
23 config EFI_STUB
24 	bool "Support running as an EFI payload"
25 
26 endchoice
27 
28 config EFI_RAM_SIZE
29 	hex "Amount of EFI RAM for U-Boot"
30 	depends on EFI_APP
31 	default 0x2000000
32 	help
33 	  Set the amount of EFI RAM which is claimed by U-Boot for its own
34 	  use. U-Boot allocates this from EFI on start-up (along with a few
35 	  other smaller amounts) and it can never be increased after that.
36 	  It is used as the RAM size in with U-Boot.
37 
38 choice
39 	prompt "EFI 32/64-bit selection"
40 	depends on EFI_STUB
41 	help
42 	  EFI does not support mixing 32-bit and 64-bit modes. This is a
43 	  significant problem because it means that you must build a stub with
44 	  the correct type for EFI to load it correctly. If you are using
45 	  32-bit EFI, select 32-bit here, else select 64-bit. Failure to do
46 	  this may produce no error message - it just won't start!
47 
48 config EFI_STUB_32BIT
49 	bool "Produce a stub for running with 32-bit EFI"
50 
51 config EFI_STUB_64BIT
52 	bool "Produce a stub for running with 64-bit EFI"
53 
54 endchoice
55