xref: /openbmc/u-boot/lib/efi/Kconfig (revision 7c0e5d86)
1867a6ac8SSimon Glassconfig EFI
2867a6ac8SSimon Glass	bool "Support running U-Boot from EFI"
3867a6ac8SSimon Glass	depends on X86
4867a6ac8SSimon Glass	help
5867a6ac8SSimon Glass	  U-Boot can be started from EFI on certain platforms. This allows
6867a6ac8SSimon Glass	  EFI to perform most of the system init and then jump to U-Boot for
7867a6ac8SSimon Glass	  final system boot. Another option is to run U-Boot as an EFI
8867a6ac8SSimon Glass	  application, with U-Boot using EFI's drivers instead of its own.
9867a6ac8SSimon Glass
10867a6ac8SSimon Glasschoice
11867a6ac8SSimon Glass	prompt "Select EFI mode to use"
12867a6ac8SSimon Glass	depends on X86 && EFI
13867a6ac8SSimon Glass
14867a6ac8SSimon Glassconfig EFI_APP
15867a6ac8SSimon Glass	bool "Support running as an EFI application"
16867a6ac8SSimon Glass	help
17867a6ac8SSimon Glass	  Build U-Boot as an application which can be started from EFI. This
18867a6ac8SSimon Glass	  is useful for examining a platform in the early stages of porting
19867a6ac8SSimon Glass	  U-Boot to it. It allows only very basic functionality, such as a
20867a6ac8SSimon Glass	  command prompt and memory and I/O functions. Use 'reset' to return
21867a6ac8SSimon Glass	  to EFI.
22867a6ac8SSimon Glass
23*476476e7SSimon Glassconfig EFI_STUB
24*476476e7SSimon Glass	bool "Support running as an EFI payload"
25*476476e7SSimon Glass
26*476476e7SSimon Glassendchoice
27*476476e7SSimon Glass
28867a6ac8SSimon Glassconfig EFI_RAM_SIZE
29867a6ac8SSimon Glass	hex "Amount of EFI RAM for U-Boot"
30867a6ac8SSimon Glass	depends on EFI_APP
31867a6ac8SSimon Glass	default 0x2000000
32867a6ac8SSimon Glass	help
33867a6ac8SSimon Glass	  Set the amount of EFI RAM which is claimed by U-Boot for its own
34867a6ac8SSimon Glass	  use. U-Boot allocates this from EFI on start-up (along with a few
35867a6ac8SSimon Glass	  other smaller amounts) and it can never be increased after that.
36867a6ac8SSimon Glass	  It is used as the RAM size in with U-Boot.
37867a6ac8SSimon Glass
38*476476e7SSimon Glasschoice
39*476476e7SSimon Glass	prompt "EFI 32/64-bit selection"
40*476476e7SSimon Glass	depends on EFI_STUB
41*476476e7SSimon Glass	help
42*476476e7SSimon Glass	  EFI does not support mixing 32-bit and 64-bit modes. This is a
43*476476e7SSimon Glass	  significant problem because it means that you must build a stub with
44*476476e7SSimon Glass	  the correct type for EFI to load it correctly. If you are using
45*476476e7SSimon Glass	  32-bit EFI, select 32-bit here, else select 64-bit. Failure to do
46*476476e7SSimon Glass	  this may produce no error message - it just won't start!
47*476476e7SSimon Glass
48*476476e7SSimon Glassconfig EFI_STUB_32BIT
49*476476e7SSimon Glass	bool "Produce a stub for running with 32-bit EFI"
50*476476e7SSimon Glass
51*476476e7SSimon Glassconfig EFI_STUB_64BIT
52*476476e7SSimon Glass	bool "Produce a stub for running with 64-bit EFI"
53*476476e7SSimon Glass
54867a6ac8SSimon Glassendchoice
55