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