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