Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 1 | config EFI |
| 2 | bool "Support running U-Boot from EFI" |
| 3 | depends on X86 |
Simon Glass | d3edd42 | 2019-12-06 21:41:49 -0700 | [diff] [blame] | 4 | imply X86_TSC_READ_BASE |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 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 | |
| 11 | choice |
| 12 | prompt "Select EFI mode to use" |
| 13 | depends on X86 && EFI |
| 14 | |
| 15 | config EFI_APP |
| 16 | bool "Support running as an EFI application" |
| 17 | help |
| 18 | Build U-Boot as an application which can be started from EFI. This |
| 19 | is useful for examining a platform in the early stages of porting |
| 20 | U-Boot to it. It allows only very basic functionality, such as a |
| 21 | command prompt and memory and I/O functions. Use 'reset' to return |
| 22 | to EFI. |
| 23 | |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 24 | config EFI_STUB |
| 25 | bool "Support running as an EFI payload" |
| 26 | |
| 27 | endchoice |
| 28 | |
Simon Glass | 359a89d | 2021-11-03 21:09:06 -0600 | [diff] [blame^] | 29 | choice |
| 30 | prompt "EFI app 32/64-bit selection" |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 31 | depends on EFI_APP |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 32 | help |
Simon Glass | 359a89d | 2021-11-03 21:09:06 -0600 | [diff] [blame^] | 33 | EFI does not support mixing 32-bit and 64-bit modes. This is a |
| 34 | significant problem because it means that you must build a stub with |
| 35 | the correct type for EFI to load it correctly. If you are using |
| 36 | 32-bit EFI, select 32-bit here, else select 64-bit. Failure to do |
| 37 | this may produce no error message - it just won't start! |
| 38 | |
| 39 | config EFI_APP_32BIT |
| 40 | bool "Produce an app for running with 32-bit EFI" |
| 41 | |
| 42 | config EFI_APP_64BIT |
| 43 | bool "Produce an app for running with 64-bit EFI" |
| 44 | |
| 45 | endchoice |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 46 | |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 47 | choice |
Simon Glass | 359a89d | 2021-11-03 21:09:06 -0600 | [diff] [blame^] | 48 | prompt "EFI stub 32/64-bit selection" |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 49 | depends on EFI_STUB |
| 50 | help |
| 51 | EFI does not support mixing 32-bit and 64-bit modes. This is a |
| 52 | significant problem because it means that you must build a stub with |
| 53 | the correct type for EFI to load it correctly. If you are using |
| 54 | 32-bit EFI, select 32-bit here, else select 64-bit. Failure to do |
| 55 | this may produce no error message - it just won't start! |
| 56 | |
| 57 | config EFI_STUB_32BIT |
| 58 | bool "Produce a stub for running with 32-bit EFI" |
| 59 | |
| 60 | config EFI_STUB_64BIT |
| 61 | bool "Produce a stub for running with 64-bit EFI" |
| 62 | |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 63 | endchoice |
Simon Glass | 359a89d | 2021-11-03 21:09:06 -0600 | [diff] [blame^] | 64 | |
| 65 | config EFI_RAM_SIZE |
| 66 | hex "Amount of EFI RAM for U-Boot" |
| 67 | depends on EFI_APP |
| 68 | default 0x10000000 |
| 69 | help |
| 70 | Set the amount of EFI RAM which is claimed by U-Boot for its own |
| 71 | use. U-Boot allocates this from EFI on start-up (along with a few |
| 72 | other smaller amounts) and it can never be increased after that. |
| 73 | It is used as the RAM size in with U-Boot. |