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